in Unknown Category edited by
1,745 views
0 votes
0 votes

Match $\text{List I}$ with $\text{List II}$ and choose the correct answer from the code given below.

$\begin{array} {clcl}   & \textbf{List I} &  & \textbf{List II} \\ & \textbf{(Graph Algorithm)} & & \textbf{(Time Complexity)} \\ \text{(a)} & \text{Dijkstra’s algorithm} & \text{(i)}& O(E \: lg \: E) \\ \text{(b)}& \text{Kruskal’s algorithm} & \text{(ii)}& \Theta(V^3) \\ \text{(c)} & \text{Floyd-Warshall algorithm} & \text{(iii)} & O(V^2) \\ \text{(d)} & \text{Topological sorting} & \text{(iv)}& \Theta(V+E) \\ \end{array}$

where $V$ and $E$ are the number of vertices and edged in graph respectively.

$\textbf{Code :}$

  1. $\text{(a)-(i), (b)-(iii), (c)-(ii), (d)-(iv)}$
  2. $\text{(a)-(iii), (b)-(i), (c)-(ii), (d)-(iv)}$
  3. $\text{(a)-(i), (b)-(iii), (c)-(iv), (d)-(ii)}$
  4. $\text{(a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)}$
in Unknown Category edited by
by
1.7k views

1 Answer

0 votes
0 votes
Answer B

Dijjkstra    v^2

Kruskals    Eloge

Floyd warshall .  V^3

Related questions