Crit-bit Trees: the best way to store sets
1–10 of 42 posts
Re: Crit-bit Trees: the best way to store sets
#2https://github.com/rkapsi/patricia-trie https://github.com/jfager/functional-critbit
The latter is my own, with a focus on memory efficiency (by my benchmarks, it uses about 40% less space than patricia-trie for the same data set). Would love to get some extra eyes on it to figure out how to trim it further or speed it up.
Re: Crit-bit Trees: the best way to store sets
#3Re: Crit-bit Trees: the best way to store sets
#4agl's C translation written in literate programming style: PDF: https://github.com/agl/critbit/blob/master/critbit.pdf Repo: https://github.com/agl/critbit
Re: Crit-bit Trees: the best way to store sets
#5And that's a perfect (missing) example for "a picture is worth a thousand words". Then again... this coming from DJB - I should be surprised the description is as verbose as it is.
Re: Crit-bit Trees: the best way to store sets
#6agl's C translation written in literate programming style: PDF: https://github.com/agl/critbit/blob/master/critbit.pdf Repo: https://github.com/agl/critbit
Does 'literate programming style' require the lack of indentation in his source file?
Re: Crit-bit Trees: the best way to store sets
#7agl's C translation written in literate programming style: PDF: https://github.com/agl/critbit/blob/master/critbit.pdf Repo: https://github.com/agl/critbit
Does 'literate programming style' require the lack of indentation in his source file?
Re: Crit-bit Trees: the best way to store sets
#8It works extremely well "out of the box" for dictionary words, since the automata enables sharing of both prefixes and suffixes.
Re: Crit-bit Trees: the best way to store sets
#9Re: Crit-bit Trees: the best way to store sets
#10Also known as a radix tree, I believe.