Graph Theory · Discrete Mathematics
86 questions · asked in 25 of 27 years (2000–2026)
MCQ 59 · MSQ 9 · NAT 181-mark 55 · 2-mark 31
2000Questions per year2026
Questions 6–10 of 86
The number of edges present in the forest generated by the DFS traversal of an undirected graph with 100 vertices is 40 . The number of connected components in is ____
Answer: 60
DFS gives one tree for each connected component. A tree with vertices has edges. So a forest with vertices and trees has edges.
Put in the given values:
Answer: 60
Put in the given values:
Answer: 60
Let be the adjacency matrix of a simple undirected graph . Suppose is its own inverse. Which one of the following statements is always TRUE?
Answer: (B)
means .
- Diagonal: is the degree of vertex . Since , it equals 1, so every vertex has exactly one neighbour.
- Off the diagonal: counts the common neighbours of and , and it must be 0. This holds automatically when every degree is 1, because a common neighbour would have two neighbours.
A graph in which every vertex has degree 1 is a set of disjoint edges that cover all the vertices, which is a perfect matching. A single edge, , satisfies , so (D) is false. A cycle has degree 2 and a complete graph on 3 or more vertices has degree at least 2, so (A) and (C) are false.
Answer: (B)
- Diagonal: is the degree of vertex . Since , it equals 1, so every vertex has exactly one neighbour.
- Off the diagonal: counts the common neighbours of and , and it must be 0. This holds automatically when every degree is 1, because a common neighbour would have two neighbours.
A graph in which every vertex has degree 1 is a set of disjoint edges that cover all the vertices, which is a perfect matching. A single edge, , satisfies , so (D) is false. A cycle has degree 2 and a complete graph on 3 or more vertices has degree at least 2, so (A) and (C) are false.
Answer: (B)
The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. The chromatic number of the following graph is _______
Answer: 2
Label the 8 vertices 1 to 8 going around the octagon.
- Each of the 8 outer sides joins two neighbouring vertices, so one end is odd and the other is even.
- Each inner line (2 vertical, 2 horizontal and 4 slanted) joins two vertices that are 3 steps apart around the octagon. Again, one end is odd and the other is even.
Now give colour 1 to the odd vertices and colour 2 to the even vertices. No edge has both ends in the same colour. So the graph is bipartite. The graph also has edges, so at least 2 colours are needed.
Answer: 2
- Each of the 8 outer sides joins two neighbouring vertices, so one end is odd and the other is even.
- Each inner line (2 vertical, 2 horizontal and 4 slanted) joins two vertices that are 3 steps apart around the octagon. Again, one end is odd and the other is even.
Now give colour 1 to the odd vertices and colour 2 to the even vertices. No edge has both ends in the same colour. So the graph is bipartite. The graph also has edges, so at least 2 colours are needed.
Answer: 2
Let be a simple, finite, undirected graph with vertex set . Let denote the maximum degree of and let denote the set of all possible colors. Color the vertices of using the following greedy strategy:
for
Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (A), (B)
(A) True. Each vertex takes a colour that none of its already-coloured neighbours has, so no edge gets the same colour at both ends.
(B) True. A vertex has at most neighbours, so at most colours are blocked. At least one of the colours is free, so no colour above is ever used.
(C) False. has but needs colours.
(D) False. Take the path and colour in the order . Then , , (its neighbour has 1), and (neighbours and have 2 and 1). This uses 3 colours, but the path is bipartite with .
Answer: (A), (B)
(B) True. A vertex has at most neighbours, so at most colours are blocked. At least one of the colours is free, so no colour above is ever used.
(C) False. has but needs colours.
(D) False. Take the path and colour in the order . Then , , (its neighbour has 1), and (neighbours and have 2 and 1). This uses 3 colours, but the path is bipartite with .
Answer: (A), (B)
Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is .
Answer: 36
Split the 10 vertices into two groups of sizes and with no edge between them (a disconnected graph has at least two such groups). Each group can be complete, so the most edges is .
- :
- :
- :
- :
- :
The values fall as goes from 1 to 5 (and repeat in reverse after that), so the largest is at (or ): plus one isolated vertex. With three or more components, joining two of them into one complete group only adds edges, so two components are enough. In general the maximum is .
Maximum edges .
Answer: 36
- :
- :
- :
- :
- :
The values fall as goes from 1 to 5 (and repeat in reverse after that), so the largest is at (or ): plus one isolated vertex. With three or more components, joining two of them into one complete group only adds edges, so two components are enough. In general the maximum is .
Maximum edges .
Answer: 36
Keep practising