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

Question 11 : Consider the following statements.
S1. Kruskal's algorithm might produce a non-minimal spanning tree.
S2. Kruskal's algorithm can efficiently implemented using the disjoint-set data structure.
1. S1 is true but S2 is false
2. Both S1 and S2 are false
3. Both S1 and S2 are true
4. S2 is true but S1 is false
View Answer   Discuss with Members

Question 12 : Which of the following is not the algorithm to find the minimum spanning tree of the given graph?
1. Boruvka's algorithm
2. Prim's algorithm
3. Kruskal's algorithm
4. Bellman-Ford algorithm
View Answer   Discuss with Members

Question 15 : 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 17 : If all the weights of the graph are positive, then the minimum spanning tree of the graph is a minimum cost subgraph.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 20 : Consider a undirected graph G with vertices { A, B, C, D, E}. In graph G, every edge has distinct weight. Edge CD is edge with minimum weight and edge AB is edge with maximum weight. Then, which of the following is false?
1. Every minimum spanning tree of G must contain CD
2. If AB is in a minimum spanning tree, then its removal must disconnect G
3. No minimum spanning tree contains AB
4. G has a unique minimum spanning tree
View Answer   Discuss with Members


View 11 - 20 of 93 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