I was just going over some questions but I got stuck at a Levenshtein edit distance question.
So the first part of the question was:
What is the Levenshtein edit distance between the strings
STRONGEST
andTRAINERS
?
Which I calculated as 6
. But the next question I could not get is
Let
d
be the edit distance found in part (so6
). How many different sets ofd
‘edits’ (insertions, deletions, or substitutions) are there that will change the stringSTRONGEST
into the stringTRAINERS
?
Could anyone explain how I could find how many different sets exists here and how you arrived with the solution?