Search code examples
algorithmlevenshtein-distance

Insertions, deletions and substitutions between two strings


Given string A,B I need to compute the number of insertions, deletions and substitutions for B to become A. What would be a good algorithm for this?


Solution

  • That's known as Levenshtein distance.