5

From this question, there seems to be a Patricia Trie implementation, but there is no maven repo for it. In any case I can't find the trie in Gauva/Google Collections. Does anyone know any Trie implementation library in java, that has a maven repo?

Note: Its basically to create a backend for an autocomplete feature in frontend. Anything else that helps achieve this should be good enough.

Community
  • 1
  • 1
Suraj Chandran
  • 24,433
  • 12
  • 63
  • 94

2 Answers2

8

Check out concurrent-trees, which contains a concurrent Radix Tree/Patricia Trie implementation. It also has published artifacts to the standard maven repo.

Aleksander Blomskøld
  • 18,374
  • 9
  • 76
  • 82
1

org.apache.commons.collections4.trie.PatriciaTrie

Ilya Kharlamov
  • 3,698
  • 1
  • 31
  • 33