Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

connected-components

GATE CSE & IT · Graph Theory · 1991-2025

12
PYQs
75%
keyed
2
elite explanations
9
years appeared

Study anchor

Cormen et al. — Introduction to Algorithms (CLRS)

Algorithms, data structures, graph algorithms, complexity

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2025 Q29

Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph G is/are TRUE?

mediumanswer key
2025 PYQ

Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph G is/are TRUE?

mediumanswer keyelite explanation
2024 Q60

The number of edges present in the forest generated by the DFS traversal of an undirected graph G with 100 vertices is 40. The number of connected components in G is _________

mediumanswer key
2024 PYQ

The number of edges present in the forest generated by the DFS traversal of an undirected graph G with 100 vertices is 40. The number of connected components in G is ________

easybasic explanation
2018 PYQ

Let $$G$$ be a graph with $$100!$$ vertices, with each vertex labelled by a distinct permutation of the numbers $$1,2, … , 100.$$ There is an edge between vertices $$u$$ and $$v$$...

mediumbasic explanation
2014 PYQ

If $$G$$ is a forest with $$n$$ vertices and $$k$$ connected components, how many edges does $$G$$ have?

easyanswer key
2008 PYQ

The most efficient algorithm for finding the number of connected components in an undirected graph on n vertices and m edges has time complexity

easyanswer key
2006 PYQ

Consider the depth-first-search of an undirected graph with 3 vertices P, Q, and R. Let discovery time d(u) represent the time instant when the vertex u is first visited, and finis...

mediumanswer key
2004 PYQ

In a depth-first traversal of a graph G with n vertices,k edges are marked as tree edges. The number of connected components in G is

easyanswer key
2003 PYQ

Let G=(V,E) be an undirected graph with a subgraph G 1 =(V 1 ,E 1 ). Weights are assigned to edges of G as follows. $$$w(e) = \begin{cases} 0 \text{, if } e \in E_1 \\1 \text{, oth...

mediumanswer key
2003 PYQ

Let $$G$$ be an arbitrary graph with $$n$$ nodes and $$k$$ components. If a vertex is removed from $$G$$, the number of components in the resultant graph must necessarily lie betwe...

mediumanswer key
1991 PYQ

The maximum number of possible edges in an undirected graph with a vertices and $$k$$ components is _________ .

mediumelite explanation