01 Assignment
01 Assignment
is
f (n) = bnx logc (n) + dnx if a = cx
bcx bcx
logc a
f (n) = d + n − nx if a ̸= cx
a − cx a − cx
6. For any two functions f (n) and g(n), show that f (n) = Θ(g(n)) if and
only if f (n) = O(g(n)) and f (n) = Ω(g(n)).
1
7. Prove that if f = Ω(g) then f ∈
/ o(g).
8. To prove that o(g(n)) ∩ ω(g(n)) is the empty set.
9. Solve using Substitution Method
(a)
(
1, if n = 1
T (n) = (1)
2T ( n2 ) + n, otherwise
(b)
(
1, if n = 1
T (n) = n
(2)
T ( 2 ) + c, if n > 1