Difference between revisions of "2022 Paper 1 Revision Quiz"
(→Order of Complexity) |
(→Order of Complexity) |
||
Line 250: | Line 250: | ||
7) Factorial : { O(N!) } | 7) Factorial : { O(N!) } | ||
+ | {What is the order of complexity for a: | ||
+ | |type="{}"} | ||
+ | |||
+ | 1) Finding the first item in a list : { O(1)|Constant } | ||
+ | 2) { Binary Search } : Logarithmic or O(log N) | ||
+ | 3) { Linear Search } : Linear or O(N) | ||
+ | 4) Merge Sort: { Linearithmic|O(N log N) } | ||
+ | 5) { Bubble Sort } : Polynomial or O (N<sup>2</sup>) | ||
+ | 6) { Chess Board Problem } : Exponential or O(k<sup>N</sup>) | ||
+ | 7) {Travelling Salesman Problem }: Factorial or O(N!) | ||
</quiz> | </quiz> | ||
Revision as of 10:17, 2 June 2022
Contents
Recursion
Arrays
Abstract Data Types & Dynamic vs Static
Queues
Stacks
Graphs
Trees
Graph Traversal
Searching Algorithms
Sorting Algorithms
Optimisation Algorithms
Order of Complexity