KeyWords Search(AC automation)
#include
#include
using namespace std;
const int num_char=26;
struct TrieNode
{
TrieNode *branch[num_char];
TrieNode *fail;
int count;//if this is the last node of the word
TrieNod
原创
2012-10-24 18:44:29 ·
380 阅读 ·
0 评论