English

Computing Runs on a General Alphabet

Data Structures and Algorithms 2015-11-24 v2

Abstract

We describe a RAM algorithm computing all runs (maximal repetitions) of a given string of length nn over a general ordered alphabet in O(nlog23n)O(n\log^{\frac{2}3} n) time and linear space. Our algorithm outperforms all known solutions working in Θ(nlogσ)\Theta(n\log\sigma) time provided σ=nΩ(1)\sigma = n^{\Omega(1)}, where σ\sigma is the alphabet size. We conjecture that there exists a linear time RAM algorithm finding all runs.

Keywords

Cite

@article{arxiv.1507.01231,
  title  = {Computing Runs on a General Alphabet},
  author = {Dmitry Kosolobov},
  journal= {arXiv preprint arXiv:1507.01231},
  year   = {2015}
}

Comments

4 pages, 2 figures

R2 v1 2026-06-22T10:05:56.086Z