Asymptotic Analysis PDF
Asymptotic Analysis PDF
eka
What define performance?
●
Architecture
●
Design of a program
Asymptotic Analysis
●
Define bound of its run-time performance.
●
Defined in term of its operation scaled with input.
– f(n): scaled linearly
– n(n2): Scaled quadratically and so on
●
Considering best case, average case, and worst
case
Asymptotic Notation
●
O Notation
●
Ω Notation
●
Θ Notation
Big Oh, O
●
Define upper bound of an algorithm’s running
time.
Ο f n = { g n : there exists c > 0 and n0 such that f n ≤ c.g n for all n > n0. }
Omega, Ω
●
Define lower bound of an algorithm’s running
time
Ω f n ≥ { g n : there exists c > 0 and n0 such that g n ≤ c.f n for all n > n0. }
Theta, Θ
●
Define Both lower bound and upper bound of
an algorithm’s running time.