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

Asymptotic Analysis & Recurrences question bank (Data Structures & Algorithms)

Practice 7 free GATE & PSUs - Computer Science & Information Technology (CS & IT) Data Structures & Algorithms - Asymptotic Analysis & Recurrences questions with answers and step-by-step solutions.

Q1.
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.
[Asymptotic Analysis & Recurrences Concept 7] 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 6 Questions in Asymptotic Analysis & Recurrences

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 6 questions

Unlock every Asymptotic Analysis & Recurrences question, generate papers, and practice at your own pace.