GATE 2020
November 11, 2023
Question 9794 – Secondary-Storage
November 11, 2023
GATE 2020
November 11, 2023
Question 9794 – Secondary-Storage
November 11, 2023

Algorithms

Question 42

Which one of the following algorithm design techniques is used in finding all pairs of shortest distances in a graph?

A
Dynamic programming
B
Backtracking
C
Greedy
D
Divide and Conquer
Question 42 Explanation: 
In Dynamic programming Floyd Warshall algorithm is used to calculate the all pairs shortest path distance.
Correct Answer: A
Question 42 Explanation: 
In Dynamic programming Floyd Warshall algorithm is used to calculate the all pairs shortest path distance.

Leave a Reply

Your email address will not be published. Required fields are marked *