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
What is queue in data structure?
What is heap tree explain with example?
Is null allowed in list?
Explain Linked List
What is the difference between adt and data structure?
Who invented merge sort?
Explain what are the methods available in storing sequential files ?
What is thread and types of thread?
What is binary search tree and explain its time complexity?
Define avl tree?
Name some applications which use linked lists.
Model a data structure for a DFA that takes an event as parameter and performs a desired action.
What do you mean by probing?
What is sequential search? What is the average number of comparisons in a sequential search?
What are dynamic data structures?