Presentation is loading. Please wait.

Presentation is loading. Please wait.

Asymptotic Bounds The Differences Between (Big-O, Omega and Theta) Properties.

Similar presentations


Presentation on theme: "Asymptotic Bounds The Differences Between (Big-O, Omega and Theta) Properties."— Presentation transcript:

1 Asymptotic Bounds The Differences Between (Big-O, Omega and Theta) Properties

2 Scalability – When algorithm is applied to a large data set, will finish relatively quickly. Speed and memory usage – Measuring speed-we measure algorithm speed in terms of Operations relative to input size. Measuring Efficiency

3 Big O C*g(x) g(x) f(x) x y xoxo

4 Big O Definition: Let f(x) and g(x) be two functions; We say that f(x)  O(g(x)) if there exists a constant c, X o > 0 such that f(x)≤c*g(x) for all X ≥ X o. f (x) is asymptotically less than or equal to g(x) Big-O gives an asymptotic upper bound.

5 Big  C*g(x) g(x) f(x) x y xoxo

6 Big-Omega Definition: Let f (x)and g(x) be two functions; We say that f(x)   (g(x)) if there exists a constant c, X o ≥ 0 such that f(x) ≥ c*g(x) for all X ≥ X o f(x) is asymptotically greater than or equal to g(x) Big-Omega gives an asymptotic lower bound

7 Big Θ C 2* g(x) g(x) f(x) x y xoxo C 1 *g(x)

8 Big Θ Definition: Let f(x) and g(x) be two functions ; We say that f(x)   (g(x)) if there exists a constant c 1, c 2, X o > 0; such that for every integer x  x 0 we have c 1 g(x) ≥ f(x) ≥ c 2 g(x) F(x) is asymptotically equal to g(x) F(x) is bounded above and below by g(x) Big-Theta gives an asymptotic equivalence


Download ppt "Asymptotic Bounds The Differences Between (Big-O, Omega and Theta) Properties."

Similar presentations


Ads by Google