What string similarity algorithms are there?

Viewed 59697

I need to compare 2 strings and calculate their similarity, to filter down a list of the most similar strings.

e.g. searching for "dog" would return

  1. dog
  2. doggone
  3. bog
  4. fog
  5. foggy

e.g. searching for "crack" would return

  1. crack
  2. wisecrack
  3. rack
  4. jack
  5. quack

I have come across:

What other string similarity algorithms are there?

5 Answers
Related