Shortest path to transform one word into another

NEW ANSWER Given the recent update, you could try A* with the Hamming distance as a heuristic. It’s an admissible heuristic since it’s not going to overestimate the distance OLD ANSWER You can modify the dynamic-program used to compute the Levenshtein distance to obtain the sequence of operations. EDIT: If there are a constant number … Read more