Asymptotic notations(Big O, Omega, Theta )

swapnac12 1,090 views 13 slides Apr 02, 2021
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

DAA || ADA || Asymptotic notations || Swapna.C


Slide Content

ALGORITHM DESIGN AND ANALYSIS SWAPNA.C

Asymptotic Notations Rate of Growth: The following notations are commonly use notations in performance analysis and used to characterize the complexity of an algorithm: 1.Big–OH (O) 1, 2.Big–OMEGA ( ), 3.Big–THETA ( ) and 4.Little–OH (o)

Big–OH O (Upper Bound) f(n) = O(g(n)), (pronounced order of or big oh), says that the growth rate of f(n) is less than or equal (<) that of g(n). Big ‘oh’: the function f(n)=O(g(n)) iff there exist positive constants c and no such that f(n)≤c*g(n) for all n, n ≥ no.

Big–OMEGA Ω (Lower Bound) f(n) = Ω (g(n)) (pronounced omega), says that the growth rate of f(n) is greater than or equal to (>) that of g(n). Omega: the function f(n)=Ω(g(n)) iff there exist positive constants c and no such that f(n) ≥ c*g(n) for all n, n ≥ no.

Big–THETA ө (Same order) f(n) = ө (g(n)) (pronounced theta), says that the growth rate of f(n) equals (=) the growth rate of g(n) [if f(n) = O(g(n)) and T(n) = ө (g(n)]. Theta: the function f(n)=ө(g(n)) iff there exist positive constants c1,c2 and no such that c1 g(n) ≤ f(n) ≤ c2 g(n) for all n, n ≥ no.

RANDOMIZED ALGORITHMS Basics of probability Theory: Probability theory has the goal of characterizing the out comes of natural or conceptual "experiments”. set of all possible outcomes is known as the sample space S. In this text we assume that S is finite (such a sample spaceis called a discrete sample space).An event E is a subset of the sample space S.If the sample space Consists of n sample points t,hen thereare2n possibel events.