跳到主要内容

AC 自动机与 Fail 树

备选

Graph 1

AC 自动机的 Trie 与 Fail 边

等待输入
Trie 边 Fail 边

Graph 2

通过 Fail 指针构建的 Fail 树

等待输入