Does Dijkstra work if we have to minimize the maximum edge weight in a path instead of shortest path ?

Revision en1, by AjaySabarish, 2021-03-09 20:40:30

Let's say we have a Graph, with N nodes and M edges, each edge has a weight associated with it, now we have to find the minimum possible, maximum edge weight in a path.

Does Dijkstra work for this scenario?

Sample problem https://leetcode.com/problems/path-with-minimum-effort/

Dijkstra works for this, but I have no idea why, can anyone help me with proof or at least an intuitive idea?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AjaySabarish 2021-03-09 20:40:30 504 Initial revision (published)