Q#1: An algorithm is made up of 2 modules M1 and M2.If
order of M1 is F(n) and order of M2 is g (n) then what is
the order of the algorithm.
Q # 2 : How many binary trees are possible with 3 nodes?
with 4 nodes?
Answer Posted / mousumi
no of binary trees possible with n nodes is 2^n-n
3->2^3-3=5 nodes
4->2^4-4=12 nodes
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What are hash tables good for?
What is the space complexity of selection sort?
Explain implementation of deletion from a binary tree.
What is a spanning tree in data structure?
How to find the missing element in integer array of 1 to 7?
What is stack and its operations?
Why quicksort is called quick?
What is a data structure definition?
What is significance of ” * ” ?
Can we declare array size as a negative number?
Is a hashmap a dictionary?
What is ascii sort order?
What is a simple path?
What are the advantages of modularity?
What is the difference between hashset and treeset?