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 / shalini

binary search tree=(2^n)-n i.e (2^3)-3=5
binary tree=((2^n)-n)*n! i.e ((2^3)-3)*3!=30


this is the right answer!!!!

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data and data types?

498


What is a graph?

580


If you do not initialize an array what will happen?

593


Which is faster hashmap or hashtable?

509


Explain what are the types of collision resolution techniques and the methods used in each of the type?

508






What is data type with example?

505


Explain about circular linked list?

532


What are the advantages of linked list over array (static data structure)?

680


What are the applications of priority queues?

522


What is concept of data structure?

451


How many passes does bubble sort need?

481


What is an expression tree?

530


Define degree of the node?

556


What is heap tree?

462


What are the major data structures used in the following areas : network data model & hierarchical data model?

583