Closed FrankC01 closed 7 years ago
Hi Frank, the answer to both questions is 'yes'.
ad 1) for growing and shrinking, have a look all methods prefixed with copyAnd...
.
ad 2) Leaf nodes might end up with 64 elements (32 times key and value) when you have a full trie with 2^32 elements, but typically the array sizes are way smaller.
Thanks for that quick response and, by inference as I continue reading:
Hypothetical node:
nodeMap = 0x01; dataMap = 0x10;
then:
nodes.length = 4; nodes[0] ; == lower level node nodes[1] ; == null nodes[2] ; == key nodes[3] ; == value
I'm good, thanks to the copyAnd...
reference you gave me, I see now.
For Map tries...
I'm trying to wrap my head around the implementation (great work and kudos to all). No, I'm not a masochist!
Re: BitmapIndexedMapNode 'nodes' array
TIA