Question 1 | MCQ
Solution
Consider the graphGgiven below.

Solution
Consider a binary treeTthat has 50 leaf nodes. Then the number of nodes inTthat has exactly two children are_________
Solution
Solution
Solution
LetGbe a connected graph with at least 5 vertices and all edges in G having distinct weights. LetT be a minimum spanning tree ofG. Consider the following statements:
1. Ifeis the heaviest edge in a cycle in G, then T must excludee.
2. Ifeis the lightest edge in a cycle in G, then T must includee.
3. Ife3ande4are the third and fourth smallest edges in G, then T must include at least one of them.
Which of the above statement(s) is/arecorrectregarding G and T?
1. Ifeis the heaviest edge in a cycle in G, then T must excludee.
2. Ifeis the lightest edge in a cycle in G, then T must includee.
3. Ife3ande4are the third and fourth smallest edges in G, then T must include at least one of them.
Which of the above statement(s) is/arecorrectregarding G and T?
Solution
Solution
Solution
Consider the following statements:
1. Time required for searching an item in a min-heap of sizenis bounded byO(log n).
2. Time required for searching an item in a balanced binary search tree of sizenis bounded by
O(log n).
3. A binary tree can be reconstructed back if either its preorder or postorder traversal is known.
4. A binary search tree can be reconstructed back if its inorder traversal is known.
Which of the above given statement(s) is/aretrue?
1. Time required for searching an item in a min-heap of sizenis bounded byO(log n).
2. Time required for searching an item in a balanced binary search tree of sizenis bounded by
O(log n).
3. A binary tree can be reconstructed back if either its preorder or postorder traversal is known.
4. A binary search tree can be reconstructed back if its inorder traversal is known.
Which of the above given statement(s) is/aretrue?
Solution
While inserting the elements 20, 60, 10, 45, 65, 30, and 90 in an empty binary search tree (BST) in the sequence shown, the elements at maximum depth are___
Solution
Solution
Solution
Which of the following statement istruefor searching thekthsmallest element in an unsorted array of sizen?
Solution
Which of the following statement(s) is/aretrue?
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors