Our site uses cookies. Some of the cookies we use are essential for parts of the site to operate and have already been set. You may delete and block all cookies from this site, but parts of the site will not work. To find out more about cookies on this website, see our Cookie Policy
Accept
© eRevision.uk and ZigZag Education 2025
This test is run by .
Note that your final mark will not be saved in the system.

8 - Classification of Algorithms GapFill

Target Level
C
Running Total
0
0%
Attempt
1 of 3

You must fill all the gaps before clicking ‘Check Answers!’

The complexity of an algorithm, quantified using  Big ULittle UBig OLittle O notation, is a measure of how much additional resource the algorithm requires as  tree depthinput sizestack heightline count increases.  In this context, that resource is either time to execute or  hertzmemory spaceapplicationsbandwidth required. 

An algorithm that requires no additional time, irrespective of the volume of additional data, is referred to as having  polynomialconstantexponentiallinear complexity.  This would be represented as a  horizontal linecurve decreasing in gradientcurve increasing in gradientvertical line on a graph, expressed as  O(n)O(2ⁿ)O(n²)O(1), and an example would be  sorting an array into ordersearching an arraysearching a linked listaccessing the first element in an array.  ConstantQuadraticFactorialLinear 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  straight line between horizontal and verticalhorizontal lineparabolic curvevertical line, expressed as  O(n!)O(n)O(2ⁿ)O(1), and an example here is  a linear searchDijkstra's algorithma binary searchthe A* algorithm.

An algorithm with  linearithmicexponentiallogarithmicfactorial 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  linear searchbinary searchthe A* algorithma bubble sort, since doubling the size of the data structure requires only one additional iteration.  The inverse of this is  linearlogarithmicfactorialexponential 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  O(n²)O(2ⁿ)O(n!)O(n) complexity.

This is your 1st attempt! You get 3 marks for each one you get right. Good luck!

Pass Mark
72%