Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « String matching, occurrence, shift » ?

Aussi appelé : occurrence (string matching) · string matching

Definition 25.1 University Computer Science — Year 2 · Chapitre 25 — Text Algorithms and Compression

Let T=T[0..n−1]T = T[0..n-1] be a text and P=P[0..m−1]P = P[0..m-1] a pattern, words over an alphabet Σ\Sigma, with 1≤m1 \leq m. A shift is an integer ss with 0≤s≤n−m0 \leq s \leq n - m; it is an occurrence of PP when T[s+j]=P[j]T[s + j] = P[j] for 0≤j<m0 \leq j < m. String matching is the problem of finding every occurrence.

Lire dans le chapitre →