Data Structures & AlgorithmsVery hardGATE CS · ICPC regional · Product Company SDE

How many different spanning trees does the complete graph K7 have (Cayley's formula)?

  1. A. 21
  2. B. 16807
  3. C. 20168
  4. D. 7776

Correct answer: B. 16807

Cayley: n^(n−2) = 7^5 = 16807.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic