I am referring to the algorithm that is used to give query suggestions when a user types a search term in Google.
I am mainly interested in:
1. Most important results (most likely queries rather than anything that matches)
2. Match substrings
3. Fuzzy matches
I know you could use Trie or generalized trie to find matches, but it wouldn't meet the above requirements...
Similar questions asked earlier here
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…