edited by
1,753 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)}$
edited by

1 Answer

0 votes
0 votes
Answer B

Dijjkstra    v^2

Kruskals    Eloge

Floyd warshall .  V^3

Related questions

1 votes
1 votes
2 answers
1
Arjun asked Jan 2, 2019
2,886 views
Consider a singly linked list. What is the worst case time complexity of the best-known algorithm to delete the node $a$, pointer to this node is $q$, from the list?$O(n ...
0 votes
0 votes
2 answers
2
Arjun asked Jan 2, 2019
4,385 views
Consider the graph shown below:Use Kruskal’s algorithm to find the minimum spanning tree of the graph. The weight of this minimum spanning tree is$17$$14$$16$$13$
1 votes
1 votes
1 answer
3
Arjun asked Jan 2, 2019
3,734 views
Consider two sequences $X$ and $Y$ :$X=<0, 1, 2, 1, 3, 0, 1>$$Y=<1, 3, 2, 0, 1, 0>$The length of longest common subsequence between $X$ and $Y$ is$2$$3$$4$$5$
0 votes
0 votes
0 answers
4
Arjun asked Jan 2, 2019
1,135 views
The second smallest of $n$ elements can be found with ____ comparisons in the worst case.$n-1$$\lg \: n$$n + ceil(\lg \: n)-2$$\frac{3n}{2}$