PA of Algorithms Q22

0. Which of the following statements is true?
I. As the number of entries in a hash table increases, the number of collisions increases.
II. Recursive programs are efficient
III. The worst case complexity for Quicksort is O(n2 )
IV. Binary search using a linear linked list is efficient.

  • Option : D
  • Explanation :
    I). true
    II). false, because recursive programs are use stack
    III). true , best and avg O(nlog2n) and worst O(n2)
    IV). false, because binary search default find mid element O(log2n) when use linear linked list find mid element O(n)
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 *