摘要:因为在做大文件上传的分析中需要用到一段字符串的匹配算法,所以重新学习了一次KMP算法. private int[] GetNextVal(string t) { int j = 0, k = -1; int[] nextVal = new int[t.Length]; nextVal[0...
阅读全文
随笔分类 - 算法
摘要:因为在做大文件上传的分析中需要用到一段字符串的匹配算法,所以重新学习了一次KMP算法. private int[] GetNextVal(string t) { int j = 0, k = -1; int[] nextVal = new int[t.Length]; nextVal[0...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->char[] templateText = txt.ToCharArray(); //ITemplate it = new CleanTemplate(); L...
阅读全文
|