DOAJ Open Access 2003

q-gram analysis and urn models

Pierre Nicodème

Abstrak

Words of fixed size q are commonly referred to as $q$-grams. We consider the problem of $q$-gram filtration, a method commonly used to speed upsequence comparison. We are interested in the statistics of the number of $q$-grams common to two random texts (where multiplicities are not counted) in the non uniform Bernoulli model. In the exact and dependent model, when omitting border effects, a $q$-gramin a random sequence depends on the $q-1$ preceding $q$-grams. In an approximate and independent model, we draw randomly a $q$-gram at each position, independently of the others positions. Using ball and urn models, we analyze the independent model. Numerical simulations show that this model is an excellent first order approximationto the dependent model. We provide an algorithm to compute the moments.

Topik & Kata Kunci

Penulis (1)

P

Pierre Nicodème

Format Sitasi

Nicodème, P. (2003). q-gram analysis and urn models. https://doi.org/10.46298/dmtcs.3322

Akses Cepat

Lihat di Sumber doi.org/10.46298/dmtcs.3322
Informasi Jurnal
Tahun Terbit
2003
Sumber Database
DOAJ
DOI
10.46298/dmtcs.3322
Akses
Open Access ✓