计算机科学 > 数据结构与算法
[提交于 2016年1月29日]
标题:Minimal Suffix and Rotation of a Substring in Optimal Time
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:For a text given in advance, the substring minimal suffix queries ask to determine the lexicographically minimal non-empty suffix of a substring specified by the location of its occurrence in the text. We develop a data structure answering such queries optimally: in constant time after linear-time preprocessing. This improves upon the results of Babenko et al. (CPM 2014), whose trade-off solution is characterized by $\Theta(n\log n)$ product of these time complexities. Next, we extend our queries to support concatenations of $O(1)$ substrings, for which the construction and query time is preserved. We apply these generalized queries to compute lexicographically minimal and maximal rotations of a given substring in constant time after linear-time preprocessing. Our data structures mainly rely on properties of Lyndon words and Lyndon factorizations. We combine them with further algorithmic and combinatorial tools, such as fusion trees and the notion of order isomorphism of strings.
提交历史
来自:Tomasz Kociumaka[v1] 2016年1月29日 星期五 10:58:24 UTC