Reputation: 14664
Which algorithms or data structures are used in auto-suggest features?
It seems that edit-distance will be used, but again a frequency or score associated with each word should also be considered. For example, consider the tags option on SO's Ask Question page.
Upvotes: 4
Views: 2894
Reputation: 41
hi raccha , Autosuggestion system work on recursive Algorithm.Google & facebook are implement this algo in his formation . facebook are use graph+recursive type alog. i am give you example for that. if you are type f in facebook search bar then you can saw that facebook is search that how many persons or pages which you like or add. first letter is f then it is showing suggestion's
Upvotes: 0
Reputation: 18305
Take a look at the links provided in the answers to this stackoverflow question autocomplete algorithms, papers, strategies, etc., you may find what you're looking for there.
Upvotes: 1
Reputation: 133577
You can use a trie:
Upvotes: 5