A note on the number of squares in a partial word with one hole
Open Access
- 1 October 2009
- journal article
- research article
- Published by EDP Sciences in RAIRO - Theoretical Informatics and Applications
- Vol. 43 (4) , 767-774
Abstract
A well known result of Fraenkel and Simpson states that the number of distinct squares in a word of length n is bounded by 2n since at each position there are at most two distinct squares whose last occurrence starts. In this paper, we investigate squares in partial words with one hole, or sequences over a finite alphabet that have a “do not know” symbol or “hole”. A square in a partial word over a given alphabet has the form uv where u is compatible with v, and consequently, such square is compatible with a number of words over the alphabet that are squares. Recently, it was shown that for partial words with one hole, there may be more than two squares that have their last occurrence starting at the same position. Here, we prove that if such is the case, then the length of the shortest square is at most half the length of the third shortest square. As a result, we show that the number of distinct squares compatible with factors of a partial word with one hole of length n is bounded by .Keywords
This publication has 7 references indexed in Scilit:
- Equations on partial wordsRAIRO - Theoretical Informatics and Applications, 2007
- Algorithmic Combinatorics on Partial Words2007
- A note on the number of squares in a wordTheoretical Computer Science, 2007
- A simple proof that a word of length n has at most 2n distinct squaresJournal of Combinatorial Theory, Series A, 2005
- Conjugacy on partial wordsTheoretical Computer Science, 2002
- Partial words and a theorem of Fine and WilfTheoretical Computer Science, 1999
- How Many Squares Can a String Contain?Journal of Combinatorial Theory, Series A, 1998