Theory of Computation
Theory of Computation
Time Complexity
Introduction
The quantity of time taken by an
Decision problems are defined on the
algorithm to run as a function of the
scale of complexities. The worst case
length of input string is called the time
scenario is the upper bound refer to as
complexity and represented by big O
Big O, contrary the best case scenario is
notation also called asymptotic notation.
the lower bond of complexity commonly
For measuring the time complexity of an
known as Omega Ω. The algorithms are
algorithm we consider only the highest
constructed to solve the problems based
order term of the function as it
on their complexities. Complexity is the
dominates the lower order terms and the
measure of algorithm to solve a specific
effect of coefficient. Let’s take the given
problem. In case of time complexity, we
function f(n)=4n3+2n2+10n+10, here the
generally talking about the time taken by
higher order term is 4n3. We say this
an algorithm to solve a particular
function is asymptotically f(n)=(On3). [1]
problem. Similarly, if we talk about space
complexity we take it as the depth of
COMPUTATION COMPLEXITIES
(Time Complexity and Space Complexity and their inter-relationship)
References: