Work

Nibble Trie: A Cache-Conscious Radix-16 Sparse Array for Online Associative Indexing

Year: 2026
Type: preprint
Abstract: This preprint introduces the Nibble Trie, a compact two-tier Radix-16 sparse array in C++ designed for deterministic O(1) associative indexing over large integer key spaces without hashing. By slicing keys into 4-bit nibbles and separating internal routing pointer arrays (void*[16]) from contiguous leaf value arrays (T[16]), it reduces tree depth by 4x compared to a 1-bit binary trie while providing a zero-allocation read-only query() method. Across four 32-bit benchmark workloads compiled with g++ -O3 -std=c++20, it achieves speedups of up to 11.2x over std::map, 2.8x-8.4x over a 1-bit binary trie with lower peak memory, and 1.44x over gp_hash_table on clustered keys, along with practical applications in online and competitive programming workloads.
Language: English
Open Access status: green
OpenAlex ID: W7238735682
Cites:
Cited by:
Related to: