Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any trie implementation in java( with maven repo )

Tags:

java

maven

trie

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.

like image 222
Suraj Chandran Avatar asked Dec 21 '12 14:12

Suraj Chandran


2 Answers

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

like image 61
Aleksander Blomskøld Avatar answered Nov 07 '22 03:11

Aleksander Blomskøld


org.apache.commons.collections4.trie.PatriciaTrie

like image 23
Ilya Kharlamov Avatar answered Nov 07 '22 05:11

Ilya Kharlamov