This paper investigates the algorithmic properties of a hierarchical data structure representing the Sicilian citrus family tree, implemented in Kotlin. The system models botanical lineage using a directed acyclic graph where nodes represent citrus varieties and edges denote parent-child relationships. We formalize the structural invariants governing node insertion, depth calculation, and ancestor retrieval. Specifically, we analyze the asymptotic complexity of point queries and range traversals within this balanced search structure. The implementation utilizes a hash-map index for O(1) node lookup, combined with pointer-based traversal for lineage resolution. We verify that the depth invariant holds strictly for all valid tree configurations, ensuring that the root node maintains depth zero and child nodes increment depth by exactly one. Static analysis confirms the structural integrity of the 127-line implementation, validating the theoretical bounds of O(log N) for balanced operations and O(N) for auxiliary memory. This work provides a reproducible baseline for evaluating hierarchical indexing in managed runtime environments.
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_15_the_sicilian_citrus_family_tree,
title={Ancestral Path Traversal and Depth Invariants in a Kotlin-Implemented Citrus Taxonomy Index},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-15_the_sicilian_citrus_family_tree/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-15_the_sicilian_citrus_family_tree/2026-11-15_the_sicilian_citrus_family_tree.pdf}}
}