Space efficient search for maximal repetitions

  • Authors:
  • Leszek Gasieniec;Roman Kolpakov;Igor Potapov

  • Affiliations:
  • Department of Computer Science, University of Liverpool, Chadwick Building, Peach St., Liverpool L69 7ZF, UK;Department of Computer Science, University of Liverpool, Chadwick Building, Peach St., Liverpool L69 7ZF, UK;Department of Computer Science, University of Liverpool, Chadwick Building, Peach St., Liverpool L69 7ZF, UK

  • Venue:
  • Theoretical Computer Science - Combinatorics on words
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study here a problem of finding all maximal repetitions in a string of length n. We show that the problem can be solved in time O(n log n) in the presence of constant extra space and general (unbounded) alphabets. Subsequently we show that in the model with a constant size alphabet the problem can be solved in time O(n) with a help of o(n) extra space. Previously best known algorithms require linear additional space in both models.