Waiting Time Distributions for Pattern Occurrence in a Constrained Sequence

Valery T. Stefanov, Wojciech SzpankowskiDiscret. Math. Theor. Comput. Sci 2007

Abstract

In the field of information theory and data storage, binary sequences are often subject to specific constraints to ensure reliable transmission and storage. A binary sequence is defined as a $(d, k)$-sequence if it does not contain runs of zeros with lengths less than $d$ or greater than $k$. This paper investigates the distribution of the waiting time until the $r$-th occurrence of a specific pattern $w$ within a random $(d, k)$-sequence generated by a Markov source. By employing Markov chain embedding and probability generating functions (PGFs), the authors derive exact recursive formulas for these distributions and provide numerical examples to demonstrate the computational efficiency of the approach.

Introduction

In digital communications and high-density data storage (such as optical discs or magnetic hard drives), raw data bits are rarely written directly to the medium. Instead, they are encoded into Run-Length Limited (RLL) codes, specifically $(d, k)$-sequences. These constraints serve practical engineering purposes: the $d$ constraint reduces inter-symbol interference by ensuring ones are not too close together, while the $k$ constraint ensures frequent enough transitions for clock synchronization.

While the statistical properties of unconstrained random sequences are well-documented, the introduction of $(d, k)$ constraints creates complex dependencies. In a constrained sequence, the probability of the next bit being a zero or a one depends heavily on the preceding run of zeros. This paper addresses a fundamental question in this context: how long must one wait for a specific pattern $w$ to appear $r$ times when the sequence is already constrained by $(d, k)$ rules?

The Challenge of Constrained Dependencies

In a standard Bernoulli or independent sequence, calculating the waiting time for a pattern is a classic problem in combinatorics. However, in a $(d, k)$-sequence, certain sequences of bits are "forbidden." This means the occurrence of a pattern $w$ is not just a function of the pattern itself, but also of whether the bits leading up to and following it violate the global $(d, k)$ constraints.

To solve this, the authors model the sequence as being generated by a two-state Markov chain. This allows for a more realistic representation of data sources where the probability of a bit depends on the state of the system. The primary difficulty lies in "filtering" the probability space to only include sequences that never violate the $(d, k)$ constraints.

Methodology: Markov Renewal and PGFs

The research utilizes a combination of Markov renewal theory and Probability Generating Functions (PGFs) to derive exact results. The methodology follows several key steps:

  1. Joint Generating Functions: The authors derive a joint PGF for two variables: the waiting time ($Y_r$) and the count of forbidden runs ($N^{(d,k)}$).
  2. The "Forbidden" Tracker: The core innovation is treating the $(d, k)$ constraint violations as a "forbidden pattern." By tracking these violations, the researchers can eventually condition the distribution on the event that the number of forbidden runs is exactly zero.
  3. Recursive Evaluation (Theorem 1): The paper presents a set of recurrence relations that allow for the efficient calculation of the PGF for a long pattern based on the PGFs of its sub-patterns. This avoids the need for solving massive, computationally expensive matrix equations typically associated with large Markov chains.
  4. Numerical Inversion: To extract concrete probabilities from the abstract PGFs, the authors apply the Abate-Whitt algorithm. This technique allows for the numerical inversion of generating functions into precise probability values.

Key Insights and Results

The paper demonstrates that the state of the sequence is highly sensitive to its "zero-run" history. The authors partition the pattern indices into specific sets based on whether a mismatch at a given position would trigger a forbidden run of zeros. This detailed tracking allows for high-precision results.

Numerical Validation

To validate the theoretical formulas, the authors analyzed a $(1, 4)$-sequence—a common constraint where runs of zeros must be between 1 and 4 bits long. They calculated the waiting time for the pattern $w = 100100100$ in a sequence of length $n=500$. The results, calculated to 10 decimal places, showed that:

  • Initial State Sensitivity: The starting bit of the sequence (0 or 1) has a significant impact on the probability of the pattern appearing in the short term.
  • Computational Efficiency: The recursive method proved to be "very fast," making it suitable for implementation in standard mathematical software like Maple or Mathematica.

Conclusion

This research provides the first exact recursive formulas for waiting times in constrained sequences, filling a significant gap in the analysis of RLL codes. While the current work focuses on single patterns and two-state Markov sources, it establishes a rigorous framework that could be extended to sets of patterns or more complex multi-state encoding schemes. These findings offer valuable tools for engineers and computer scientists designing the next generation of data storage and communication protocols.

Summary updated

BibTeX
@article{stefanov2007waiting,
  author = {Valery T. Stefanov and Wojciech Szpankowski},
  title = {{Waiting Time Distributions for Pattern Occurrence in a Constrained Sequence}},
  journal = {Discret. Math. Theor. Comput. Sci.},
  year = {2007},
  doi = {10.46298/dmtcs.382},
}
Figure