English

On Longest Repeat Queries

Data Structures and Algorithms 2015-01-27 v1

Abstract

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)O(n) time and space algorithm for finding the longest repeat covering every position of a string of size nn. Our work is optimal since the reading and the storage of an input string of size nn takes O(n)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.

Keywords

Cite

@article{arxiv.1501.06259,
  title  = {On Longest Repeat Queries},
  author = {Atalay Mert İleri and M. Oğuzhan Külekci and Bojian Xu},
  journal= {arXiv preprint arXiv:1501.06259},
  year   = {2015}
}

Comments

11 pages

R2 v1 2026-06-22T08:12:36.387Z