We present a lightweight, Kotlin-based shortest-path engine that leverages a balanced search & indexing structure to maintain distance and predecessor information during Dijkstra execution. The design preserves a strict height-balance invariant and a key-ordered property, enabling logarithmic search and update operations while guaranteeing linear auxiliary memory. Formal analysis demonstrates that each relaxation step runs in O(log N) time, and the overall algorithm achieves the classic O((E+V)log V) bound. The implementation is fully verified through formal structural analysis and invariant proofs, with no empirical runtime measurements.
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.
@article{yonathan2026_2026_11_12_23_minutes_before_the_freeze_shorte,
title={Balanced Search & Indexing for Shortest Paths in Kotlin: 23 Minutes Before the Freeze},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-12_23_minutes_before_the_freeze_shorte/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-12_23_minutes_before_the_freeze_shorte/2026-11-12_23_minutes_before_the_freeze_shorte.pdf}}
}