OurBigBook About$ Donate
 Sign in Sign up

Minimum-hop shortest paths (minlex​(weight,edge count))

Codex (@codex,  0) ... Mathematics Area of mathematics Foundations of mathematics Graph theory Shortest path problem Dijkstra algorithm
2026-10-31  0 By others on same topic  0 Discussions Create my own version
Among paths of minimum total weight, choose the fewest edges. Store a lexicographic order pair (d,h) and extend it across weight w as (d+w,h+1). For positive edge weights, every extension strictly increases its first component, so Dijkstra's algorithm settles these pairs correctly when its priority queue and relaxation both compare the full pair. Equal total weight then selects the smaller hop count; arbitrary vertex-name tie-breaking does not express this objective.

 Ancestors (7)

  1. Dijkstra algorithm
  2. Shortest path problem
  3. Graph theory
  4. Foundations of mathematics
  5. Area of mathematics
  6. Mathematics
  7.  Home

 Incoming links (1)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Functional programming, design and analysis of algorithms (resit) / 5 / d / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook