1 / 25

Chapter 3

Chapter 3. G rowth of Functions Lee, Hsiu-Hui Ack: This presentation is based on the lecture slides from Hsu, Lih-Hsing, as well as various materials from the web. 3.1 Asymptotic notation. Θ -notation.  g ( n ) is an asymptotic tight bound for f ( n ). ``= ’’ abuse.

chuls
Télécharger la présentation

Chapter 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 3 Growth of Functions Lee, Hsiu-Hui Ack: This presentation is based on the lecture slides from Hsu, Lih-Hsing, as well as various materials from the web.

  2. 3.1 Asymptotic notation • Θ-notation g(n) is an asymptotic tight bound for f(n). • ``=’’ abuse Hsiu-Hui Lee

  3. The definition of requires that every member be asymptotically nonnegative. Hsiu-Hui Lee

  4. EXAMPLE: Hsiu-Hui Lee

  5. In general, Why ? Hsiu-Hui Lee

  6. O-notation (big –oh; Asymptotic Upper Bound) EXAMPLE: 2n2= O(n3) Hsiu-Hui Lee

  7. Ω-notation (big –omega; Asymptotic Lower Bound) EXAMPLE: Hsiu-Hui Lee

  8. Theorem 3.1 • For any two functions f(n) and g(n), if and only if and . Hsiu-Hui Lee

  9. O-notation (little-oh) • An upper bound that is notasymptotically tight . Hsiu-Hui Lee

  10. ω-notation (little-omega) • An lower bound that is notasymptotically tight . Hsiu-Hui Lee

  11. Relational properties • Transitivity • Reflexivity • Symmetry Hsiu-Hui Lee

  12. Transpose symmetry Hsiu-Hui Lee

  13. Trichotomy • Although any two real numbers can be compared, not all functions are asymptotically comparable. • a < b, a = b, or a > b. • It may be the case that neither nor holds. • e.g., are not comparable Hsiu-Hui Lee

  14. 3.2 Standard notations and common functions • Monotonicity: • A function f is monotonically increasing if m  n implies f(m)  f(n). • A function f is monotonically decreasing if m  n implies f(m)  f(n). • A function f is strictly increasing if m < n implies f(m) < f(n). • A function f is strictly decreasing if m > n implies f(m) > f(n). Hsiu-Hui Lee

  15. Floor and ceiling Hsiu-Hui Lee

  16. Modular arithmetic • For any integer a and any positive integer n, the value a mod n is the remainder (or residue) of the quotient a/n : a mod n =a -a/nn. • If (a mod n) = (b mod n). We write a b (mod n) and say that a is equivalent to b, modulo n. • We write a ≢b (mod n) if a is not equivalent to b modulo n. Hsiu-Hui Lee

  17. Polynomials • Polynomial in n of degree d ≧ 0 • If a≧ 0, is monotonically increasing. • If a≦0, is monotonically decreasing. • A function is polynomial bounded if for some constant k . Hsiu-Hui Lee

  18. Exponentials • Any positive exponential function with a base greater than 1 grows faster than any polynomial function. Hsiu-Hui Lee

  19. Logarithms • A function f(n) is polylogarithmically bounded if • for any constant a > 0. Any positive polynomial function grows faster than any polylogarithmic function. Hsiu-Hui Lee

  20. Factorials • Stirling’s approximation where Hsiu-Hui Lee

  21. Function iteration For example, if , then Hsiu-Hui Lee

  22. The iterative logarithm function Hsiu-Hui Lee

  23. Since the number of atoms in the observable universe is estimated to be about , which is much less than , we rarely encounter a value of n such that . Hsiu-Hui Lee

  24. Fibonacci numbers Hsiu-Hui Lee

  25. Homework-1 • Problem 3-1, 3-2 • Due: 10/5/2007 Hsiu-Hui Lee

More Related