Contents

Divide-and-Conquer is as breaking the problem into a small number of?
a) Smaller Sub Problems

b) Pivot
c) Sieve                                 

d) Solutions

a

If there are O(n2) entries in edit distance matrix then the total running time is?
a) O(1)                                  

b) O(n^2)
c) O(n)                                   

d) O(n log n)

b

Is it possible to sort without making comparisons?
a) True                                 

b) False
c) NA                                     

d) N/A

a

In Quick sort, we don't have the control over the sizes of recursive calls?
a) True                                 

b) False
c) Less information to decide                           
b) Either true or false

a

When we call Heapify then at each level the comparison performed takes time?
a) It will take O(1)             
b) Time will vary according to the nature of input data
c) It cannot be predicted   
d) It will take O(log n)

a

What is the total time to heapify?
a) O(logn)                            

b) O(n log n)
c) O(n2 log n)       

d) O(log2 n)

a

Contents Details