Package generic.algorithms
Class StringReducingLcs
A reducing LCS that works on Strings.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class generic.algorithms.ReducingLcs
doGetLcs, lengthOfX, lengthOfY, matches, valueOfX, valueOfYMethods inherited from class generic.algorithms.Lcs
getLcs, getLcs, getSizeLimit, setSizeLimit
-
Constructor Details
-
StringReducingLcs
-
-
Method Details
-
reduce
Description copied from class:ReducingLcsCreate a subsequence from the given input sequence.- Specified by:
reducein classReducingLcs<String,Character> - Parameters:
input- the input sequence; 0-based (x or y)start- the start index; 0-based (inclusive)end- the end index (exclusive)- Returns:
- the subsequence
-
lengthOf
Description copied from class:ReducingLcsReturn the length of the given sequence- Specified by:
lengthOfin classReducingLcs<String,Character> - Parameters:
s- the input sequence (x or y)- Returns:
- the length
-
valueOf
Description copied from class:ReducingLcsReturn the value at the given 0-based offset- Specified by:
valueOfin classReducingLcs<String,Character> - Parameters:
s- the input sequence (x or y)offset- the offset- Returns:
- the value
-