Skip to main content
Log in

String Matching and 1d Lattice Gases

  • Published:
Journal of Statistical Physics Aims and scope Submit manuscript

Abstract

We calculate the probability distribution for the number of occurrences n of a given l letter word x inside a random string of k letters, whose letters have been generated by a known stationary stochastic process. Denoting by p(x) the probability of occurrence of the word, it is well-known that the distribution of occurrences in the asymptotic regime k → ∞ such that kp(x) ≫ 1 is Gaussian, while in the limit k→ ∞, and p(x) → 0 , such that kp(x) is finite, the distribution is Compound Poisson. It is also known that these limiting forms do not work well in the intermediate regime when kp(x) >rsim 1 and k is finite. We show that the problem of calculating the probability of occurrences is equivalent to determining the configurational partition function of a 1d lattice gas of interacting particles, with the probability distribution given by the n-particle terms of the grand-partition function and the number of particles corresponding to the number of occurrences on the string. Utilizing this equivalence, we obtain the probability distribution from the equation of state of the lattice gas. Our result reproduces rather well the behavior of the distribution in the asymptotic as well as the intermediate regimes. Within the lattice gas description, the asymptotic forms of the distribution naturally emerge as certain low density approximations. Thus our approach which is based on statistical mechanics, also provides an alternative to the usual statistics based treatments employing the central limit and Chen–Stein theorems.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Muhittin Mungan.

Additional information

PACS Nos: 02.10.Ox,05.70.Ce,2.50.-r

Rights and permissions

Reprints and permissions

About this article

Cite this article

Mungan, M. String Matching and 1d Lattice Gases. J Stat Phys 126, 207–242 (2007). https://doi.org/10.1007/s10955-006-9247-z

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10955-006-9247-z

Keywords

Navigation