Professional Documents
Culture Documents
Recitation Tuesday
Recitation Tuesday
components
Auxiliary space - extra space or the temporary space that an algorithm uses.
Input space - comprises all potential sets of values for input.
9. Time complexity - a type of computational complexity that describes the time required to
execute an algorithm. The time complexity of an algorithm is the amount of time it takes for
each statement to complete.
10. Constant space complexity - it will always run in the same amount of time, no matter the input
size.
11. Linea space complexity - An algorithm that requires memory proportional to the size of the
input data has a linear space complexity. An example of a linear space complexity algorithm is
linear search.