Note that your final mark will not be saved in the system.
8 - Classification of Algorithms GapFill
You must fill all the gaps before clicking ‘Check Answers!’
The complexity of an algorithm, quantified using notation, is a measure of how much additional resource the algorithm requires as increases. In this context, that resource is either time to execute or required.
An algorithm that requires no additional time, irrespective of the volume of additional data, is referred to as having complexity. This would be represented as a on a graph, expressed as , and an example would be . complexity occurs when doubling the data to be processed doubles the time required in order to process it. On a graph, this would be a , expressed as , and an example here is .
An algorithm with complexity is one in which doubling the data that an algorithm is required to process would increase the time required, but by less than a doubling. An example of this type of algorithm would be , since doubling the size of the data structure requires only one additional iteration. The inverse of this is complexity. As the data to process grows in size, so does the time (or space) required to process it, and this would curve steeply upwards on a graph. This would be written as complexity.