C# Agentic Systems Lab Published: 2026-11-28

Logarithmic Relaxation Dynamics and Height-Balanced Invariants in a C# Linear Single-Source Shortest Path Implementation

Abstract

This paper investigates the structural and algorithmic properties of a C# implementation of the Linear Single-Source Shortest Path (SSSP) problem, specifically focusing on the "almost" linear regime where edge weights exhibit limited distinct values. We formalize the use of a balanced search structure to manage vertex relaxation states, ensuring that the priority queue operations maintain strict height-balance and key-ordering invariants. By leveraging a balanced indexing structure, the system achieves O(log N) point search and node insertion complexities, contrasting with the O(N) bounds of naive linear scans. We provide a formal proof of the invariant preservation during state transitions, demonstrating that the tree structure remains valid under concurrent relaxation updates. The analysis is grounded in formal structural analysis (AST) inspection and theoretical complexity profiling, avoiding reliance on volatile runtime benchmarks. We establish that the auxiliary memory footprint remains O(N) while maintaining contiguous node layout for spatial locality. This work contributes a rigorous, reproducible artifact for evaluating the trade-offs between asymptotic bounds and structural integrity in managed runtime environments.

Manuscript Page 1 Preview
Logarithmic Relaxation Dynamics and Height-Balanced Invariants in a C# Linear Single-Source Shortest Path Implementation 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_28_linear_single_source_shortest_path_,
  title={Logarithmic Relaxation Dynamics and Height-Balanced Invariants in a C# Linear Single-Source Shortest Path Implementation},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-28_linear_single_source_shortest_path_/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-28_linear_single_source_shortest_path_/2026-11-28_linear_single_source_shortest_path_.pdf}}
}