ALGORITHM ANALYSIS Flashcards
is an important part of computational
complexity theory, which provides theoretical estimation for
the required resources of an algorithm to solve a specific
computational problem.
ALGORITHM ANALYSIS
(1)______ of (2)______ is the determination of the amount of
time and space resources required to execute it.
(1)ANALYSIS (2)ALGORITHM – ALGORITHM ANALYSIS
TYPES OF ALGORITH ANALYSIS
BEST CASE
WORST CASE
AVERAGE CASE
Define the input for which algorithm takes less time or minimum time.
BEST CASE
In the _______ calculate the lower bound of an algorithm.
BEST CASE
In the linear search when search data is
present at the first location of large data then the _______ occurs.
EXAMPLE OF BEST CASE
Define the input for which algorithm takes a long time or maximum time.
WORST CASE
In the ________ calculate the upper bound of an algorithm.
WORST CASE
In the linear search when search data is not present at all then the ______ occurs.
EXAMPLE OF WORST CASE
In the ________ take all random inputs and calculate the computation time for all inputs. And then we divide it by the total number of inputs.
AVERAGE CASE
Notations in Complexity Analysis of
Algorithms
BIG-O NOTATION (O)
OMEGA NOTATION (Ω)
THETA NOTATION (Θ)
◦We define an algorithm’s worst-case time complexity by using the ________ , which determines the set of functions grows slower than or at the same rate as the expression.
BIG-O NOTATION
it explains the maximum amount of time an algorithm requires to consider all input values.
BIG-O NOTATION
◦It defines the best case of an algorithm’s time complexity, the ________ defines whether the set of functions will grow faster or at the same rate as the expression.
OMEGA NOTATION
it explains the minimum amount of time an algorithm requires to consider all input values.
OMEGA NOTATION