+1
−1
Loading
算法中的最后一项: > 最终我们需要使用后缀链接从状态 $p$ 返回,因为存在一条通过 $p$ 到状态 $q$ 的转移,并在此过程中重定向所有状态到状态 $clone$。 此处翻译有误,英文翻译的原文为: > Finally we need to walk from the state p back using suffix links as long as there is a transition through c to the state q, and redirect all those to the state clone. 或应翻译成: > 最终我们需要使用后缀链接从状态 $p$ 往回走(返回 ? ),只要存在一条通过 $p$ 到状态 $q$ 的转移,就将该转移重定向到状态 $clone$。