Lune

STOC2022Top-tier venue

Dynamic suffix array with polylogarithmic queries and updates

Dominik Kempa, Tomasz Kociumaka

2022Year
11Top-tier citations

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 about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 85d805c8-9a61-4196-82eb-e832a9ca168b

Cited by top-tier papers11

Ask how each one uses it

Builds on4

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines