- The paper characterizes ins-robust primitive words ($Q_I$), defining them as primitive words that remain primitive after inserting any letter from the alphabet.
- The authors develop a linear-time algorithm to recognize these words and establish properties, including their density and a lower bound on their number.
- The study demonstrates that the language of non-ins-robust primitive words is not context-free, showing the complexity and relationship of $Q_I$ to formal language classes.
The paper characterizes a subclass of primitive words referred to as ins-robust primitive words, denoted as QI​, which maintain primitivity upon insertion of any letter from the underlying alphabet V. The study details several properties of QI​, demonstrates its density, and provides a linear-time algorithm for recognizing these words. Furthermore, a lower bound on the number of n-length ins-robust primitive words is established, and it is proven that the language of primitive words that are not ins-robust is not context-free.
Here's a breakdown:
Basic Definitions and Properties:
- A word is defined as a sequence of symbols from a finite alphabet V.
- A word w is primitive if it is not a power of any other word (i.e., w=vn implies n=1 and w=v).
- An ins-robust primitive word w of length n remains primitive after inserting any letter a∈V at any position i∈{0,1,…,n}.
- The language of ins-robust primitive words (QI​) is a subset of the language of primitive words (Q).
- The paper references prior work showing that if u1​u2â€‹î€ =an, then at least one of the words among u1​u2​ and u1​au2​ is primitive.
Characterization of Ins-Robust Primitive Words:
- A central theorem states that a primitive word w is not ins-robust if and only if it can be expressed as w=uru1​u2​us, where u=u1​cu2​∈Q, u1​,u2​∈V∗, c∈V, and r,s≥0 with r+s≥1.
- The set of non-ins-robust primitive words is denoted as QI​=Q∖QI​.
- If u,v∈Q and um=u1​u2​ and v=u1​cu2​ for some c∈V, then umvn∈QI​ for m,n≥2.
- If w∈QI​, then rev(w)∈QI​, where rev(w) is the reverse of w.
- The language QI​ is reflective; that is, if uv∈QI​, then vu∈QI​.
Density of Ins-Robust Primitive Words:
- A language L is dense if for every w∈V∗, there exist x,y∈V∗ such that xwy∈L.
- If ∣w∣=n and wan∈QI​ where w∈/a∗, then wan=u2u1​u2​, where u=u1​bu2​ for bî€ =a.
- If wan∈QI​, then for bî€ =a, wbn∈QI​.
- The language QI​ is dense over the alphabet V.
Relation to Formal Languages:
- The paper investigates the relationship between QI​ and traditional languages in the Chomsky hierarchy.
- The language QI​ is shown to be non-regular. This is proven using a pumping lemma argument and leveraging the result that for any fixed integer k, there exists a positive integer m such that the equation system (k−j)xj​+j=m, j=0,1,2,…,k−1 has a nontrivial solution with positive integers x1​,x2​,…,xj​>1.
- The language of non-ins-robust primitive words, QI​, is proven to be non-context-free for a binary alphabet. This is shown via contradiction using the pumping lemma for context-free languages.
Counting Ins-Robust Primitive Words:
- Let Z(k)=Vk∖Q be the set of n-length non-primitive words.
- Let m∈N and m=m1​r1​m2​r2​…mt​rt​ be the factorization of m, where all mi​,1≤i≤t, are prime and miâ€‹î€ =mj​ for iî€ =j, then the number of primitive words of length m is equal to
∣V∣m−​1≤i≤t∑​∣V∣mi​m​+1≤i≤j≤t∑​∣V∣mi​mj​m​ −​1≤i≤j≤k≤t∑​∣V∣mi​mj​mk​m​+⋯+(−1)t−1∣V∣m1​m2​⋯mt​m​​
- An upper bound on the number of non-ins-robust primitive words of length n≥2 is found as:
∣QI(n)​∣≤(n+1)⋅(∣Z(n+1)∣−∣V∣).
- The number of ins-robust-primitive words of length n, QI​(n), over an alphabet V is equal to ∣Qn​∣−∣QI(n)​∣.
Algorithm for Recognizing Ins-Robust Primitive Words:
- A linear-time algorithm is presented to determine if a given primitive word w is ins-robust.
- The algorithm leverages the property that a word u is non-ins-robust if and only if uu contains at least one periodic word of length ∣u∣ with period p such that p divides of length ∣u∣+1 and p≤∣u∣.
- The algorithm utilizes an existing algorithm for finding maximal repetitions in linear time.
Open Problems:
The paper concludes by posing questions for future research:
- Is QIi​ for i≥2 regular?
- Is the language of ins-robust primitive words QI​ a deterministic context-free language?