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 many different binary trees and binary search trees can
be made from three nodes that contain the key values 1, 2 & 3?

Answer Posted / poornakala

for binary search tree, no of trees, (2^n)-n... here 8-3=5
trees... u can draw n see...

for binary tree, no of trees n(2^n)-n here 3*5=15...
replace node in each bst with other two values and see....

Is This Answer Correct ?    72 Yes 48 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you mean by sorting?

982


What's the difference between an array and vector?

938


What is a sorting algorithm in data structure?

970


How can we remove loops in a linked list? What are the functions of fast and slow pointers?

1254


What is the use of hashtable?

948


Explain the Linked List

1218


What is the minimum number of nodes that a binary tree can have?

1217


How do you reference all the elements in a one-dimension array?

1091


Draw a binary Tree for the expression : A * B - (C + D) * (P / Q)

1476


What is stable sort?

1067


Define union-by-weight?

1095


List the types of rotations available in splay tree?

1197


Can the double-checked locking fail on a single processor system?

1075


How do you rotate an AVL tree?

1024


Write an algorithm to show various operations on ordered list and arrays

971