Assignment 1
Assignment 1
1. Define the term "algorithm" and discuss its main properties in brief. Also, write down the
steps required to design an algorithm.
2. Order the following expressions by their asymptotic growth, and justify you answer: n^2,
nlogn, n √n, e^n, n, 2^n, 1/n
3. For the factorial function f(n)= n!, we can define both upper and lower bounds, but we
cannot establish a tight Θ (theta) bound. Justify your answer.
5. Solve the recurrence using Iteration method: T(n) = 3T(n-1) +1; T (0) =1
7. Illustrate the operation of Quick Sort on the array {9,14, 87, 2, 32, 86, 67}. Consider the
last item as a pivot element.