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

Can we use Generics with the array?

1010


Why is data structure?

819


Is binary tree balanced?

793


How does hashset work internally in java?

957


What happens if an array goes out-of-bounds?

1039


Where will be the free node available while inserting a new node in a linked list?

888


Which list does not allow duplicates?

836


Evaluate the following prefix expression " ++ 26 + - 1324" (Similar types can be asked)

933


Can treemap have duplicate values?

838


What do you mean by probing?

916


How would you use qsort() function to sort the name stored in an array of pointers to string?

894


Define a priority queue?

1056


What method is used to place a value onto the top of a stack?

991


What do you mean by hash function?

887


Is duplicate allowed in hashmap?

1038