计算机科学 > 数据结构与算法
[提交于 2015年1月26日]
标题:On Longest Repeat Queries
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Repeat finding in strings has important applications in subfields such as computational biology. Surprisingly, all prior work on repeat finding did not consider the constraint on the locality of repeats. In this paper, we propose and study the problem of finding longest repetitive substrings covering particular string positions. We propose an $O(n)$ time and space algorithm for finding the longest repeat covering every position of a string of size $n$. Our work is optimal since the reading and the storage of an input string of size $n$ takes $O(n)$ time and space. Because any substring of a repeat is also a repeat, our solution to longest repeat queries effectively provides a "stabbing" tool for practitioners for finding most of the repeats that cover particular string positions.
提交历史
来自:Bojian Xu[v1] 2015年1月26日 星期一 05:53:03 UTC