Abstract
We give a simple algorithm that, given a straight-line program of size n for a string S of length N, tests whether S is square-free in O(n 4logN) time and O(n2) space. The algorithm also allows us to test square-freeness on an arbitrary composition system of size c for S, in O(c4log5N) time and O(c2log2N) space, which is faster than using the algorithm by Ga̧sieniec, Karpinski, Plandowski, and Rytter (1996) [4].
| Original language | American English |
|---|---|
| Pages (from-to) | 711-714 |
| Number of pages | 4 |
| Journal | Information Processing Letters |
| Volume | 112 |
| Issue number | 19 |
| DOIs | |
| State | Published - 15 Oct 2012 |
Keywords
- Algorithms
- Repetitions in strings
- Straight-line programs
- String processing
- Text compression
All Science Journal Classification (ASJC) codes
- Theoretical Computer Science
- Signal Processing
- Information Systems
- Computer Science Applications