GATE & PSUs - Computer Science & Information Technology (CS & IT)

Trees, Heaps & Binary Search Trees question bank (Data Structures & Algorithms)

Practice 6 free GATE & PSUs - Computer Science & Information Technology (CS & IT) Data Structures & Algorithms - Trees, Heaps & Binary Search Trees questions with answers and step-by-step solutions.

Q1.
[Trees, Heaps & Binary Search Trees Concept 3] Consider an undirected graph $G = (V, E)$ with $n$ vertices and $m$ edges having distinct positive edge weights. Which of the following statements is ALWAYS TRUE?

(A)
The edge with the minimum weight in any cycle of $G$ must belong to the minimum spanning tree (MST).
(B)
The edge with the maximum weight in any cycle of $G$ cannot belong to the minimum spanning tree (MST).
(C)
The shortest path between any two vertices $u$ and $v$ is always composed of edges belonging to the MST.
(D)
If all edge weights are squared, the minimum spanning tree of $G$ may change.
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Q2.
[Trees, Heaps & Binary Search Trees Concept 9] Consider an undirected graph $G = (V, E)$ with $n$ vertices and $m$ edges having distinct positive edge weights. Which of the following statements is ALWAYS TRUE?

(A)
The edge with the minimum weight in any cycle of $G$ must belong to the minimum spanning tree (MST).
(B)
The edge with the maximum weight in any cycle of $G$ cannot belong to the minimum spanning tree (MST).
(C)
The shortest path between any two vertices $u$ and $v$ is always composed of edges belonging to the MST.
(D)
If all edge weights are squared, the minimum spanning tree of $G$ may change.
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Protected Questions

Unlock All 5 Questions in Trees, Heaps & Binary Search Trees

Log in or sign up free to access every question with complete solutions, create chapter practice tests, and track your performance.

Sign up free to access all 5 questions

Unlock every Trees, Heaps & Binary Search Trees question, generate papers, and practice at your own pace.