Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es String matching, occurrence, shift?

También llamado: occurrence (string matching) · string matching

Definition 25.1 University Computer Science — Year 2 · Capítulo 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.

Leer en el capítulo →