Aspire Faculty ID #19279 · Topic: UGC NET Computer Science June 2019 (Paper II) · Just now
UGC NET Computer Science June 2019 (Paper II)

Match List-I with List-II:
List-I List-II
(a) Prim's algorithm (i) $O(V^3\log V)$
(b) Dijkstra's algorithm (ii) $O(VE^2)$
(c) Faster all-pairs shortest path (iii) $O(E\log V)$
(d) Edmonds-Karp algorithm (iv) $O(V^2)$
Choose the correct option from those given below:

Solution

Prim's algorithm has time complexity:

$O(E\log V)$

So,

$(a)\rightarrow(iii)$

Dijkstra's algorithm has time complexity:

$O(V^2)$

So,

$(b)\rightarrow(iv)$

Faster all-pairs shortest path algorithm has time complexity:

$O(V^3\log V)$

So,

$(c)\rightarrow(i)$

Edmonds-Karp algorithm has time complexity:

$O(VE^2)$

So,

$(d)\rightarrow(ii)$

Therefore, the correct matching is

$(a)-(iii);\ (b)-(iv);\ (c)-(i);\ (d)-(ii)$

Previous 10 Questions — UGC NET Computer Science June 2019 (Paper II)

Nearest first

Next 10 Questions — UGC NET Computer Science June 2019 (Paper II)

Ascending by ID
1
There are many sorting algorithms based on comparison. The running time of heapsort algorithm is $O(n\lg n)$. Like $P$,…
Topic: UGC NET Computer Science June 2019 (Paper II)
2
Consider the Euler's phi function given by $\phi(n)=n\prod\left(1-\dfrac{1}{p}\right)$ where $p$ runs over all the prim…
Topic: UGC NET Computer Science June 2019 (Paper II)
3
Which of the following is best running time to sort $n$ integers in the range $0$ to $n^2-1$?
Topic: UGC NET Computer Science June 2019 (Paper II)
4
Which of the following is application of depth-first search?
Topic: UGC NET Computer Science June 2019 (Paper II)
5
Consider double hashing of the form $h(k,i)=(h_1(k)+ih_2(k))\ \text{mod}\ m$ where $h_1(k)=k\ \text{mod}\ m$ $h_2(k)=1+…
Topic: UGC NET Computer Science June 2019 (Paper II)
6
Consider the complexity class $CO-NP$ as the set of languages $L$ such that $\overline{L}\in NP$, and the following two…
Topic: UGC NET Computer Science June 2019 (Paper II)
7
Consider the following steps: $S_1$: Characterize the structure of an optimal solution $S_2$: Compute the value of an o…
Topic: UGC NET Computer Science June 2019 (Paper II)
8
Consider the following properties with respect to a flow network $G=(V,E)$ in which a flow is a real-valued function $f…
Topic: UGC NET Computer Science June 2019 (Paper II)
9
Consider the following statements: $S_1$: For any integer $n>1$, $a^{\phi(n)}\equiv 1\ (\text{mod }n)$ for all $a\in…
Topic: UGC NET Computer Science June 2019 (Paper II)
10
Which data structure is used by the compiler for managing variables and their attributes?
Topic: UGC NET Computer Science June 2019 (Paper II)
Ask Your Question or Put Your Review.

loading...