An O(n log n) algorithm for finding all repetitions in a string
Journal of Algorithms
Theoretical Computer Science
Detecting leftmost maximal periodicities
Discrete Applied Mathematics - Combinatorics and complexity
Algorithms on strings, trees, and sequences: computer science and computational biology
Algorithms on strings, trees, and sequences: computer science and computational biology
Introduction to data compression
Introduction to data compression
Simple and flexible detection of contiguous repeats using a suffix tree
Theoretical Computer Science
Finding Maximal Repetitions in a Word in Linear Time
FOCS '99 Proceedings of the 40th Annual Symposium on Foundations of Computer Science
Linear time algorithms for finding and representing all the tandem repeats in a string
Journal of Computer and System Sciences
A Coarse-Grained multicomputer algorithm for the detection of repetitions
Information Processing Letters
ACM Computing Surveys (CSUR)
An efficient algorithm for online square detection
Theoretical Computer Science - Computing and combinatorics
Distinct squares in run-length encoded strings
Theoretical Computer Science
Efficient retrieval of approximate palindromes in a run-length encoded string
Theoretical Computer Science
Hardness of longest common subsequence for sequences with bounded run-lengths
CPM'12 Proceedings of the 23rd Annual conference on Combinatorial Pattern Matching
Hi-index | 5.23 |
Squares are strings of the form ww where w is any nonempty string. Main and Lorentz proposed an O(nlogn)-time algorithm for finding the positions of all squares in a string of length n. Based on their result, we show how to find the positions of all squares in a run-length encoded string in time O(NlogN) where N is the number of runs in this string, provided that we do not explicitly compute at all ''trivial squares'' occurring within runs. The algorithm is optimal and its time complexity is independent of the length of the original uncompressed string.