I think it would be better to build a specialized trie rather than chasing a completely different data structure.
I could see that the functionality appeared in three, in which each sheet had a field that reflected the frequency of searches for the corresponding word.
The search query method will display the nodes of the descendant leaves with the highest values โโcalculated by multiplying the distance to each leaf of the descendant node by the search frequency associated with each stream of the descendant node.
The data structure (and therefore the algorithm) uses Google, probably much more complicated, potentially taking into account a large number of other factors, such as the frequency of searches from your own account (and time of day ... and weather ... season .. . and the phase of the moon ... and ...). However, I believe that the basic trie data structure can be expanded to any specialized search preference by including additional fields in each node and using these fields in the search query method.
TK Jul 16 '10 at 13:25 2010-07-16 13:25
source share