Data Structures and Algorithms - Performance Analysis of Algorithms and Recurrences

Avatto > > UGC NET COMPUTER SCIENCE > > PRACTICE QUESTIONS > > Data Structures and Algorithms > > Performance Analysis of Algorithms and Recurrences

11. The recurrence relation that arises in relation with the complexity of binary search is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


12. Consider the following two functions

 Which of the following is true?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


13. The recurrence relation
T(1) = 2
T(n) = 3T(n/4) + n
has the solution T(n) equal to

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


14. A polynomial p(x) is such that
p(0) = 5, p(1) = 4, p(2) = 9 and p(3) = 20
The minimum degree it can have is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


15. Let T(n) be the function defined by
T(1) = 1,
T(n) = 2T ([n/2) + √n for n ≥ 2.
Which of the following statement is true?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *