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

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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-23
DOI
https://doi.org/10.5281/zenodo.24479485
Primary Topic
Algorithms and Data Compression
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

motasem ahmed shehata
Zenodo (CERN European Organization for Nuclear Research)
Algorithms and Data Compression
preprint

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

motasem ahmed shehata
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon