NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unary Pattern Avoidance in Partial Words Dense with Holes

Francine Blanchet-Sadri, Kevin Black, Andrew ZemkeLATA 2011

TL;DR

This paper investigates how "dense" with holes a partial word can be while still avoiding specific patterns. They introduce "hole sparsity" as a measure of hole frequency and determine the minimum sparsity required for unary patterns (like $a^n$) to be avoided, providing a complete classification for these simple yet fundamental patterns.

What Problem Does This Paper Address?

The study of "pattern avoidance" in strings is a well-established area in theoretical computer science, with applications ranging from text processing to computational biology. A pattern is a sequence of variables (like $\alpha, \beta$) that can be substituted by actual characters. A word "avoids" a pattern if it does not contain any occurrence of that pattern. This concept has been extended to "partial words," which are sequences that can contain "holes" (represented by $\diamond$) that match any character.

Previous work has classified patterns based on whether they are "avoidable" (can be avoided by some word) and the minimum alphabet size needed to avoid them. However, a crucial question remained: given a pattern and an alphabet, how frequently can holes appear in a word while still avoiding that pattern? This paper tackles this by defining "hole sparsity" and exploring the trade-off between pattern avoidance and hole density, specifically for unary patterns ($a^n$).

Methods

The core contribution of this paper is the introduction and formalization of hole sparsity. A partial word is defined as $\lambda$-sparse if every substring of length $\lambda$ contains at least one hole. The authors then define two key quantities:

  • Non-trivial minimum hole sparsity ($\chi_k(p)$): The smallest $\lambda$ such that there exists an infinite $\lambda$-sparse word over a $k$-letter alphabet that avoids all non-trivial occurrences of pattern $p$.
  • Minimum hole sparsity ($\chi(p)$): The smallest $\lambda$ such that there exists an infinite $\lambda$-sparse word over a $k$-letter alphabet that avoids all occurrences of pattern $p$ (including trivial ones).

The paper then proceeds to compute these values for unary patterns of the form $a^n$ (e.g., $a^2$, $a^3$, $a^4$, etc.) over various alphabet sizes $k$. The methodology involves:

  • Lemmas and Proofs: Establishing theoretical properties of hole sparsity and its relationship to pattern divisibility and avoidability.
  • Morphisms: Utilizing string rewriting systems (morphisms) to construct infinite words with specific properties. These morphisms are often based on known constructions like the Thue-Morse sequence, which is known for its square-free and cube-free properties.
  • Backtracking Algorithms: Employing computational search algorithms to establish lower bounds for hole sparsity.
  • Case Analysis: Carefully examining different scenarios for pattern occurrences and hole positions to prove upper bounds and equalities.

Datasets

Not discussed in the paper. The paper focuses on theoretical constructions of infinite words rather than empirical evaluation on datasets.

Key Insights and Ideas

  • Hole Sparsity as a New Dimension: The introduction of hole sparsity provides a novel way to quantify the "corruption" or "incompleteness" of a word while maintaining pattern avoidance. This bridges the gap between perfectly formed words and completely arbitrary partial words.
  • Unary Patterns are Simpler: For unary patterns ($a^n$), the problem of hole sparsity is significantly simpler than for binary or more complex patterns. This allows for a complete classification.
  • Trade-off between Holes and Pattern: The results demonstrate a clear trade-off: as the alphabet size $k$ increases, the required hole sparsity $\lambda$ can decrease. Conversely, for a fixed alphabet, more complex patterns (higher $n$ in $a^n$) might require a higher hole sparsity to be avoided.
  • The Power of Known Constructions: The paper effectively leverages existing constructions like the Thue-Morse sequence, adapting them to the context of partial words and hole sparsity to prove its results.

Key Results

The paper provides a comprehensive classification of minimum hole sparsity for unary patterns $a^n$ for various alphabet sizes $k$. Some notable results include:

  • For $a^2$, the non-trivial minimum hole sparsity $\chi_k(a^2)$ is 4 for $k \ge 4$, and the minimum hole sparsity $\chi(a^2)$ is 2 for $k \ge 3$.
  • For $a^3$, the minimum hole sparsity $\chi(a^3)$ is 3 for $k \ge 3$.
  • For $a^n$ with $n \ge 4$, the minimum hole sparsity $\chi(a^n)$ is 2 for $k \ge 2$.
  • The paper presents detailed tables (Figures 1 and 2) summarizing the values of $\chi_k(a^n)$ and $\chi(a^n)$ for different $k$ and $n$.

Limitations and Future Work

  • Focus on Unary Patterns: The paper's classification is limited to unary patterns ($a^n$). The problem for binary and more complex patterns is significantly more challenging and remains an open area.
  • Theoretical Constructions: The results are based on constructing specific infinite words. While these constructions prove the existence of words with certain hole sparsity properties, exploring more general methods for generating or characterizing such words could be a future direction.
  • Algorithmic Aspects: While the paper uses backtracking algorithms to establish lower bounds, developing efficient algorithms for computing hole sparsity for arbitrary patterns would be a valuable extension.
  • Practical Applications: The paper is primarily theoretical. Future work could explore how these concepts of hole sparsity and pattern avoidance in partial words can be applied to real-world problems involving noisy or incomplete data.

Summary updated

BibTeX
@inproceedings{blanchetsadri2011unary,
  author = {Francine Blanchet-Sadri and Kevin Black and Andrew Zemke},
  title = {{Unary Pattern Avoidance in Partial Words Dense with Holes}},
  booktitle = {LATA},
  year = {2011},
  doi = {10.1007/978-3-642-21254-3\_11},
}

Loading related content...

Figure