Fast and Easy Levenshtein distance using a Trie
https://stevehanov.ca/blog/fast-and-easy-levenshtein-distance-using-a-trie
#HackerNews #LevenshteinDistance #Trie #DataStructures #Algorithms #Efficiency

Fast and Easy Levenshtein distance using a Trie
<img src="http://stevehanov.ca/blog/images/acer.jpg"/> If you have a web site with a search function, you will rapidly realize that most mortals are terrible typists. Many searches contain mispelled words, and users will expect these searches to magically work. This magic is often done using levenshtein distance. In this article, I'll compare two ways of finding the closest matching word in a large dictionary. I'll describe how I use it on rhymebrain.com


Qiita - 人気の記事