[prev] 46 [next]

Word Matching with Tries

Preprocessing the text:

  1. Insert all searchable words of a text into a trie
  2. Each finishing node stores the occurrence(s) of the associated word in the text