DAA Unit-1 PPTs On Asymptotic Notations (20.01.2022)
DAA Unit-1 PPTs On Asymptotic Notations (20.01.2022)
DAA Unit-1 PPTs On Asymptotic Notations (20.01.2022)
Thus, little o() means loose upper-bound of f(n). Little o is a rough estimate of
the maximum order of growth whereas Big-Ο may be the actual order of
growth.
Mathematical Relation of Little o notation:- f(n) = o(g(n)) means,
For example-1:-
If f(n) = n2 and g(n) = n3 then check whether f(n) = o(g(n)) or not.
Example-2: Is 7n + 8 ∈ o(n2)? (Apply the L’hospital rule)
Little ω asymptotic notation
Example:
Prove that 4n + 6 ∈ ω(1);
if lim f(n)/g(n) = ∞ then functions f(n) is ω(g(n))
n→∞ here, we have functions f(n)=4n+6 and g(n)=1
lim (4n+6)/(1) = ∞
n→∞
DIVIDE-AND-CONQUER
The complexity of many divide-and-conquer algorithms
is given by recurrences of the form
Finally, we can write using O is O(n.log n).
▪ The advantage of DAndC is to achieve Parallelism.