摘要:
KMP实现package com.algorithm.search;import java.util.Random;public final class KMP { private final char[] value; private final int count; public KMP(String str){ value = str.toCharArray(); count = value.length; } /** * 计算模式串匹配失败时,需要移动到的位置 * @param pattern ... 阅读全文
posted @ 2013-08-28 16:13
新月风云
阅读(521)
评论(0)
推荐(0)
2013年8月28日