My question is similar to Algorithm to transform one word to another through valid words
But with is a major difference. I have one fixed word say "JAMES" and varying dictionaries as i/p. Ofcourse, I can't preprocess dictionary now.
So I have to find the minimum cost for processing "JAMES" to "JOHNY" with different dictionaries as input.
Is there anyway I could preprocess the word "JAMES" so that I need to perform minimum number of edit distance calculations at run time? What do you guys suggest?