name: lca version: 0.3.1 id: lca-0.3.1-9xDQMgGo38J7Maw4PoYsI5 key: lca-0.3.1-9xDQMgGo38J7Maw4PoYsI5 license: BSD-3-Clause copyright: Copyright (C) 2011-2015 Edward A. Kmett maintainer: Edward A. Kmett author: Edward A. Kmett stability: provisional homepage: http://github.com/ekmett/lca/ synopsis: O(log n) persistent online lowest common ancestor search without preprocessing 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. . 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 . category: Algorithms, Data Structures abi: db0ef9cda71a009b17f655a1ccfd53a0 exposed: True exposed-modules: Data.LCA.Online Data.LCA.Online.Monoidal Data.LCA.Online.Naive Data.LCA.View import-dirs: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/lib/x86_64-linux-ghc-8.6.3/lca-0.3.1-9xDQMgGo38J7Maw4PoYsI5 library-dirs: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/lib/x86_64-linux-ghc-8.6.3/lca-0.3.1-9xDQMgGo38J7Maw4PoYsI5 dynamic-library-dirs: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/lib/x86_64-linux-ghc-8.6.3 data-dir: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/share/x86_64-linux-ghc-8.6.3/lca-0.3.1 hs-libraries: HSlca-0.3.1-9xDQMgGo38J7Maw4PoYsI5 depends: base-4.12.0.0 haddock-interfaces: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/share/doc/x86_64-linux-ghc-8.6.3/lca-0.3.1/html/lca.haddock haddock-html: /var/lib/jenkins/workspace/JHCR/.cabal-sandbox/share/doc/x86_64-linux-ghc-8.6.3/lca-0.3.1/html