PA of Algorithms Q92

0. Give the correct matching for the following pairs:
List-IList-II
A.O(logn)P.Selection
B.O(n)Q.Insertion sort
C.O(n log n)R.Binary search
D.O(n2)S.Merge sort

  • Option : D
  • Explanation :
    Selection sort = O (n2)
    Insertion sort = O (n2) or (O(n) in best case)
    Binary Search = O (logn)
    Merge Sort = O (n logn)
    None of the options 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 *