Tut 1&2
Tut 1&2
ROLL NO:
DEPARTMENT OF INFORMATION TECHNOLOGY
EVEN SEMESTER FEBRUARY 2024-JUNE 2024
ITT304 ALGORITHM ANALYSIS AND DESIGN
TUTORIAL SHEET #1
1. Order the following functions by growth rate: N, √ N, N1.5 , N2 , N log N, N log log N, N
log2 N, N log(N2 ), 2/N, 2N , 2 N/2 , 37, N2 log N, N3 . Indicate which functions grow at the
same rate and show why this is the case.
2. Compare the growth of time complexity for the following set of functions
i) 2n and n2
3. Show that for any real constants a and b, where b > 0, (n + a) b = Θ(n b )
DATE: NAME:
ROLL NO:
4. Is 2 n+1 = O(2n) ? Is 22n = O(2n)?
6. Is 5n2+8n+12= O(n3)?
For each of the following pairs of functions, either f(n) is O(g(n)), f(n) is Ω(g(n)), or f(n) =
Θ(g(n)). Determine which relationship holds.
6. T (𝑛) = 4𝑇 (⌊n/2 ⌋) + n