Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é String-matching automaton?

Definition 25.9 University Computer Science — Year 2 · Capítulo 25 — Text Algorithms and Compression

The string-matching automaton of PP over Σ\Sigma is the DFA with states 0,…,m0, \dots, m, start state 00, accepting state mm, and transition δ(q,c)\delta(q, c) the length of the longest prefix of PP that is a suffix of P[0..q−1]cP[0..q-1]c.

The string-matching automaton of ababc, drawn from . The edges not drawn lead to state 0. From state 4 (abab read), an a leads to 3: ababa ends with aba.
The string-matching automaton of ababc, drawn from Output 25.3. The edges not drawn lead to state 00. From state 44 (abab read), an a leads to 33: ababa ends with aba.
Ler no capítulo →