DAA (CS14103) : Department of Computer Science and Engineering
DAA (CS14103) : Department of Computer Science and Engineering
Introduction
Analysis of algorithm depend on the time and memory taken by the algorithm.
● Suppose ‘M’ is an algorithm, and suppose ‘n’ is the size of the input data.
Clearly the complexity f(n) of M increases as n increases.
● It is usually the rate of increase of f(n) we want to examine. This is usually
done by comparing f(n) with some standard functions.
● The most common computing times are:
The result is 0, and it satisfies the equation mentioned above. So we can say
that f(n) = o(g(n)).
Little Omega (ω)
Definition: The function f(n)=ω(g(n)) (read as “f of n is little omega of g of n”)
iff there exist positive constants c (c > 0) and n0 (n0 > 0) such that,
f(n) > c g(n) for all n, n≥0
That is, f(n) becomes arbitrarily large relative to g(n) as n approaches infinity.