Linear-time Computation of DAWGs, Symmetric Indexing Structures, and MAWs for Integer Alphabets
Abstract
The directed acyclic word graph (DAWG) of a string of length is the smallest (partial) DFA which recognizes all suffixes of with only nodes and edges. In this paper, we show how to construct the DAWG for the input string from the suffix tree for , in time for integer alphabets of polynomial size in . In so doing, we first describe a folklore algorithm which, given the suffix tree for , constructs the DAWG for the reversed string of in time. Then, we present our algorithm that builds the DAWG for in time for integer alphabets, from the suffix tree for . We also show that a straightforward modification to our DAWG construction algorithm leads to the first -time algorithm for constructing the affix tree of a given string over an integer alphabet. Affix trees are a text indexing structure supporting bidirectional pattern searches. We then discuss how our constructions can lead to linear-time algorithms for building other text indexing structures, such as linear-size suffix tries and symmetric CDAWGs in linear time in the case of integer alphabets. As a further application to our -time DAWG construction algorithm, we show that the set of all minimal absent words (MAWs) of can be computed in optimal, input- and output-sensitive time and working space for integer alphabets.
Keywords
Cite
@article{arxiv.2307.01428,
title = {Linear-time Computation of DAWGs, Symmetric Indexing Structures, and MAWs for Integer Alphabets},
author = {Yuta Fujishige and Yuki Tsujimaru and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
journal= {arXiv preprint arXiv:2307.01428},
year = {2023}
}
Comments
This is an extended version of the paper "Computing DAWGs and Minimal Absent Words in Linear Time for Integer Alphabets" from MFCS 2016