Data Structures & AlgorithmsHardGATE CS · ISRO Scientist
How many spanning trees of the cycle C_n are there for n = 6?
- A. 5
- B. 6
- C. 15
- D. 64
Correct answer: B. 6
Use the closed-form count for this family: it follows from the standard counting argument (Cayley's formula, the Catalan recurrence, or Kirchhoff's matrix-tree theorem). Each distractor is a different formula that looks similar.
Practise more Trees, Graphs, Recursion and Dynamic Programming questionsTrees, Graphs, Recursion and Dynamic Programming: notes and key points
More Trees, Graphs, Recursion and Dynamic Programming questions
- How many spanning trees does the complete bipartite graph K{3,3} have, with 3 vertices on one side and 3 on the other?
- How many spanning trees does the complete bipartite graph K{4,4} have, with 4 vertices on one side and 4 on the other?
- How many spanning trees does the complete bipartite graph K{4,2} have, with 4 vertices on one side and 2 on the other?
- How many spanning trees does the complete bipartite graph K{2,4} have, with 2 vertices on one side and 4 on the other?
- How many spanning trees does the complete bipartite graph K{3,2} have, with 3 vertices on one side and 2 on the other?
- How many spanning trees does the complete bipartite graph K{4,3} have, with 4 vertices on one side and 3 on the other?