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 1–5 of 86
Let be a simple, undirected graph. A vertex cover of is a subset such that for every or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size .
For a vertex , which of the following constraints will always ensure that ?
For a vertex , which of the following constraints will always ensure that ?
One or more options are correct.
Answer: (A)
Take a vertex of degree at least . Suppose, for contradiction, that for some minimum vertex cover of size . Every edge at must then be covered by its other endpoint, so all neighbours of are in . Then , a contradiction. So always. (A) is correct.
The other options each have a small counterexample:
(B) Path (2 edges): and is a minimum cover. Vertex is on the path but not in .
(C) Triangle : and the cycle has length . But is a minimum cover that leaves out , which is on the cycle.
(D) Same triangle: is a clique of size , yet . A clique of size forces only of its vertices into a cover.
Answer: (A)
The other options each have a small counterexample:
(B) Path (2 edges): and is a minimum cover. Vertex is on the path but not in .
(C) Triangle : and the cycle has length . But is a minimum cover that leaves out , which is on the cycle.
(D) Same triangle: is a clique of size , yet . A clique of size forces only of its vertices into a cover.
Answer: (A)
An undirected, unweighted, simple graph is said to be -colorable if there exists a function such that for every .
Which of the following statements about -colorable graphs is/are true?
Which of the following statements about -colorable graphs is/are true?
One or more options are correct.
Answer: (B), (C)
A graph is -colorable only when it is bipartite. This is the same as having no odd-length cycle.
- "May contain cycles of odd length": false. A 2-colorable graph can never have an odd cycle, since that is exactly the bipartite condition.
- "May contain cycles of even length": true. Even cycles are fine in a bipartite graph (the two colors alternate around the cycle, which works exactly when the cycle length is even).
- Algorithm complexity: To test bipartiteness or -colorability, run one BFS or DFS. Color each vertex alternately as it is visited and check for conflicts. On an adjacency list this takes time. It is optimal, because you must look at every vertex and edge at least once. True.
- is not the optimal or usual time for this simple traversal check (that bound fits priority-queue algorithms for MST or shortest path better). So this claim is false for the optimal 2-colorability test.
Answer: G may contain even-length cycles; and the optimal 2-colorability test runs in Θ(|V|+|E|) time.
- "May contain cycles of odd length": false. A 2-colorable graph can never have an odd cycle, since that is exactly the bipartite condition.
- "May contain cycles of even length": true. Even cycles are fine in a bipartite graph (the two colors alternate around the cycle, which works exactly when the cycle length is even).
- Algorithm complexity: To test bipartiteness or -colorability, run one BFS or DFS. Color each vertex alternately as it is visited and check for conflicts. On an adjacency list this takes time. It is optimal, because you must look at every vertex and edge at least once. True.
- is not the optimal or usual time for this simple traversal check (that bound fits priority-queue algorithms for MST or shortest path better). So this claim is false for the optimal 2-colorability test.
Answer: G may contain even-length cycles; and the optimal 2-colorability test runs in Θ(|V|+|E|) time.
Let be an undirected graph, which is a path on vertices. The number of matchings in is ________. (answer in integer)
Answer: 34
Let be the number of matchings (the empty matching is counted too) in a path graph with edges. Look at the last edge of the path. Either it is not used in the matching, so the rest has choices. Or it is used, so the adjacent edge cannot be used, and the rest has choices. This gives a Fibonacci-like recurrence:
, with (no edges, so only the empty matching) and (one edge, which is either included or not).
Values from the recurrence:
A path on vertices has edges, so the number of matchings is .
Answer: 34
, with (no edges, so only the empty matching) and (one edge, which is either included or not).
Values from the recurrence:
A path on vertices has edges, so the number of matchings is .
Answer: 34
Let be a directed graph and a depth first search (DFS) spanning tree in that is rooted at a vertex . Suppose is also a breadth first search (BFS) tree in , rooted at . Which of the following statements is/are TRUE for every such graph and tree ?
One or more options are correct.
Answer: (C)
In a BFS tree, each edge of G obeys .
A forward edge starts at and ends at , a descendant that is not a child. So and this goes against BFS. So G has no forward edges TRUE.
The other statements can fail:
- Back edge: take G = {va, av}. The tree {va} is both a DFS tree and a BFS tree. The edge av is a back edge.
- Cross edge: take G = {va, vb, ba}. DFS visits a first and then b. The edge ba is a cross edge, and the tree is also the BFS tree.
- So G can also have edges that are not in T.
Answer: There are no forward-edges in G with respect to T
A forward edge starts at and ends at , a descendant that is not a child. So and this goes against BFS. So G has no forward edges TRUE.
The other statements can fail:
- Back edge: take G = {va, av}. The tree {va} is both a DFS tree and a BFS tree. The edge av is a back edge.
- Cross edge: take G = {va, vb, ba}. DFS visits a first and then b. The edge ba is a cross edge, and the tree is also the BFS tree.
- So G can also have edges that are not in T.
Answer: There are no forward-edges in G with respect to T
The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let be any graph with vertices and chromatic number . Which of the following statements is/are always TRUE?
One or more options are correct.
Answer: (B), (C)
(A) False. The 5-cycle has but contains no triangle.
(B) True. The colour classes are independent sets and together they cover all vertices, so the biggest class has at least vertices.
(C) True. In a minimum colouring, there is an edge between every two colour classes. If not, the two classes could be merged and colours would do. Different pairs of classes give different edges, so there are at least edges.
(D) False. has , but every degree in it is .
Answer: (B), (C)
(B) True. The colour classes are independent sets and together they cover all vertices, so the biggest class has at least vertices.
(C) True. In a minimum colouring, there is an edge between every two colour classes. If not, the two classes could be merged and colours would do. Different pairs of classes give different edges, so there are at least edges.
(D) False. has , but every degree in it is .
Answer: (B), (C)
Keep practising