com.hankcs.hanlp.algoritm
类 LongestCommonSubsequence

java.lang.Object
  继承者 com.hankcs.hanlp.algoritm.LongestCommonSubsequence

public class LongestCommonSubsequence
extends Object

最长公共子序列(Longest Common Subsequence)指的是两个字符串中的最长公共子序列,不要求子序列连续。

作者:
hankcs

构造方法摘要
LongestCommonSubsequence()
           
 
方法摘要
static int compute(char[] str1, char[] str2)
           
static int compute(String str1, String str2)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LongestCommonSubsequence

public LongestCommonSubsequence()
方法详细信息

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.