Need memory efficient way to store tons of strings (was: HAT-Trie implementation in java)
The trie seems like a very good idea for your constraints. A “thinking outside the box” alternative: If you can afford some probability of answering “present” for a string that is absent EDIT: if you can afford false positives, use a Bloom filter as suggested by WizardOfOdds in the comments. For k=1, a Bloom filter … Read more