摘要: #define Max 101int next[Max];void getNext(const char*t,int tl){ int i=0,j=-1; next[0]=-1; while(i<tl) { if(j==-1||t[i]==t[j])next[++i]=++j; else j=next[j]; }}int nextval[Max];void getNextVal(const ... 阅读全文
posted @ 2010-04-10 21:01 yangjinbo28 阅读(142) 评论(0) 推荐(0)