how to find the number of possible tree in the given tree.

Answer Posted / vikram_tp

you all are going wrong...
the formula which u have given is only working when n=2 or 3..
bt when n=4 the ans should be 14 not 12
when n=5 ans is 42 and not what comes by the formula...
so there isnt any formula for this..u have to count then by generating the trees by urself...

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sort in data structure?

473


How do you sort in ascending order in arraylist?

502


Why do we need searching algorithms?

615


How do you assign an address to an element of a pointer array ?

511


Define depth and height of a node?

514






Is char array null terminated?

491


Can arraylist have duplicates?

525


What is the difference between set and unordered_set?

455


Do all declaration statements result in a fixed reservation in memory?

513


Is collection a class or interface?

503


Is boolean a data type?

451


What is the difference between null and void pointer in data structures?

703


Which is best book for data structures?

525


How many null values are allowed in hashmap?

509


What is a directed graph?

555