计算机科学 > 数据结构与算法
[提交于 2016年10月11日]
标题:String Cadences
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Travis Gagie[v1] 2016年10月11日 星期二 13:51:00 UTC