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

Answer Posted / sudip

If there are 3 nodes A,B and C. In which A is root and B and
C are it's left and right child...
Then if we want to count the no. of tree..then..

A A A A-alone, B -alone and
/ \ / \ C-alone and the last
B C B C one is null tree.


I think there will be 7 subtrees if we null is subtree then,..

no. of tree = 2^n - 1.

Is This Answer Correct ?    1 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm to find middle element in the linked list.

687


What is the height of a binary tree?

681


What is heap tree in data structure?

664


What is the difference between 1d and 2d array?

680


Which sorting algorithm is best for small data?

631


Where the data structures are used?

723


What things you would care about to improve the performance of application if its identified that its db communication that needs to be improved?

713


What is stack explain with diagram?

688


Explain what are the major data structures used in the hierarchical data model?

749


What is return map?

734


What is a Breadth First Search? Give a few of its applications.

686


Is arraylist a class?

642


What is a circular singly linked list?

693


Does list maintain insertion order?

682


Describe binary tree and its property.

692