I want to understand how Google does not fill the gap between two words. For example, there are 2 words - word1 and word2. I write in the search field "word1word2", it says that you mean the word word1 word2 or just understand "word1 word2". Any information, what data structure and algorithm do they use? I see in this answer How to split text without spaces into a list of words? , it is proposed to use the trie data structure.
source
share