com.hankcs.hanlp.algoritm
类 LongestCommonSubstring
java.lang.Object
com.hankcs.hanlp.algoritm.LongestCommonSubstring
public class LongestCommonSubstring
- extends Object
求最长公共字串的长度
最长公共子串(Longest Common Substring)指的是两个字符串中的最长公共子串,要求子串一定连续
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongestCommonSubstring
public LongestCommonSubstring()
compute
public static int compute(char[] str1,
char[] str2)
compute
public static int compute(String str1,
String str2)
Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.