The White-Grey-Black (WGB) Tree: A Novel Tree Structure and Its Experimental Performance Evaluation
Abstract
This paper introduces the White-Grey-Black (WGB) tree, an in-memory index that combines hierarchical traversal, hash-based child routing and ordered in-node storage, and resolves node overflows by passing single keys down to child subtrees instead of splitting nodes. We investigate how its two configuration parameters, order (node capacity) and rank (starting prime of the child-array sizes), affect insertion, exact-key search and range-search latency on workloads of up to six million randomly generated UUID keys in a single-threaded Java implementation, and compare selected configurations with Red Black and B+ trees. Larger orders reduce tree depth but increase the cost of processing larger node arrays, while higher ranks initially reduce latency but eventually add overhead. The best WGB configuration for each operation needs about 43% of the insertion time and 54% of the exact-search time of the best B+ configuration in our implementation, whereas even the best WGB configuration for range search is about 16.7 times slower. The results show that WGB is a configurable, workload-dependent index structure: it is advantageous for insertion and point queries in the tested setting and suited to workloads in which range scans are rare, but it is not a universal replacement for existing trees.
Keywords
White-Grey-Black (WGB) Tree, In-Memory Data Structures, B+ tree, RB tree, Hybrid Index
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
L. Vicković, S. Čelar, V. Pleština and D. Senta, "The White-Grey-Black (WGB) Tree: A Novel Tree Structure and Its Experimental Performance Evaluation," in Journal of Communications Software and Systems, vol. 23, no. 1, pp. 42-53, December 2026, doi: 10.24138/jcomss-2026-0314
@article{vickovic2026whitegrey,
author = {Vicković, Linda and Čelar, Stipo and Pleština, Vladimir and Senta, Duje},
title = {{The White-Grey-Black (WGB) Tree: A Novel Tree Structure and Its Experimental Performance Evaluation}},
journal = {Journal of Communications Software and Systems},
month = dec,
year = {2026},
volume = {23},
number = {1},
pages = {42--53},
doi = {10.24138/jcomss-2026-0314},
url = {https://doi.org/10.24138/jcomss-2026-0314}
}