Any trie implementation in java( with maven repo )
Asked Answered
H

2

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.

Higinbotham answered 21/12, 2012 at 14:18 Comment(0)
P
8

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

Psychochemical answered 21/12, 2012 at 14:22 Comment(2)
Do you know the name of the class for Trie?Higinbotham
Updated the answer with a link to the Radix Tree (which is the same as a Patricia Tree - en.wikipedia.org/wiki/Radix_tree)Edroi
S
1

org.apache.commons.collections4.trie.PatriciaTrie

Shredding answered 27/11, 2015 at 12:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.