- Measures how runtime scales as input size grows
Ascending order of runtime length:
- O(1)
- O(log[n])
- O(n)
- O(nlog[n])
- O(n)
- O(2)
- O(n!)
- Just because two algorithms have the same
O()
runtime, does not mean they will run at the same speed- You must consider how the memory is used
- Arrays are faster to access than Linked-lists
- When accessing arrays, reading by rows are faster than reading by column