Linear Time Online Algorithms for Constructing Linear-size Suffix Trie
Abstract
The suffix trees are fundamental data structures for various kinds of string processing. The suffix tree of a text string of length has nodes and edges, and the string label of each edge is encoded by a pair of positions in . Thus, even after the tree is built, the input string needs to be kept stored and random access to is still needed. The \emph{linear-size suffix tries} (\emph{LSTs}), proposed by Crochemore et al. [Linear-size suffix tries, TCS 638:171-178, 2016], are a "stand-alone" alternative to the suffix trees. Namely, the LST of an input text string of length occupies total space, and supports pattern matching and other tasks with the same efficiency as the suffix tree without the need to store the input text string . Crochemore et al. proposed an \emph{offline} algorithm which transforms the suffix tree of into the LST of in time and space, where is the alphabet size. In this paper, we present two types of \emph{online} algorithms which "directly" construct the LST, from right to left, and from left to right, without constructing the suffix tree as an intermediate structure. Both algorithms construct the LST incrementally when a new symbol is read, and do not access the previously read symbols. Both of the right-to-left construction algorithm and the left-to-right construction algorithm work in time and space. The main feature of our algorithms is that the input text string does not need to be stored.
Cite
@article{arxiv.2301.04295,
title = {Linear Time Online Algorithms for Constructing Linear-size Suffix Trie},
author = {Diptarama Hendrian and Takuya Takagi and Shunsuke Inenaga and Keisuke Goto and Mitsuru Funakoshi},
journal= {arXiv preprint arXiv:2301.04295},
year = {2023}
}
Comments
27 pages, 14 figures. arXiv admin note: text overlap with arXiv:1901.10045