In the followings find the big-O notation to describe the complexity of the
algorithm. Choose your answers from the following:
1, log2 n, n, n log2 n, n2
, n3
, . . . , 2
n, n! .
2. A linear search to find a number x in a list of n numbers.
5. A bubble sort algorithm to sort n numbers.