What is a function in terms of mappings
It is a mapping from one set of values to another set of values (the domain to the co-domain)
Time complexity
The time that an algorithm takes to complete
Permutations
All the different ways of arranging a set of objects
Number of permutations
n!
How to express constant time with Big O notation
O(1)
How to express linear time with Big O notation
O(n)
How to work out the time complexity of a function
Look for the most important term (ignore all coefficients)
How to work out the time complexity of an algorithm
X nested for loops means complexity n^X
Splitting the search space into pieces is log(n)
Checking permutations is n!