arXiv:2103.00462

Paper record

W3127479364

Weighted Ancestors in Suffix Trees Revisited

Djamal Belazzougui, Kosolobov, Dmitry, Simon J. Puglisi, Raman, Rajeev

Year
2021
Venue
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
References
30
Cited by
43

Details and counts from OpenAlex.

Abstract

The weighted ancestor problem is a well-known generalization of the predecessor problem to trees. It is known to require Ω(log⁡log⁡n)Ω(\log\log n) time for queries provided O(npolylogn)O(n\mathop{\mathrm{polylog}} n) space is available and weights are from [0..n][0..n], where nn is the number of tree nodes. However, when applied to suffix trees, the problem, surprisingly, admits an O(n)O(n)-space solution with constant query time, as was shown by Gawrychowski, Lewenstein, and Nicholson (Proc. ESA 2014). This variant of the problem can be reformulated as follows: given the suffix tree of a string ss, we need a data structure that can locate in the tree any substring s[p..q]s[p..q] of ss in O(1)O(1) time (as if one descended from the root reading s[p..q]s[p..q] along the way). Unfortunately, the data structure of Gawrychowski et al. has no efficient construction algorithm, limiting its wider usage as an algorithmic tool. In this paper we resolve this issue, describing a data structure for weighted ancestors in suffix trees with constant query time and a linear construction algorithm. Our solution is based on a novel approach using so-called irreducible LCP values.