https://en.wikipedia.org/wiki/Judy_array http://judy.sourceforge.net
To install the Judy C lib:
brew install judy apt-get install libjudy-dev
Example: http://judy.sourceforge.net/doc/JudyL_3x.htm
An rrb-tree is an effective O(1) time for every category. Scala's Vector type implements one.
If interested about the data structure: https://youtu.be/sPhpelUfu8Q
Scala bigO doc: https://docs.scala-lang.org/overviews/collections-2.13/perfo... Scala's doc on it: https://github.com/nicolasstucki/scala-rrb-vector/blob/maste...
https://en.wikipedia.org/wiki/Judy_array http://judy.sourceforge.net
To install the Judy C lib:
Then compile with -lJudy and #include <Judy.h>Example: http://judy.sourceforge.net/doc/JudyL_3x.htm