"Nice Trie Mister"

131 views
Skip to first unread message

Jason E. Aten

unread,
Mar 11, 2025, 1:15:42 PM3/11/25
to golang-nuts
Who can resist a good trie pun?

I put my combined ART (adaptive radix trie) + Order-Statistics tree
up on github.  It is a nice sorted key/value alternative to red-black trees. 

Some unique features:

You can iterate and delete at the same time. I tend to need to do this often.
Especially deleting the key that I've just found.

You can access the tree like a slice: tree.At(i) will give you the i-th element in the lexicographic sorted []byte keys. Almost as if you had said tree[i], were tree a slice.

https://github.com/glycerine/uart

Feedback welcome.

Enjoy.
Jason


Reply all
Reply to author
Forward
0 new messages