Optimal-Time Contextual Pattern Matching in Compressed Space
Abstract
Contextual pattern matching is the task of, given a pattern , a context length , and a text , find all the distinct contexts in which occurs in , the context being the symbols preceding and the symbols following the occurrence; a text position where each context occurs must be output. While the problem can be solved in optimal time using -space precomputed data structures on , this type of search is particularly relevant on large repetitive text collections, where space can be prohibitive. We present the first optimal-time solution that runs in compressed space, namely that of a symmetric CDAWG (SCDAWG) of . Further, we show how the set of solutions can be enumerated with delay after -time preprocessing of . To achieve this, we develop an improved linear-space distance-sensitive weighted ancestor data structure.
Create a lesson
Related papers
Dynamic Grammar-Compressed Self-Index in δ-Optimal Space
Shared title terminologycs.DSTakaaki Nishimoto, Yasuo Tabei
Counting 6-Cliques in O(n^{5.97}) time and O(\log n) space
Shared title terminologycs.DSAfrouz Jabal Ameli, Niklas Mohrin, Jesper Nederlof
Optimal Pattern-Avoidance Bounds for Binary Search Trees
Shared title terminologycs.DSAnita Dürr, Arturo Merino, Karol Węgrzycki et al.
Quantum Algorithm with Quadratic Speedup for 2D Pattern Matching
Shared title terminologycs.DSRishabh Gala, Rahul Shah
Improved Space-Time Tradeoffs for Permutation Problems via Extremal Combinatorics
Shared title terminologycs.DSAfrouz Jabal Ameli, Jesper Nederlof, Shengzhe Wang
Optimal Online Discrepancy Minimization in Linear Time
Shared title terminologycs.DSIshaq Aden-Ali