SummaryAppearances of long repetitive sequences such as 00...0 or 1010...101 in random sequences are studied. The expected length of the longest repetitive run of any specified type in a random binary sequence of length n is shown to tend to the binary logarithm of n plus a periodic function of log n. Necessary and sufficient conditions are derived to ensure that with probability 1 an infinite random sequence should contain repetitive runs of specified lengths in given initial segments. Finally, the number of long repetitive runs of a specified kind that occur in a random sequence is studied. These results are derived from simple expressions for the generating functions for the probabilities of occurrences of various repetitive runs. These generating functions are rational, and lead to sharp asymptotic estimates for the probabilities.
[1]
J. Komlos,et al.
On Sequences of "Pure Heads"
,
1975
.
[2]
A. Rényi,et al.
On a new law of large numbers
,
1970
.
[3]
Leo J. Guibas,et al.
Maximal Prefix-Synchronized Codes
,
1978
.
[4]
A. Odlyzko,et al.
On the compositions of an integer
,
1980
.
[5]
Leonidas J. Guibas,et al.
Periods in Strings
,
1981,
J. Comb. Theory, Ser. A.
[6]
William Feller,et al.
An Introduction to Probability Theory and Its Applications
,
1951
.
[7]
Leonidas J. Guibas,et al.
String Overlaps, Pattern Matching, and Nontransitive Games
,
1981,
J. Comb. Theory A.
[8]
A. D. Solov’ev.
A Combinatorial Identity and Its Application to the Problem Concerning the First Occurrence of a Rare Event
,
1966
.