I am looking for a good introduction/tutorial on Tries
.
Most of the links I find googling are either too succint and abstract for me or too trivial.
Could someone please provide a good reference with examples in Java for me to study?
Thanks
I am looking for a good introduction/tutorial on Tries
.
Most of the links I find googling are either too succint and abstract for me or too trivial.
Could someone please provide a good reference with examples in Java for me to study?
Thanks
I've recently coded up a Trie and Patricia Trie in Java. They are written to be easy to follow. All the data structures were built from their Wikipedia descriptions.
Related classes: Radix Trie, Suffix Trie, Trie Map.
If you have any questions, feel free to ask.
suffix trees
.They are compressed sufix tries
? –
Slugabed CharSequence
? –
Slugabed Googling found this blog with a series of articles in Java.
But I'd recommend buying a text book. Lots of Java oriented books on Data Structures and Algorithms are available from your favourite online bookstore.
Sure, have a look at Steve Hanov's site, like Fast and Easy Levenshtein distance using a Trie.
Levenstein
and it assumes you know what a Trie is, more or less, and it is in Python, which I don't know at all –
Slugabed I've recently coded up a Trie and Patricia Trie in Java. They are written to be easy to follow. All the data structures were built from their Wikipedia descriptions.
Related classes: Radix Trie, Suffix Trie, Trie Map.
If you have any questions, feel free to ask.
suffix trees
.They are compressed sufix tries
? –
Slugabed CharSequence
? –
Slugabed I recommend Stefan Nilsson's Ph.D. thesis from 1996, Radix Sorting & Searching (The searching part is what you are looking for.) It is quite an easy read for a research publication and contains a lot of both theory and practice about tries.
The examples are in C, not Java, but you shouldn't have much trouble understanding them if you know Java.
Found this topcoder link on trie quite useful :
http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=usingTries
© 2022 - 2024 — McMap. All rights reserved.