Finger Search in Grammar-Compressed Strings
Philip Bille, Anders Roy Christiansen, Patrick Hagge Cording, Inge Li, G{\o}rtz

TL;DR
This paper introduces efficient finger search data structures for grammar-compressed strings, enabling faster random access near a specified position with linear space, improving previous bounds.
Contribution
It presents the first linear space solutions supporting finger search in grammar-compressed strings with improved query times for static and dynamic variants.
Findings
Static variant supports access in O(log D) time
Dynamic variant supports access and move in O(log D + log log N) time
Application to longest common extension problem in compressed strings
Abstract
Grammar-based compression, where one replaces a long string by a small context-free grammar that generates the string, is a simple and powerful paradigm that captures many popular compression schemes. Given a grammar, the random access problem is to compactly represent the grammar while supporting random access, that is, given a position in the original uncompressed string report the character at that position. In this paper we study the random access problem with the finger search property, that is, the time for a random access query should depend on the distance between a specified index , called the \emph{finger}, and the query index . We consider both a static variant, where we first place a finger and subsequently access indices near the finger efficiently, and a dynamic variant where also moving the finger such that the time depends on the distance moved is supported. Let…
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.
