字符串匹配算法:朴素(Naive)字符串匹配算法代码来源: 发布时间:星期三, 2008年12月10日 浏览:85次 评论:0
作为最原始的字符串匹配算法,它的时间复杂度是O((n-m+1)m)
#include \"stdio.h\" //计算字符串的长度 return count; //字符串匹配 bool find=true; printf(\"The string T is %s\\n\",t); int main() NaiveStringMatching(t,p); 0
相关文章读者评论发表评论 |