Answers are grounded in this paper and cite their sources.
We give a generalization of the result of Erdos and Renyi on the length Rₙ of the longest head run in the first n tosses of a coin. Consider two independent sequences, X₁ X₂⋯ Xₘ and Y₁Y₂⋯ Yₙ. Suppose that X₁, X₂,⋯ are i.i.d. μ, and Y₁, Y₂,⋯ are i.i.d. ν, where μ and ν are possibly different distributions on a common finite alphabet S. Let p ≡ P(X₁ = Y₁) ∈ (0, 1). The length of the longest matching consecutive subsequence is Mm,n ≡ max : Xᵢ₊ᵣ = Yⱼ₊ᵣ for $r = 1$ to k, for some 0 ≤ i ≤ m - k, 0 ≤ j ≤ n - k\. For m and n → ∞ with log(m)/log(mn) → λ ∈ (0,1), our result is that there is a constant K ≡ K(μ, ν, λ) ∈ (0, 1 such that P(lim Mm,n/log1/p(mn) = K) = 1. The proof uses large deviation methods. The constant K is determined from a variational formula involving the Kullback-Liebler distance or relative entropy. A simple necessary and sufficient condition for $K = 1$ is given. For the case m = n (λ = 1/2) and μ = ν, K = 1. The set of (μ, ν, λ) for which $K = 1$ has nonempty interior. The boundary of this set is the location of a phase transition. The results generalize to more than two sequences and to Markov chains. A strong law of large numbers is given for the proportion of letters within the longest matching word; the limiting proportion exhibits critical behavior, similar to that of K.
No takes yet. Share an insight, caveat, or question.
Arratia et al. (1985) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: