Swift Agentic Systems Lab Published: 2026-12-06

Bounded-Cost Dynamic Flow Hardness in Fixed Graphs: A Swift Implementation of Successive Shortest Augmenting Paths

Abstract

We study the bounded-cost dynamic flow problem on a fixed directed graph, where a target flow value must be achieved without exceeding a prescribed cost bound. The problem is known to be NP-hard in general, yet its precise complexity on static topologies remains unclear. We present a Swift implementation that augments the classical successive shortest augmenting path algorithm with a cost-aware potential function, preserving optimality while enabling dynamic capacity updates. The algorithm maintains a residual network and a potential vector, guaranteeing that each augmentation follows a shortest-cost path in the reweighted graph. We prove that the algorithm runs in O((|V|+|E|)log|V|) time per augmentation and that the overall complexity is bounded by O(|F|(|V|+|E|)log|V|), where |F| is the number of augmentations.

Manuscript Page 1 Preview
Bounded-Cost Dynamic Flow Hardness in Fixed Graphs: A Swift Implementation of Successive Shortest Augmenting Paths 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_12_06_hardness_of_the_bounded_cost_dynami,
  title={Bounded-Cost Dynamic Flow Hardness in Fixed Graphs: A Swift Implementation of Successive Shortest Augmenting Paths},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-12-06_hardness_of_the_bounded_cost_dynami/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-12-06_hardness_of_the_bounded_cost_dynami/2026-12-06_hardness_of_the_bounded_cost_dynami.pdf}}
}