Could someone explain in detail with examples the Big O Notation?
In mathematics, big O notation is used to describe the limiting behavior of a function when the argument tends towards a particular value or infinity, usually in terms of simpler functions.
Formal definition Let f(x) and g(x) be two functions defined on some subset of the real numbers. One writes if and only if there is a positive constant M such that for all sufficiently large values of x, f(x) is at most M multiplied by g(x) in absolute value. That is, f(x) = O(g(x)) if and only if there exists a positive real number M and a real number x0 such that In many contexts, the assumption that we are interested in the growth rate as the variable x goes to infinity is left unstated, and one writes more simply that f(x) = O(g(x)). The notation can also be used to describe the behavior of f near some real number a (often, a = 0): we say if and only if there exist positive numbers δ and M such that If g(x) is non-zero for values of x sufficiently close to a, both of these definitions can be unified using the limit superior: if and only if
ok
Ok ... would love to see some examples...
|dw:1359605112734:dw|
Join our real-time social learning platform and learn together with your friends!