techInterview Discussion |
||
|
A part of techInterview.org: answers to technical interview questions.
Your host: Michael Pryor |
A question from Google. Compute edit distance one by one to the words in the dictionary?
Thursday, June 21, 2007
There are few efficient ways to do this
1) Tries can be used with similarity finding algorithm. 2) Phonetic Hashing can be done using "soundex algorithms", so that similar-sounding terms hash to the same value. 3) combination of K-gram indexing and edit distance.
or try this from Peter Norvig (Google director of research):
http://www.norvig.com/spell-correct.html Thursday, June 21, 2007 |
|
Powered by FogBugz


