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?

Answers were Sorted based on User's Feedback



How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / kalai

If the element is a root node ,in a 1st search it will find
the element. If the element is either a lchild or rchild it
make 2 searches.

Is This Answer Correct ?    2 Yes 7 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / bragaadeesh

Not a direct answer. But you can find in depth concepts
about binary and binary search tree in this page.

http://technicalypto.blogspot.com/search?
q=binary+search+tree

Is This Answer Correct ?    1 Yes 6 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / bittu sarkar

30 binary trees
14 binary search trees

Is This Answer Correct ?    1 Yes 10 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / shweta

for no. of different binary tree---
for n nodes the formula is 2^n-n in this formula value of
nodes are not considered, only the way nodes can be present
in a tree so for 3 nodes there can be 5 ways, for each way
no. of possibilty of values is 3! so answer comes out to be
5*6=30

1 1 1 1 1
A A A A A
2 3 2 2 2 2

A A A A
3 3 3 3

for binary search tree answer is 3

Is This Answer Correct ?    19 Yes 42 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / hash define

12 binary trees
3 binary search trees

Is This Answer Correct ?    10 Yes 44 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / kanha

for binary tree answer is n! ways that is 3!=6

For Binary search tree n ways..that is 3

Is This Answer Correct ?    17 Yes 52 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / swapna

18 Binary trees and 3 Binary serach trees.

Is This Answer Correct ?    35 Yes 99 No

How many different binary trees and binary search trees can be made from three nodes that contain t..

Answer / prasad

one binary search tree and 9 binary trees.

Is This Answer Correct ?    43 Yes 157 No

Post New Answer

More Data Structures Interview Questions

Give a basic algorithm for searching a binary search tree?

0 Answers  


How do you sort an array in decreasing order?

0 Answers  


Can we modify final arraylist?

0 Answers  


Explain the term base case?

0 Answers  


How many types of linked lists are there?

0 Answers  


Which is the parent class of list<e> class?

0 Answers  


What is concurrentlinkeddeque?

0 Answers  


What is the average number of comparisons needed in a sequential search to determine the position of an element in an array of 100 elements, if the elements are ordered from largest to smallest?

19 Answers   ABB, SDE,


What is queue in data structure?

0 Answers  


What is faster array or arraylist?

0 Answers  


Explain different methods in which you can traverse a tree?

0 Answers   NIIT,


Does hashset allow duplicates?

0 Answers  


Categories