Quantcast
Channel: What is the best algorithm for matching two string containing less than 10 words in latin script - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Mikhail for What is the best algorithm for matching two string containing less than 10 words in latin script

$
0
0

You are likely need to solve a string-to-string correction problem. Levenshtein distance algorithm is implemented in many languages. Before running it I'd remove all spaces from string, because they don't contain any sensitive information, but may influence two strings difference. For string search prefix trees are also useful, you can have a look in this direction as well. For example here or here. Was already discussed on SO. If spaces are so much significant in your case, just assign a greater weight to them.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>