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?
That's known as Levenshtein distance.