Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What do you mean by disjoint set adt?

977


Explain what are the major data structures used in the rdbms?

961


How to inverting a function in sort and searching?

982


What is Storage Structures and File Structures? Can you show their relation? What are the examples of each? Thanks

2541


Can you change size of array once created?

843


How does selection sort work?

893


What is return map?

954


How do you sort a list in reverse order?

821


Which is better arraylist or linkedlist?

882


What is the capacity of arraylist?

931


How expression trees are gets represented in data structure?

858


What is difference between hashmap and arraylist?

966


What exactly is a thread?

914


Why quicksort is faster?

845


Which is faster treemap or hashmap?

898