In mathematics and theoretical computer science, a pattern is an unavoidable pattern if it is unavoidable on any finite alphabet.
Definitions
Pattern Like a word, a pattern (also called term) is a sequence of symbols over some alphabet. The minimum multiplicity of the pattern p is m(p)=min(countp(x):x∈p) where countp(x) is the number of occurrence of symbol x in pattern p. In other words, it is the number of occurrences in p of the least frequently occurring symbol in p.
Instance Given finite alphabets Σ and Δ, a word x∈Σ∗ is an instance of the pattern p∈Δ∗ if there exists a non-erasing semigroup morphism f:Δ∗→Σ∗ such that f(p)=x, where Σ∗ denotes the Kleene star of Σ. Non-erasing means that f(a)≠ε for all a∈Δ, where ε denotes the empty string.
Avoidance / Matching A word w is said to match, or encounter, a pattern p if a factor (also called subword or substring) of w is an instance of p. Otherwise, w is said to avoid p, or to be p-free. This definition can be generalized to the case of an infinite w, based on a generalized definition of "substring".
Avoidability / Unavoidability on a specific alphabet A pattern p is unavoidable on a finite alphabet Σ if each sufficiently long word x∈Σ∗ must match p; formally: if ∃n∈N. ∀x∈Σ∗. (|x|≥n⟹x matches p). Otherwise, p is avoidable on Σ, which implies there exist infinitely many words over the alphabet Σ that avoid p. By Kőnig's lemma, pattern p is avoidable on Σ if and only if there exists an infinite word w∈Σω that avoids p.
Maximal p-free word Given a pattern p and an alphabet Σ. A p-free word w∈Σ∗ is a maximal p-free word over Σ if aw and wa match p ∀a∈Σ.
Avoidable / Unavoidable pattern A pattern p is an unavoidable pattern (also called blocking term) if p is unavoidable on any finite alphabet. If a pattern is unavoidable and not limited to a specific alphabet, then it is unavoidable for any finite alphabet by default. Conversely, if a pattern is said to be avoidable and not limited to a specific alphabet, then it is avoidable on some finite alphabet by default.
k-avoidable / k-unavoidable A pattern p is k-avoidable if p is avoidable on an alphabet Σ of size k. Otherwise, p is k-unavoidable, which means p is unavoidable on every alphabet of size k. If pattern p is k-avoidable, then p is g-avoidable for all g≥k. Given a finite set of avoidable patterns S={p1,p2,...,pi}, there exists an infinite word w∈Σω such that w avoids all patterns of S. Let μ(S) denote the size of the minimal alphabet Σ′such that ∃w′∈Σ′ω avoiding all patterns of S.
Avoidability index The avoidability index of a pattern p is the smallest k such that p is k-avoidable, and ∞ if p is unavoidable.
Properties A pattern q is avoidable if q is an instance of an avoidable pattern p. Let avoidable pattern p be a factor of pattern q, then q is also avoidable. A pattern q is unavoidable if and only if q is a factor of some unavoidable pattern p. Given an unavoidable pattern p and a symbol a not in p, then pap is unavoidable. Given an unavoidable pattern p, then the reversal pR is unavoidable. Given an unavoidable pattern p, there exists a symbol a such that a occurs exactly once in p. Let n∈N represent the number of distinct symbols of pattern p. If |p|≥2n, then p is avoidable.
Zimin words
Given alphabet Δ={x1,x2,...}, Zimin words (patterns) are defined recursively Zn+1=Znxn+1Zn for n∈Z+ and Z1=x1.
Unavoidability All Zimin words are unavoidable. A word w is unavoidable if and only if it is a factor of a Zimin word. Given a finite alphabet Σ, let f(n,|Σ|) represent the smallest m∈Z+ such that w matches Zn for all w∈Σm. We have following properties:
f(1,q)=1 f(2,q)=2q+1 f(3,2)=29 f(n,q)≤n−1q=qq⋅⋅q⏟n−1 Zn is the longest unavoidable pattern constructed by alphabet Δ={x1,x2,...,xn} since |Zn|=2n−1.
Pattern reduction
Free letter Given a pattern p over some alphabet Δ, we say x∈Δ is free for p if there exist subsets A,B of Δ such that the following hold:
uv is a factor of p and u∈A ↔ uv is a factor of p and v∈B x∈A∖B∪B∖A For example, let p=abcbab, then b is free for p since there exist A=ac,B=b satisfying the conditions above.
Reduce A pattern p∈Δ∗ reduces to pattern q if there exists a symbol x∈Δ such that x is free for p, and q can be obtained by removing all occurrence of x from p. Denote this relation by p→xq. For example, let p=abcbab, then p can reduce to q=aca since b is free for p.
Locked A word w is said to be locked if w has no free letter; hence w can not be reduced.
Transitivity Given patterns p,q,r, if p reduces to q and q reduces to r, then p reduces to r. Denote this relation by p→∗r.
Unavoidability A pattern p is unavoidable if and only if p reduces to a word of length one; hence ∃w such that |w|=1 and p→∗w.
Graph pattern avoidance Source:
Avoidance / Matching on a specific graph Given a simple graph G=(V,E), a edge coloring c:E→Δ matches pattern p if there exists a simple path P=[e1,e2,...,er] in G such that the sequence c(P)=[c(e1),c(e2),...,c(er)] matches p. Otherwise, c is said to avoid p or be p-free. Similarly, a vertex coloring c:V→Δ matches pattern p if there exists a simple path P=[c1,c2,...,cr] in G such that the sequence c(P) matches p.
Pattern chromatic number The pattern chromatic number πp(G) is the minimal number of distinct colors needed for a p-free vertex coloring c over the graph G. Let πp(n)=max{πp(G):G∈Gn} where Gn is the set of all simple graphs with a maximum degree no more than n. Similarly, πp′(G) and πp′(n) are defined for edge colorings.
Avoidability / Unavoidability on graphs A pattern p is avoidable on graphs if πp(n) is bounded by cp, where cp only depends on p.
Avoidance on words can be expressed as a specific case of avoidance on graphs; hence a pattern p is avoidable on any finite alphabet if and only if πp(Pn)≤cp for all n∈Z+, where Pn is a graph of n vertices concatenated.
Probabilistic bound on πp(n) There exists an absolute constant c, such that πp(n)≤cnm(p)m(p)−1≤cn2 for all patterns p with m(p)≥2. Given a pattern p, let n represent the number of distinct symbols of p. If |p|≥2n, then p is avoidable on graphs.
… excerpt ends here. Continue reading the full article.