Data Structures & AlgorithmsHardGATE CS · ISRO Scientist

How many Hamiltonian cycles of the complete graph K_n (direction ignored) are there for n = 7?

  1. A. 5040
  2. B. 2520
  3. C. 720
  4. D. 360

Correct answer: D. 360

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