retagged by
387 views
0 votes
0 votes

Given below are some famous algorithms and some algorithm design paradigms

$$\begin{array} {|l|l|} \hline \qquad \qquad  \qquad \textbf{Algorithms} & \textbf{Design Paradigms} \\\hline \text{1. Dijkstra’s shortest path algorithm} & \text{(a) Greedy design} \\\hline \text{2. Floyd Warshall’s all-pair-shortest path algorithm} & \text{(b) Divide and conquer} \\\hline \text{3. Kruskal’s minimum spanning tree algorithm} & \text{(c) Dynamic programming} \\\hline \text{4. Merge Sort algorithm} & \\\hline \end{array}$$

Which of the following correspondence is correct?

  1. $\text{1-(a), 2-(c), 3-(a), 4-(b)}$
  2. $\text{1-(a), 2-(b), 3-(a), 4-(c)}$
  3. $\text{1-(a), 2-(b), 3-(c), 4-(c)}$
  4. $\text{1-(c), 2-(b), 3-(a), 4-(b)}$
retagged by

1 Answer

0 votes
0 votes
  • Dijkstra’s shortest path $\rightarrow$  greedy approach. (Greedy algorithm)
  • Floyd warshall all pair shortest path $\rightarrow$  dynamic programming.
  • Kruskal’s minimum spanning tree $\rightarrow$  greedy algorithm.
  • merge sort $\rightarrow$ divide and conquer technique.

Option $(A)$ is correct.

 

Answer:

Related questions

0 votes
0 votes
1 answer
1
admin asked Jan 5, 2019
299 views
The recurrence equation $T(n) = T(\sqrt{n}) + O(1)$ has the following asymptotic solution:$T(n) = O(\sqrt{n})$$T(n) = O(\log n)$$T(n) = O(n^{1/\log n})$$T(n) = O(\log \lo...
0 votes
0 votes
0 answers
2
admin asked Jan 5, 2019
221 views
The Adjacency matrix of a directed graph $\text{G}$ is given below.$\begin{array} {} & a & b & c & d & e & f & g & h & i \\ a & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ b & ...
0 votes
0 votes
1 answer
3
admin asked Jan 5, 2019
406 views
An unordered list contains $n$ distinct elements. The number of comparisons to find an element in the list that is larger than the second minimum in the list is$\Theta(n ...
0 votes
0 votes
1 answer
4