Dictionary Implementation

Programming, for all ages and all languages.
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

Re: Dictionary Implementation

Post by xvedejas »

Would there be a good way to make a compact radix tree, that is a similar structure to a radix tree that only uses, maybe, contiguous memory?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Dictionary Implementation

Post by JamesM »

xvedejas wrote:Would there be a good way to make a compact radix tree, that is a similar structure to a radix tree that only uses, maybe, contiguous memory?
That's very easy, as long as you know which keys you need to insert beforehand and which keys are more likely to be looked up. Then you could optimise for almost perfect cache locality.
Post Reply