后缀树中的加权祖先
Weighted ancestors in suffix trees
摘要:
经典的、普遍存在的、前置问题是为一组整数构造一个数据结构,以支持快速前置查询。它的推广到加权树,又名。加权祖先问题,已被广泛探讨,并成功地减少到前辈问题。众所周知,对于这两个问题的任何解决方案,其输入集来自多项式有界论域,该论域在O(n polylog(n))空间中预处理加权树,需要Ω(loglogn)查询时间。也许加权祖先问题最重要和最频繁的应用是后缀树。加权祖先问题是否对后缀树有更好的界一直是一个悬而未决的问题。我们肯定地回答了这个问题:我们表明,为文本w[1]构建的后缀树。n]可以使用O(n)额外空间进行预处理,因此可以在O(1)时间内回答查询。因此,我们提高了几个应用程序的运行时间。我们的改进是基于一些数据结构的工具和一个后缀树的组合结构的一致性为基础的洞察。
英文摘要:
The classical, ubiquitous, predecessor problem is to construct a data structure for a set of integers that supports fast predecessor queries. Its generalization to weighted trees, a.k.a. the weighted ancestor problem, has been extensively explored and successfully reduced to the predecessor problem. It is known that any solution for both problems with an input set from a polynomially bounded universe that preprocesses a weighted tree in O(n polylog(n)) space requires Ω(loglogn) query time. Perhaps the most important and frequent application of the weighted ancestors problem is for suffix trees. It has been a long-standing open question whether the weighted ancestors problem has better bounds for suffix trees. We answer this question positively: we show that a suffix tree built for a text w[1..n] can be preprocessed using O(n) extra space, so that queries can be answered in O(1) time. Thus we improve the running times of several applications. Our improvement is based on a number of data structure tools and a periodicity-based insight into the combinatorial structure of a suffix tree.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。