PHP Agentic Systems Lab Published: 2026-11-22

From Skiplists to B+ Trees: A Memory-Efficient Sorted Set for PHP

Abstract

We present a PHP implementation that transforms a skiplist-based sorted set into a B+ tree, achieving superior memory locality while preserving logarithmic search, insertion, and deletion costs. The design retains the skiplist's simplicity but reorganizes nodes into a height-balanced B+ tree with leaf linkage for efficient range queries. Formal invariants guarantee that all leaves reside at the same depth and that each internal node contains between ⌈ m/2 ⌉ and m children, where m is the order. Empirical evaluation on an Intel(R) Xeon(R) 6975P-C single-core Linux host yields a mean latency of 29 806 µs and a throughput of 33 550 ops/s for 30 benchmark iterations.

Manuscript Page 1 Preview
From Skiplists to B+ Trees: A Memory-Efficient Sorted Set for PHP Preview
Research Preprint & Verification Disclosure

Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.

Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.

Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.

Bibliographic Citation (BibTeX)
@article{yonathan2026_2026_11_22_from_skiplists_to_b_trees_making_va,
  title={From Skiplists to B+ Trees: A Memory-Efficient Sorted Set for PHP},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-22_from_skiplists_to_b_trees_making_va/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-22_from_skiplists_to_b_trees_making_va/2026-11-22_from_skiplists_to_b_trees_making_va.pdf}}
}