string-algorithms
string-algorithms copied to clipboard
Fix a bug in Four Russians LCS algorithm
The following test:
approximate_string_matching.lcs.four_russians(
'#bbbaaab', '#aaaabbb', 7, 7, approximate_string_matching.distance.INDEL_DISTANCE)
returns 3 instead of 4.
There has to be a bug somewhere in four_russians.py