315 views

1 Answer

Best answer
1 votes
1 votes

O(n^2)

selected by

Related questions

408
views
2 answers
2 votes
Bikram asked Oct 4, 2016
408 views
$T(n) = \begin{cases} 4 & \quad if \: \: n =1 \\ T(n-1) + 4 & \quad otherwise \end{cases}$Value of $T(1000)$ is ___
978
views
5 answers
4 votes
Bikram asked Oct 3, 2016
978 views
If k is a non-negative constant, then the solution to the recurrence$T(n) = \begin{cases} 1 & \quad n=1 \\ 3T(n/2) + n & \quad n>1 \end{cases} $for $n$, a power of 2 ... (n) = 3 \times 3^{\log_2 n} - 2n$T(n) = 3 \times 3^{\log_2 n} - 3n$