Show the worked solution\[\boxed{d^{(k)}_{ij}=\min\big(d^{(k-1)}_{ij},\ d^{(k-1)}_{ik}+d^{(k-1)}_{kj}\big)}\]Each table \(d^{(k)}\) (paths whose intermediate vertices are among the first \(k\)) is built from the stored table \(d^{(k-1)}\): dynamic programming, not a greedy choice.Three nested loops over \(k, i, j\) give \(\Theta(V^{3})\) time.The key imported with this question gave A (greedy), which is wrong.Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com