Computing Runs on a General Alphabet

Abstract

We describe a RAM algorithm computing all runs (maximal repetitions) of a given string of length n over a general ordered alphabet in O(n23 n) time and linear space. Our algorithm outperforms all known solutions working in (nσ) time provided σ = n(1), where σ is the alphabet size. We conjecture that there exists a linear time RAM algorithm finding all runs.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…