I have implmented the Levenshtein algorigthm and it works great for
turning one string into another, but I have discovered that this is
not exactly what I need. One string will be edited to conform to
merely a substring of another .
So for instance
I want a edit distance of 1 where you only have to remove the b.
With Levenshtein the matrix is static. If you add ijklmno to make the
lengths the same the distance is 2. Is there an efficient algorithm
that does this? I have determined that you can use levenshtein
distance to determine which option remove, replace, insert is the best
option and correct the string as you go. But if there are many
differences the complexity is bad.