trie

Saving a trie to disk

Hello. This sounds like a simple question, but I don't know how to search for its answer. I have a trie implementation in C# that will store about 80K words from a dictionary file. It takes quite a while to load all these words (more than 5 mins). I was wondering, what is the best way to "persist" those data so I don't have to reload al...

STLish lower_bound function for Radix/Patricia Trie

Lately I've been studying Patricia tries, and working with a really good C++ implementation which can be used as an STL Sorted Associative Container. Patricia tries differ from normal binary trees because leaf nodes have back pointers which point back to internal nodes. Nonetheless, it's possible to traverse a Patricia trie in alphabet...

Trie data structures - Java

Hi, Is there any library or documentation/link which gives more information of implementing Trie data structure in java? Any help would be great! Thanks. ...

Disk-based trie?

I'm trying to build a Trie but on a mobile phone which has very limited memory capacity. I figured that it is probably best that the whole structure be stored on disk, and only loaded as necessary since I can tolerate a few disk reads. But, after a few attempts, it seems like this is a very complicated thing to do. What are some ways t...

IPv6 lookup data structure

A patricia trie is the well-know, recommended data structure for storing IPv4 allocations/assignments and performing lookup. Is this true for IPv6 adddresses too? Just a deeper/taller trie to accommodate the extra 96 bits? Is the trie still patricia, or a different radix trie? ...

implementing a TRIE data structure

Hii , i Was implementing a trie in C ... but i am getting an error in the insert_trie function . I could not figure out why the root node is not getting updated . Please help me with this. #include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct { char value; int level; struct node *next; struct node *list; }n...