News

You use time complexity and space complexity functions to compare the algorithm to others of a similar nature (one sorting algorithm to another sorting algorithm, for example).
Time complexity originally describes problems from the field of informatics. It involves investigating how the amount of time needed by an algorithm increases when there is more data to process.