Get the latest tech news

Fast and Easy Levenshtein distance using a Trie (2011)


<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

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Easy

Easy

Photo of trie

trie

Photo of Levenshtein distance

Levenshtein distance

Related news:

News photo

FakeIt: C++ Mocking Made Easy

News photo

Show HN: I've made an easy to extend and flexible JavaScript logger

News photo

Hedy: Textual programming made easy