07 2012 档案

hdu2222 Keyword Search
摘要:1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #define N 26 //表示子节点的个数,最多是26个 5 struct node //定义一个队列,等一会建立失效函数的时候会用到!! 因为是BFS广度优先遍历吗! 即一层一层的!! 6 { 7 node *fail; //失效指针,用于当前字符失配时,下一待匹配字符的位置 8 node *next[N]; //子节点 9 int end; 10 node() //构造函数,与... 阅读全文

posted @ 2012-07-31 13:22 小花熊 阅读(319) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示