Thursday 2 July 2015

Q34,p3,d14. Dijkstra algorithm, which solves the single-source shortest--pa ths problem, is a _________, and the Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a _________



(A) Greedy algorithm, Divide-conquer algorithm
(B) Divide-conquer algorithm, Greedy algorithm
(C) Greedy algorithm, Dynamic programming algorithm
(D) Dynamic programming algorithm, Greedy algorithm
 Answer C

No comments:

Post a Comment

Note: only a member of this blog may post a comment.