Problem 130: Local periodicity lemma with one don't care symbol |
The problem concerns periodicities occurring inside a word that contains one occurrence of a don't care symbol (also called hole or joker). It is a letter, denoted by $*$, that stands for any other letter of the alphabet, that is, it matches any letter including itself. For a string $x$, two of its letters, $x[i]$ and $x[j]$, are said to $\approx$-match, written $x[i]\approx x[j]$, if they are equal or one of them is the don't care symbol.
Furher, an integer $p$ is a local period of $x$ if for each position $0\leq i\lt |x|-p$, we have $x[i]\approx x[i+p]$. Recall the Periodicity lemma for usual words (see Periodicity).
The problem is related to an extension of this lemma to words in which only one don't care symbol occurs.
The example in this question shows the inequality in the first question is tight.