Data Structures & AlgorithmsHardGATE CS · ISRO Scientist

How many simple paths between two fixed vertices u and v of the complete graph K_n are there for n = 9?

  1. A. 40320
  2. B. 36
  3. C. 13700
  4. D. 5040

Correct answer: C. 13700

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