String Cadences

Amihood Amir, Alberto Apostolico, Travis Gagie, Gad M. Landau · arXiv (Cornell University) · 2016

We say a string has a cadence if a certain character is repeated at regular intervals, possibly with intervening occurrences of that character. We call the cadence anchored if the first interval must be the same length as the others. We give a sub-quadratic algorithm for determining whether a string has any cadence consisting of at least three occurrences of a character, and a nearly linear algorithm for finding all anchored cadences.

Read the paper · More papers on PaperTik