The White-Grey-Black (WGB) Tree: A Novel Tree Structure and Its Experimental Performance Evaluation

Published online: Dec 1, 2026 Full Text: PDF (4.51 MiB) DOI: https://doi.org/10.24138/jcomss-2026-0314
Cite this paper
Authors:
Linda Vicković, Stipo Čelar, Vladimir Pleština, Duje Senta

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
Creative Commons License 4.0
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.