ISRO Computer Science (CSE) 2008 - Question 16

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2008

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

Answer: A. Dynamic programming

Explanation: The Floyd-Warshall algorithm for all-pairs shortest paths uses Dynamic Programming.

| | All questions of ISRO Computer Science (CSE) 2008