String matching in Lempel-Ziv compressed strings
STOC '95 Proceedings of the twenty-seventh annual ACM symposium on Theory of computing
Sturmian words: structure, combinatorics, and their arithmetics
Theoretical Computer Science - Special issue: formal language theory
Burrows--Wheeler transform and Sturmian words
Information Processing Letters
Automatic Sequences: Theory, Applications, Generalizations
Automatic Sequences: Theory, Applications, Generalizations
Characterisations of balanced words via orderings
Theoretical Computer Science
Journal of the ACM (JACM)
Inequalities characterizing standard Sturmian and episturmian words
Theoretical Computer Science
Suffix automata and standard sturmian words
DLT'07 Proceedings of the 11th international conference on Developments in language theory
A simple representation of subwords of the Fibonacci word
Information Processing Letters
Faster subsequence and don't-care pattern matching on compressed texts
CPM'11 Proceedings of the 22nd annual conference on Combinatorial pattern matching
Computing the number of cubic runs in standard Sturmian words
Discrete Applied Mathematics
Hi-index | 5.23 |
We present a simple algorithm which for an explicitly given input string pat (a pattern) and a standard Sturmian word x described by the recurrences of size n computes, in time O(|pat|+n), the set of all occurrences of pat in x as a single arithmetic progression (modulo the length of x). The algorithm can be extended to the case when some letters of the pattern are replaced by a don't care symbol. In this case the set of all occurrences does not need to be a single arithmetic progression and our algorithm produces linearly many (with respect to the size of pat) arithmetic progressions. It is an example of fast computations for the input given in a compressed form. In our special case the length of the standard Sturmian word x is usually exponential with respect to the size of the input.