BigO
Big-O notation, often written as O(f(n)), is a mathematical concept used in computer science to describe the upper bound on the growth rate of a function. In practice, it characterizes how the running time or space requirements of an algorithm grow as the size of the input, n, increases. It is part of asymptotic analysis and is used to compare algorithms independently of hardware and implementation details.
As an upper bound, Big-O describes the worst-case or non-tight bound on growth. For example, an O(1)
To compute Big-O, one looks at the dominant term as n becomes large and ignores constant factors
Big-O is one of several asymptotic notations, alongside Big-Omega (lower bound) and Big-Theta (tight bound). It