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...


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?

Answers were Sorted based on User's Feedback



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..

Answer / sriram

iam sorry i had given the wrong answer above....

its O(f(n)*g(n)) or O(max(f(n),g(n))


2^n -n so its 5 and 12 nodes respectively.....

Is This Answer Correct ?    34 Yes 3 No

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..

Answer / mukta majumder

O(max(f(n),g(n))

Is This Answer Correct ?    14 Yes 1 No

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..

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

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..

Answer / sriram

order of the algorithm is f(n)+g(n)



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 ?    4 Yes 15 No

Post New Answer

More Data Structures Interview Questions

Is heap sort faster than quicksort?

0 Answers  


What is the Role of push() and pop() method?

0 Answers  


What is a weighted graph?

0 Answers  


How does bogo sort work?

0 Answers  


What is dynamic array in excel?

0 Answers  


Why is it important to sort waste?

0 Answers  


What is the space complexity of bubble sort?

0 Answers  


There are 2 int type array data type. One is containing 50 elements, and another one is containing 30 elements. Can we assign the array of 50 elements to an array of 30 elements?

0 Answers  


How to cut or remove an element from the array?

0 Answers  


Differentiate between singly and doubly linked lists?

0 Answers  


Can we store null in arraylist?

0 Answers  


how to search an element in sorted linked list with time complexity is O(log n).

3 Answers   Wipro,


Categories