Lune

STOC2022Top-tier venue

Dynamic suffix array with polylogarithmic queries and updates

Dominik Kempa, Tomasz Kociumaka

Abstract

The suffix array SA[1 . . n] of a text T of length n is a permutation of 1, . . . , n describing the lexicographical ordering of suffixes of T , and it is considered to be among of the most important data structures in string algorithms, with dozens of applications in data compression, bioinformatics, and information retrieval. One of the biggest drawbacks of the suffix array is that it is very difficult to maintain under text updates: even a single character substitution can completely change the contents of the suffix array. Thus, the suffix array of a dynamic text is modelled using suffix array queries, which return the value Prior to this work, the fastest dynamic suffix array implementations were by Amir and Boneh. At ISAAC 2020, they showed how to answer suffix array queries in O(k) time, where k ∈ [1 . . n] is a trade-off parameter, with O( n k )-time text updates. In a very recent preprint [arXiv, 2021] , they also provided a solution with O(log 5 n)-time queries and O(n 2/3 )-time updates. We propose the first data structure that supports both suffix array queries and text updates in O(polylog n) time (achieving O(log 4 n) and O(log 3+o(1) n) time, respectively). Our data structure is deterministic and the running times for all operations are worst-case. In addition to the standard single-character edits (character insertions, deletions, and substitutions), we support (also in O(log 3+o(1) n) time) the "cut-paste" operation that moves any (arbitrarily long) substring of T to any place in T . To achieve our result, we develop a number of new techniques which are of independent interest. This includes a new flavor of dynamic locally consistent parsing, as well as a dynamic construction of string synchronizing sets with an extra local sparsity property; this significantly generalizes the sampling technique introduced at STOC 2019. We complement our structure by a hardness result: unless the Online Matrix-Vector Multiplication (OMv) Conjecture fails, no data structure with O(polylog n)-time suffix array queries can support the "copy-paste" operation in O(n 1-ε ) time for any ε > 0.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Pattern Matching under Weighted Edit Distance cites Faster Approximate Pattern Matching: A Unified Approach
  • Faster Approximate Pattern Matching: A Unified Approach cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching cites Faster Approximate Pattern Matching: A Unified Approach
  • Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching cites Near-Optimal Quantum Algorithms for String Problems
  • Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Faster Approximate Pattern Matching: A Unified Approach
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch Matching
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Near-Optimal Quantum Algorithms for String Problems
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Near-Optimal Quantum Algorithms for String Problems cites Locally Consistent Parsing for Text Indexing in Small Space
  • Near-Optimal Quantum Algorithms for String Problems cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Grammar Boosting: A New Technique for Proving Lower Bounds for Computation over Compressed Data cites Faster Approximate Pattern Matching: A Unified Approach
  • Grammar Boosting: A New Technique for Proving Lower Bounds for Computation over Compressed Data cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees cites Resolution of the Burrows-Wheeler Transform Conjecture
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed SpaceDominik Kempa, Tomasz KociumakaFOCS 2023 · 20 citations
  2. Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch MatchingCe Jin, Jakob NoglerSODA 2023 · 10 citations
  3. Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix TreesDominik Kempa, Tomasz KociumakaSODA 2023 · 10 citations
  4. Pattern Matching under Weighted Edit DistancePanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2025 · 3 citations
  5. Grammar Boosting: A New Technique for Proving Lower Bounds for Computation over Compressed DataRajat De, Dominik KempaSODA 2024 · 2 citations

Builds on4

  1. Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 citations
  2. Locally Consistent Parsing for Text Indexing in Small SpaceOr Birenzwige, Shay Golan, Ely PoratSODA 2020 · 16 citations
  3. Near-Optimal Quantum Algorithms for String ProblemsShyan Akmal, Ce JinSODA 2022 · 15 citations
  4. Faster Approximate Pattern Matching: A Unified ApproachPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2020 · 2 citations

Related papers

  1. Deterministic Incremental APSP with Polylogarithmic Update Time and StretchSebastian Forster, Yasamin Nazari, Maximilian Probst GutenbergSTOC 2023 · 2 citations
  2. Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range QueriesDominik Kempa, Tomasz KociumakaSODA 2026
  3. Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
  4. Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
  5. Suffix Rank: a new scalable algorithm for indexing large string collectionsMarina Barsky, Jonathan Gabor, Mariano P. Consens, Alex ThomoVLDB 2020
Dusk over the sea between two cliffs drawn in fine vertical lines