全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 String-matching automaton?

Definition 25.9 University Computer Science — Year 2 · 第 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.
在原文中阅读 →