Data Structures & AlgorithmsHardGATE CS · ISRO Scientist

How many spanning trees of the wheel W_n (a hub joined to every vertex of an n-cycle rim) are there for n = 10?

  1. A. 1230
  2. B. 15127
  3. C. 1048574
  4. D. 15125

Correct answer: D. 15125

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.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic