- Time taken is independent of the amount of data.
- Stack push,, pop, and peek; Queue enqueue and dequeue; insert a node into a linkedlist.
- Time taken is directly proportional to the amount of data
- Linear search; count items in a list; Compare a pair of strings.
- Time take is proportional to the amount of data squared
- Bubble sort; Selection sort; insert sort; Traverse a 2D array
- Time is proportional to the amount of data raise to the power of the a constant.
- Time take is proportional to the logarithm of the amount of data
- Binary search a sorted list; Search a binary tree
- Time taken is proportional to the logarithm of the amount of data, multiplied by the amount of data.
- Merge sort; Quicksort
- Time take is proportional to a constant raised to the power of the amount of data
- N-Queens problem; Traveling salesman, passwords cracking