190 likes | 724 Views
The Growth of Functions. M. S. Tame. The Growth of Functions. Introduction Q O W o w some notations and relations. Asymptotic notations. Introduction. Why are asymptotic notations important? They give a simple characterization of an algorithm’s efficiency.
E N D
The Growth of Functions M. S. Tame
The Growth of Functions • Introduction • Q • O • W • o • w • some notations and relations Asymptotic notations
Introduction Why are asymptotic notations important? • They give a simple characterization of an algorithm’s efficiency. • They allow the comparison of the performances of various algorithms. • For large values of components/inputs, the multiplicative constants and lower order terms of an exact running time are dominated by the effects of the input size (the number of components).
Introduction Why are asymptotic notations important? • They give a simple characterization of an algorithm’s efficiency. • They allow the comparison of the performances of various algorithms. • For large values of components/inputs, the multiplicative constants and lower order terms of an exact running time are dominated by the effects of the input size (the number of components). - The running time of an algorithm on a particular input, is the number of primitive operations or “steps” executed. The input size depends on the problem being studied, But in most cases it is the number of items in the input. Eg. The total number of bits/qubits
Introduction So in general, when looking at input sizes large enough to make the order of growth of the running time relevant for an algorithm, we are studying the asymptotic efficiency of an algorithm. And an algorithm that is asymptotically more efficient will be the best choice for all but very small inputs.
Asymptotic notations • Q - Asymptotic tight bound • O - Asymptotic upper bound • W - Asymptotic lower bound • o - upper bound that is not asymptotically tight • w - lower bound that is not asymptotically tight It is also convenient to abuse these notations in certain circumstances: “It is important to understand the precise meaning of the notation so that when it is abused, it is not misused.” - T.H. Cormen, C.E. Leiserson, and R.L. Rivest, "Introduction to Algorithms",(MIT Press, Cambridge, MA, 1990).
Q - Asymptotic tight bound Abuse:
References References: T.H. Cormen, C.E. Leiserson, and R.L. Rivest, "Introduction to Algorithms", (MIT Press, Cambridge, MA, 1990).