Optimal prefix-suffix queries with applications
Solon P. Pissis

TL;DR
This paper introduces a simple, optimal data structure for prefix-suffix queries on strings, enabling constant-time queries and linear construction, with applications in pattern matching on node-labeled graphs.
Contribution
A novel, straightforward data structure that achieves optimal construction and query times for prefix-suffix queries, improving upon the classic border tree approach.
Findings
Supports prefix-suffix queries in O(1) time
Constructed in optimal O(n / log_sigma n) time
Enables applications in pattern matching on graphs
Abstract
We revisit the classic border tree data structure [Gu, Farach, Beigel, SODA 1994] that answers the following prefix-suffix queries on a string of length over an integer alphabet : for any return all occurrences of in . The border tree of can be constructed in time and answers prefix-suffix queries in time, where is the number of occurrences of in . Our contribution here is the following. We present a completely different and remarkably simple data structure that can be constructed in the optimal time and supports queries in the optimal time. Our result is based on a new structural lemma that lets us encode the output of any…
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 · Advanced Image and Video Retrieval Techniques · Natural Language Processing Techniques
