Big O notation: Difference between revisions
imported>Aleksander Stos (link to original article) |
imported>Hendra I. Nurdin (Slightly expanded the article) |
||
Line 1: | Line 1: | ||
The '''big O notation''' is a mathematical notation to express various bounds concerning asymptotic behaviour of functions. It is often used in particular applications in [[physics]], [[computer science]], [[engineering]] and other [[applied sciences]]. For example, a typical context use in computer science is to express the [[complexity of algorithms]]. | The '''big O notation''' is a mathematical notation to express various bounds concerning asymptotic behaviour of functions. It is often used in particular applications in [[physics]], [[computer science]], [[engineering]] and other [[applied sciences]]. For example, a typical context use in computer science is to express the [[complexity of algorithms]]. More precisely, if ''f'' (respectively, <math>f_n</math>) and ''g'' (respectively, <math>g_n</math>) are real valued functions of the real numbers (respectively, sequences) then the notation <math>f(t)=O(g(t))</math> denotes that there exist a positive real number (respectively, integer) ''T'' and a positive constant ''C'' such that <math>|f(t)|\leq C |g(t)|</math> for all <math>t>T</math>(respectively, <math>|f_n| \leq C |g_n|</math> for all n>T). | ||
The big O notation is also often used to indicate that the absolute value of a real valued function around some [[topological space|neighbourhood]] of a point is upper bounded by a constant multiple of the absolute value of another function, in that neigbourhood. For example, for a real number <math>t_0</math> the notation <math>f(t)=O(g(t-t_0))</math>, where ''g'' is a function satisfying ''g(0)=0'', denotes that there exists a real positive constant ''C'' such that <math>|f(t)|\leq C|g(t-t_0)|</math> in ''some'' neighbourhood ''N'' of <math>t_0</math>. | |||
[[Category:Mathematics Workgroup]] | [[Category:Mathematics Workgroup]] | ||
[[Category: CZ Live]] | [[Category: CZ Live]] |
Revision as of 19:05, 21 September 2007
The big O notation is a mathematical notation to express various bounds concerning asymptotic behaviour of functions. It is often used in particular applications in physics, computer science, engineering and other applied sciences. For example, a typical context use in computer science is to express the complexity of algorithms. More precisely, if f (respectively, ) and g (respectively, ) are real valued functions of the real numbers (respectively, sequences) then the notation denotes that there exist a positive real number (respectively, integer) T and a positive constant C such that for all (respectively, for all n>T).
The big O notation is also often used to indicate that the absolute value of a real valued function around some neighbourhood of a point is upper bounded by a constant multiple of the absolute value of another function, in that neigbourhood. For example, for a real number the notation , where g is a function satisfying g(0)=0, denotes that there exists a real positive constant C such that in some neighbourhood N of .