Skip to content

UGC NET CS 2020Data Structures and Algorithms › Graph AlgorithmsVerified

UGC NET CS 2020 PYQ: Match $\text{list I}$ with $\text{List II}$ $\begin{array}{llll} & \text{List I} && \text{List II} \\

Match $\text{list I}$ with $\text{List II}$

$\begin{array}{llll} & \text{List I} && \text{List II} \\ (A) & \text{Topological sort of DAG} & (I) & O(V+E) \\ (B) & \text{Kruskal’s MST algorithm} & (II) & O(VE) \\ (C) & \text{Bellman-Ford’s single-source shortest} & (III) & \theta (V+E) \\ & \text{path algorithm} \\ (D) & \text{Floyd-Warshall’s all pair shortest} & (IV) & \theta (V^3) \\ & \text{path algorithm} \end{array}$

Choose the correct answer from the options given below:

  1. A
    $\text{A-I, B-III, C-IV, D-II}$
  2. B
    $\text{A-III, B-I, C-IV, D-II}$
  3. C
    $\text{A-III, B-I, C-II, D-IV}$
    Correct answer
  4. D
    $\text{A-I, B-III, C-II, D-IV}$

Answer

(C) $\text{A-III, B-I, C-II, D-IV}$

Approach

Match each algorithm with its standard complexity.

Reviewed by UGC IQ Editorial Team.