Miscellaneous on Data Structure and Algorithms related Questions and Answers - Page 2

Question 11 : The travelling salesman problem can be solved using _________
1. A spanning tree
2. A minimum spanning tree
3. Bellman – Ford algorithm
4. DFS traversal
View Answer   Discuss with Members

Question 12 : Consider a complete graph G with 4 vertices. The graph G has ____ spanning trees.
1. 15
2. 8
3. 16
4. 13
View Answer   Discuss with Members

Question 13 : Every graph has only one minimum spanning tree.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 15 : Mo's algorithm can only be used for problems where the query can be calculated from the result of the previous query.
1. true
2. false
3.
4.
View Answer   Discuss with Members

Question 17 : By what factor time complexity is reduced when we apply square root decomposition to a code?
1. n
2. √n
3. n2
4. n-1/2
View Answer   Discuss with Members

Question 18 : Quickselect's algorithm is similar to which of the following algorithm?
1. Merge sort
2. Quicksort
3. Selection sort
4. Counting sort
View Answer   Discuss with Members

Question 19 : What is the auxiliary space requirement of the quickselect algorithm?
1. O(n2)
2. O(n)
3. O(n log n)
4. O(1)
View Answer   Discuss with Members


View 11 - 20 of 49 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter