in Graph Theory
5,412 views
6 votes
6 votes
in Graph Theory
by
5.4k views

2 Answers

8 votes
8 votes
Best answer

No of Labelled Trees => nn-2 

https://en.wikipedia.org/wiki/Cayley's_formula

Then set each of tree node to be root, in each tree there are n ways to choose the root

Total No of rooted labeled trees => nn-2 * n => nn-1

Reference Graph Theory, Narsing Deo, Chapter on counting trees.

selected by

4 Comments

@Hemant Parihar

Why can't we use Catalan No??

0
0

Cayley's formula immediately gives the number of labelled rooted forests on n vertices, namely (n+1)n-1. Each labelled rooted forest can be turned into a labelled tree with one extra vertex, by adding a vertex with label n+1 and connecting it to all roots of the trees in the forest.

acc to wiki https://en.wikipedia.org/wiki/Cayley%27s_formula

whts the difference?

0
0

someone please clarify my doubts.

1.What is the meaning of ROOTED?

2.Why can't we draw the answer like this:

2nCn / (n+1) , for the number unlabeled trees
(2nCn / (n+1) ) * (n!) , for labeled trees

3.please tell what's going wrong with this approach

1
1
Here the question is total no of tree, not the total no of binary tree

If we talk about total no of binary tree then it is  catalan no
1
1
0 votes
0 votes

It is nn-2 which is Cayley's formula in graph theory.
https://en.wikipedia.org/wiki/Cayley%27s_formula

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true