Skip to content

ISRO Scientist/Engineer CSE 2023Algorithms › Not yet assigned to a topic

ISRO Scientist/Engineer CSE 2023 PYQ: Match the following:

Match the following:

(A) Floyd Warshall(i) shortest path between two vertices
(B) Dijkstra(ii) single source shortest path
(C) Kruskal's(iii) Minimum spanning tree
(D) Bellman ford(iv) solving all pair shortest path
  1. A
    (A)-(iii), (B)-(ii), (C)-(iv), (D)-(i)
  2. B
    (A)-(iv), (B)-(i), (C)-(iii), (D)-(ii)
    Correct answer
  3. C
    (A)-(i), (B)-(ii), (C)-(iii), (D)-(iv)
  4. D
    (A)-(i), (B)-(ii), (C)-(iii), (D)-(iv)

Answer

(B) (A)-(iv), (B)-(i), (C)-(iii), (D)-(ii)

Approach

Recall the standard purpose of each classic graph algorithm and match it to the corresponding description. Floyd-Warshall computes all-pairs shortest paths; Dijkstra computes single-source shortest paths; Kruskal's builds a minimum spanning tree; Bellman-Ford computes single-source shortest paths (handling negative weights).

Reviewed by ISRO IQ Editorial Team.