English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

assume we have a complete graph with 'n' vertices. what is the formula for counting all possible spanning trees?

2006-07-01 18:03:30 · 1 answers · asked by Anonymous in Computers & Internet Computer Networking

1 answers

Sounds like a homework problem, haha :-) This is actually a problem in matrix algebra. You want to look up something called the "matrix tree theorem" to research this. The answer by the way is n^(n-2), that is n to the power n-2.

So for a complete graph with 3 vertices you have 3^1=3 spanning trees. For 4 vertices you have 4^2 = 16 spanning trees, for 5 vertices you have 5^3 = 125 spanning trees. For 6 vertices you should get 1296 spanning trees.

2006-07-02 14:53:28 · answer #1 · answered by networkmaster 5 · 0 1

fedest.com, questions and answers