maximum bottleneck paths for each pair

Правка en1, от mmdrzada, 2025-02-16 17:23:55

I found an interesting problem in the archive of Iran National OI problems. The problem statement in English is:

Let D be a weighted directed graph. The length of a path P is defined as the minimum weight of the edges along P. The distance between vertices u and v is the maximum length among all paths from u to v. Your task is to find the distance between every pair of vertices in O(n·e + n²) time.

I haven't been able to solve it, so I'm looking for a solution. Any help would be appreciated!

Link to the original problem

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский mmdrzada 2025-02-16 17:25:25 83
en1 Английский mmdrzada 2025-02-16 17:23:55 906 Initial revision (published)