0 votes
in Asymptotic Analysis by AlgoMeister (1.6k points)

9 Answers

+1 vote
 
Best answer
a=b=2

Using the master theorem, we get

n^log2(2) > n^0.75

Answer: O(n^log2(2))
by AlgoStar (404 points)
selected by
0 votes
Using masters theorem,
a=b=2
n^lg2 = n > n^0.75
∴T(n) = theta(n)
by AlgoMeister (900 points)
edited by
0 votes
T(n)=aT(n/b)+f(n)

Given -> T(n)=2T(n/2) + n^0.75

Here a=2 and b=2.

Now nlogb a=nlong 2 2=n

f(n)=n^0.75

Therefore T(n)=Theta(n^log2 2 n^0.75)=Theta(n^1.75)

So, T(n)=Theta(n)
by (116 points)
0 votes

  • : The time it takes to solve a problem of size n.
  • : The number of subproblems.
  • : The size of each subproblem.
  • f(n): The time to combine the solutions of the subproblems (sometimes called the "combine step").

by (132 points)
0 votes

a=2; b=2;

according to the master theorem;

log22 > 0.75

so, the answer is O(nlog22)=O(n)

by (132 points)
0 votes
T(n) = 2 T(n/2) + n^0.75
Now, by applying Master Theorem,
a=2, b=2, K= 0.75, P= 0

lgb a = lg2 2 = 1 > K= 0.75

∵ if lgb a > K than, θ(n^ lgb a)
∴ T(n) = θ(n)
by AlgoStar (400 points)
0 votes
T(n) = 2T(n/2) + n^0.75
 In the above recurrence relation,
a= 2, b = 2, k = 0.75, p =0
log a base b = 1 > k
According to Master's theorem -
if log a base b > k then T(n) = theta(n^ log a base b)

T(n) = theta(n)
by (132 points)
0 votes

T(n) = 2 T(n/2) + n^0.75

According to Master's theorem,

a=2, b=2, f(n) = n^k log^p n

log a base b = log 2 base 2 = 1

k = 0.75

Here, log a base b >k (case 1)

Θ(n^log a base b)

Θ(n^1) = Θ(n)

by (132 points)
0 votes
Using Masters theorem:

A = 2, B = 2, K = 0.75(power of n)

log 2 (2) > K (Case 1)

T(n) = n ^ log 2 (2) == Theta(n)
by AlgoStar (464 points)
The Book: Analysis and Design of Algorithms | Presentations on Slideshare | Lecture Notes, etc
...