Longest Common Extensions in Trees
Philip Bille, Pawel Gawrychowski, Inge Li Goertz, Gad M. Landau, and, Oren Weimann

TL;DR
This paper extends the longest common extension problem from strings to trees, introducing data structures for efficient path and subtree comparisons with new bounds and trade-offs.
Contribution
It provides the first non-trivial bounds for LCE queries in trees, including linear-space solutions with polylogarithmic query times and a time-space trade-off for tree-tree LCEs.
Findings
Linear-space solution with O(log* n) query time for path-path LCEs.
Linear-space solution with O((log log n)^2) query time for path-tree LCEs.
A time-space trade-off for tree-tree LCEs with an O(nτ) space and O(n/τ) query time.
Abstract
The longest common extension (LCE) of two indices in a string is the length of the longest identical substrings starting at these two indices. The LCE problem asks to preprocess a string into a compact data structure that supports fast LCE queries. In this paper we generalize the LCE problem to trees and suggest a few applications of LCE in trees to tries and XML databases. Given a labeled and rooted tree of size , the goal is to preprocess into a compact data structure that support the following LCE queries between subpaths and subtrees in . Let , , , and be nodes of such that and are descendants of and respectively. \begin{itemize} \item : (path-path ) return the longest common prefix of the paths and . \item : (path-tree )…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Network Packet Processing and Optimization · Data Management and Algorithms
