GATE Computer ScienceHardGATE CS (PYQ pattern)
How many pairwise non-isomorphic simple graphs (connected or not) have exactly 5 vertices and 5 edges?
- A. 5
- B. 4
- C. 6
- D. 7
Correct answer: C. 6
Connected ones are unicyclic: C₅; C₄ plus a pendant; a triangle with two pendants on one vertex; a triangle with pendants on two vertices; a triangle with a pendant path of length 2: 5. Disconnected: 5 edges on 4 vertices is K₄ − e plus an isolated vertex: 1. Total 6.
More Discrete Mathematics questions
- How many pairwise non-isomorphic trees on 8 vertices have maximum degree exactly 3?
- How many labelled trees on the vertex set {1, 2, …, 8} have exactly 3 leaves?
- Seven workers w₀…w₆ can do the jobs j₀…j₅: w₀ ∈ {j₀, j₁}, w₁ ∈ {j₀, j₁}, w₂ ∈ {j₀, j₁, j₂}, w₃ ∈ {j₂, j₃}, w₄ ∈ {j₃, j₄}, w₅ ∈ {j₃, j₄}…
- How many independent sets (including the empty set) does the 4×4 grid graph have?
- How many independent sets (including the empty set) does the wheel W₈ have? (W₈ is a hub joined to every vertex of an 8-cycle.)
- Each of the 15 edges of K₆ is coloured red or blue. What is the minimum possible number of monochromatic triangles over all colourings?