aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 5 - Algorithms | Computer Science(CS)
  • The recurrence equation T(1) = 1 T(n) = 2T(n − 1) + n, n ...
Multiple choice

The recurrence equation T(1) = 1 T(n) = 2T(n − 1) + n, n $\le$ 2 evaluates to

  1. 2n+1− n − 2

  2. 2n − n

  3. 2n+1− 2n − 2

  4. 2n + n

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Keep practicing — related questions

  • The solution to the recurrence equation $T(2^k) = 3T(2^{k-1})+1, T(1) =1$ is
  • The order of the following recurrence: $T(n) = 2T([\sqrt{n}]) + 1$ is
  • The order of the following recurrence: $T(n) = 2T([\sqrt{n}]) + 1$ is
  • Consider the following recurrence relation $T(1)=1$ $T(n+1) = T(n)+\lfloor \sqrt{n+1} \rfloor$ for all $n \...
  • Suppose T(n) = 2T (n/2) + n, T(0) = T(1) = 1 Which of the following is false?
  • The recurrence relation that arises in relation with the complexity of Binary Search is
  • The equation to the chord of the circle $x^{2}+y^{2}=9$ whose middle point is $(1,-2)$ is
  • Who among the following were the members of the State Reorganization Commission, 1953? 1. Pattabhi Sitaramm...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy