3 votes 3 votes Number of rooted labeled trees(i.e. each node can be the root) with 6 vertices is: Programming in C binary-tree algorithms + – Shivam Chauhan asked Nov 1, 2017 Shivam Chauhan 1.1k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Anu007 commented Nov 1, 2017 i edited by Anu007 Nov 1, 2017 reply Follow Share Usintg cayley theorem = nn-2 = 64 since any of 6 can be root ,So total = 64 $\times$ 6 Number of rooted labeled trees 132 $\times$ 6! 0 votes 0 votes junk_mayavi commented Nov 1, 2017 reply Follow Share https://gatecse.in/number-of-binary-trees-possible-with-n-nodes/ 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes Number of labeled trees of n nodes is $n^{n-2}$ Now when each node can be root so for root we have n choices Thus $n^{n-2}$*n=$n^{n-1}$ For n=6 7776 tree are possible Tesla! answered Nov 1, 2017 • selected Nov 1, 2017 by Shivam Chauhan Tesla! comment Share Follow See all 16 Comments See all 16 16 Comments reply Show 13 previous comments joshi_nitish commented Nov 1, 2017 reply Follow Share yes, i also think so.. 0 votes 0 votes joshi_nitish commented Nov 1, 2017 reply Follow Share yes, thankyou Shivam! 1 votes 1 votes Shivam Chauhan commented Nov 1, 2017 reply Follow Share @joshi_nitish and @Tesla! Thanks to both of you. Many questions about trees are cleared by this discussion. 0 votes 0 votes Please log in or register to add a comment.