Assignment 1
Assignment 1
Assignment 1
Assignment 1
Posted on Jan 25, due on Feb 8 Each problem is worth 10 points, for a maximum total of 50 points. 1. Find a notation in terms of n for the number of times the statement x = x + 1 is executed in the segment: i=1 while ( i < n2) x=x+1 i = 3i 2. Arrange the following functions in ascending order of growth rate. That is, if function g(n) immediately follows function f(n) in your list, then it should be the case that f(n) = O(g(n)).