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 36–40 of 86
The maximum number of edges in a bipartite graph on 12 vertices is _____.
Answer: 36
Take a bipartite graph with two parts of sizes a and b. It can have at most ab edges. When a + b = 12, the product ab is biggest if a = b = 6.
Answer: 36
Answer: 36
A cycle on n vertices is isomorphic to its complement. The value of n is _____.
Answer: 5
A cycle has n edges. Its complement has edges. Graphs that are isomorphic must have the same number of edges:
We can check this: the complement of (the pentagram) is again a 5-cycle.
Answer: 5
We can check this: the complement of (the pentagram) is again a 5-cycle.
Answer: 5
Suppose depth first search is executed on the graph below starting at some unknown vertex. Assume that a recursive call to visit a vertex is made only after first checking that the vertex has not been visited earlier. Then the maximum possible recursion depth (including the initial call) is _________.
Answer: 19
Each recursive call is on a new unvisited vertex, so the recursion depth is the number of vertices on the current DFS path. DFS may take the neighbours in any order, so from a suitable start it can follow any simple path. The answer is therefore the number of vertices on the longest simple path in the graph.
The graph has a left 3 3 grid, a bridge vertex (bottom middle) with a pendant vertex above it, and a right 3 3 grid that has a pendant vertex on its middle-right vertex. A simple path can cross only once, and a pendant vertex can only be an end of the path.
- Left grid: a snake path covers all 9 vertices and ends at its bottom-right corner, next to . At most 9.
- Bridge : 1 vertex. The pendant above it is a dead end, so skip it.
- Right grid, entered at its bottom-left corner: a 3 3 grid is bipartite with 5 corner-type vertices and 4 of the other type. A path that covers all 9 must start and end on the 5-type, so it cannot end at the middle-right vertex (the other type). So either cover all 9 and skip the pendant (9 vertices), or end at the pendant after at most 8 grid vertices plus the pendant (8 + 1 = 9). At most 9 either way.
Longest path . Any other route is shorter, for example a path that uses the pendant at has at most vertices.
Answer: 19
The graph has a left 3 3 grid, a bridge vertex (bottom middle) with a pendant vertex above it, and a right 3 3 grid that has a pendant vertex on its middle-right vertex. A simple path can cross only once, and a pendant vertex can only be an end of the path.
- Left grid: a snake path covers all 9 vertices and ends at its bottom-right corner, next to . At most 9.
- Bridge : 1 vertex. The pendant above it is a dead end, so skip it.
- Right grid, entered at its bottom-left corner: a 3 3 grid is bipartite with 5 corner-type vertices and 4 of the other type. A path that covers all 9 must start and end on the 5-type, so it cannot end at the middle-right vertex (the other type). So either cover all 9 and skip the pendant (9 vertices), or end at the pendant after at most 8 grid vertices plus the pendant (8 + 1 = 9). At most 9 either way.
Longest path . Any other route is shorter, for example a path that uses the pendant at has at most vertices.
Answer: 19
If G is a forest with n vertices and k connected components, how many edges does G have?
Answer: (C)
Take any one tree in the forest. If it has vertices, then it has edges. Now add up the edges of all k trees: .
Answer: n k
Answer: n k
The line graph L(G) of a simple graph G is defined as follows:
There is exactly one vertex v(e) in L(G) for each edge e in G.
For any two edges e and e' in G, L(G) has an edge between v(e) and v(e'), if and only if e and e' are incident with the same vertex in G.
Which of the following statements is/are TRUE?
(P) The line graph of a cycle is a cycle.
(Q) The line graph of a clique is a clique.
(R) The line graph of a planar graph is planar.
(S) The line graph of a tree is a tree.
There is exactly one vertex v(e) in L(G) for each edge e in G.
For any two edges e and e' in G, L(G) has an edge between v(e) and v(e'), if and only if e and e' are incident with the same vertex in G.
Which of the following statements is/are TRUE?
(P) The line graph of a cycle is a cycle.
(Q) The line graph of a clique is a clique.
(R) The line graph of a planar graph is planar.
(S) The line graph of a tree is a tree.
Answer: (A)
Let us test each statement one by one:
- P: In a cycle, each edge shares a vertex with the next edge, all around the ring. So the line graph is a cycle again True
- Q: Take . The edges 12 and 34 have no common vertex. So the line graph is not complete False
- R: The star is planar, but its line graph is False
- S: The line graph of is a triangle, and a triangle is not a tree False
Answer: P only
- P: In a cycle, each edge shares a vertex with the next edge, all around the ring. So the line graph is a cycle again True
- Q: Take . The edges 12 and 34 have no common vertex. So the line graph is not complete False
- R: The star is planar, but its line graph is False
- S: The line graph of is a triangle, and a triangle is not a tree False
Answer: P only
Keep practising