Skip to content
DraconiticResearch
Search Sources API
189,105 studies31 sourcesUpdated 25 min ago
PreprintCC BY 4.0arXiv

Dijkstra Is NOT Greedy: A Global-to-Local Proof of Correctness

Abstract

Dijkstra's algorithm is traditionally classified as a greedy algorithm. We argue that this classification misrepresents the mechanism by which the algorithm determines shortest paths. We present a direct global-to-local proof of correctness. At each iteration, the algorithm identifies a shortest path over the entire set of paths whose endpoints remain unsolved. This global minimum is necessarily a shortest path to its own endpoint. More fundamentally, the algorithm uses already determined shortest paths to establish one additional shortest path at each iteration. We identify this progression as dynamic programming. A three-step exclusion proof shows how the full path space is reduced to frontier candidates, how relaxation removes inferior alternatives, and why minimum extraction yields the global minimum. The choice is thus determined by a global comparison, not by an optimistic local greedy choice. We conclude that the algorithm is more accurately characterized by dynamic programming and deterministic path exclusion than by the traditional greedy classification.

Related

  1. Bourgain's Lambda(p) selection theorem: a greedy proof with polynomial failure bounds
    Will Burstein, Alex Iosevich, Ben Krause
    arXivPreprintarXiv licenceFull textAnalysis & PDEsProbabilityarXiv
  2. A proof of GW/DT4 conjecture on local projective plane
    Yalong Cao
    arXivPreprintarXiv licenceFull textAlgebra & number theoryMathematical physicsarXiv
  3. A LOCAL PROOF OF LANGLANDS'S SECOND MAIN LEMMA FOR LOCAL EPSILON FACTORS OVER NONARCHIMEDEAN LOCAL FIELDS
    Fukuhiro Ueda
    HALPreprintPublisher termsFull textAlgebra & number theoryHALarXiv
  4. A LOCAL PROOF OF LANGLANDS'S FIRST MAIN LEMMA FOR LOCAL EPSILON FACTORS OVER NONARCHIMEDEAN LOCAL FIELDS
    Fukuhiro Ueda
    HALPreprintCC BY 4.0Full textMathematical physicsHALarXiv
  5. A Local Fourier-Transform Proof of Offen's Spherical Transfer Theorem
    Zhengyu Mao, Chen Wan
    arXivPreprintCC BY 4.0Full textAlgebra & number theoryarXiv
BibTeX
@misc{wang2026dijkstra,
  title = {{Dijkstra Is NOT Greedy: A Global-to-Local Proof of Correctness}},
  author = {Shengbao Wang},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.10596},
  eprint = {2610.10596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.10596},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Dijkstra Is NOT Greedy: A Global-to-Local Proof of Correctness
AU  - Shengbao Wang
PY  - 2026
DA  - 2026/10/13
PB  - arXiv
DO  - 10.48550/arxiv.2610.10596
UR  - https://arxiv.org/abs/2610.10596
AB  - Dijkstra's algorithm is traditionally classified as a greedy algorithm. We argue that this classification misrepresents the mechanism by which the algorithm determines shortest paths. We present a direct global-to-local proof of correctness. At each iteration, the algorithm identifies a shortest path over the entire set of paths whose endpoints remain unsolved. This global minimum is necessarily a shortest path to its own endpoint. More fundamentally, the algorithm uses already determined shortest paths to establish one additional shortest path at each iteration. We identify this progression as dynamic programming. A three-step exclusion proof shows how the full path space is reduced to frontier candidates, how relaxation removes inferior alternatives, and why minimum extraction yields the global minimum. The choice is thus determined by a global comparison, not by an optimistic local greedy choice. We conclude that the algorithm is more accurately characterized by dynamic programming and deterministic path exclusion than by the traditional greedy classification.
ER  -