Multiple choice Which of the following algorithms solves the all pairs shortest path problem? Greedy Depth-first search Dyanamic programming Divide and conquer Reveal answer Fill a bubble to check yourself C Correct answer Explanation The Floyd-Warshall algorithm for all pairs shortest path uses dynamic programming. It builds solutions incrementally by considering intermediate vertices, storing results in a 2D table to avoid redundant calculations.