In Floyd-Warshall algorithm, what does D^(k)[i][j] represent?
GATE CSE · Algorithms
Master topic for Shortest Path. Includes Dijkstra's Algorithm, Bellman-Ford Algorithm, Floyd-Warshall Algorithm.
103 questions · 0 PYQs · 3 AI practice · GATE CSE 2027
In Floyd-Warshall algorithm, what does D^(k)[i][j] represent?
Consider the following 4-vertex directed graph with weight matrix:
D = [[0,3,∞,7],[8,0,2,∞],[5,∞,0,1],[2,∞,∞,0]]
After one complete iteration of Floyd-Warshall with k=1 (using vertex 1 as intermediate), what is D[4][2]?
Which of the following are valid applications of the Floyd-Warshall algorithm or its variants?
Want unlimited AI-generated Shortest Path questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →