字符串-模式匹配算法
摘要:1:BF(brute-force)模式匹配 int Index(char S[],int pos,char T[]) { int i=pos;//主串开始位置 int j=1; while(i<=strlen(S)&&j<=strlen(T)) { if(S[i]==T[j]) { i++; j++
阅读全文
posted @ 2021-11-03 17:04
posted @ 2021-11-03 17:04
posted @ 2021-11-03 16:18
posted @ 2021-11-03 15:36
posted @ 2021-11-03 15:21
posted @ 2021-11-03 12:02