PA of Algorithms Q34

0. Consider the following three claims
l. (n + k)m = Θ(nm), where k and m are constants
2. 2n + 1 = O(2n)
3. 22n + 1 = O(2n)
Which of these claims are correct?

  • Option : A
  • Explanation :
    Note:- In devotion place change first point by
    1. (n+k)m = O(nm), where k and m are constants.
    1. (n+k)m ≅ O (nm) because k & m are constant
     then growth rate of both the function is same.
    2. 2n+1 ⇒ 2.2n, Here 2 is constant
     So function is 2n. Statement is true.
    3. 22n+1 ⇒ 2.22n ⇒ 2.4n
     So 4n > 2n then 22n+1 ≠ O(2n).
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 *