Skip to content

Commit

Permalink
emphasis added
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed May 8, 2013
1 parent fe42cb6 commit f3128fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lca.cabal
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ bug-reports: http://github.com/ekmett/lca/issues
copyright: Copyright (C) 2011-2012 Edward A. Kmett copyright: Copyright (C) 2011-2012 Edward A. Kmett
synopsis: O(log n) persistent on-line lowest common ancestor calculation without preprocessing synopsis: O(log n) persistent on-line lowest common ancestor calculation without preprocessing
description: description:
This package provides a reference implementation of my skew binary random access algorithm for performing an online lowest common ancestor search (and online level ancestor search) in logarithmic time without preprocessing. This improves the previous known asymptotic bound for both of these problems from /O(h)/ to /O(log h)/, where /h/ is the height of the tree. Mostly importantly this bound is completely independent of the width or overall size of the tree, enabling you to calculate lowest common ancestors in a distributed fashion with good locality. This package provides a reference implementation of my skew binary random access algorithm for performing an /online/ lowest common ancestor search (and online level ancestor search) in logarithmic time without preprocessing. This improves the previous known asymptotic bound for both of these problems from /O(h)/ to /O(log h)/, where /h/ is the height of the tree. Mostly importantly this bound is completely independent of the width or overall size of the tree, enabling you to calculate lowest common ancestors in a distributed fashion with good locality.
. .
While algorithms exist for both of these algorithms that that provide /O(1)/ query time, they all require at least /O(n)/ preprocessing, where /n/ is the size of the entire tree, and so are less suitable for LCA search in areas such as revision control where the tree is constantly updated, or distributed computing where the tree may be too large to fit in any one computer's memory. While /offline/ algorithms exist for both of these algorithms that that provide /O(1)/ query time, they all require at least /O(n)/ preprocessing, where /n/ is the size of the entire tree, and so are less suitable for LCA search in areas such as revision control where the tree is constantly updated, or distributed computing where the tree may be too large to fit in any one computer's memory.
. .
Slides are available from Slides are available from
. .
Expand Down

0 comments on commit f3128fe

Please sign in to comment.