After this class, you should be able to:
f and g, prove or disprove that f = O(g). You should be able to do the proofs by directly using the definition, and also by using properties of big-O.
2n2 + 3n + 1 <4n2, n > 2. (Please don't post the solution on blackboard. You may give us a hardcopy of your solution, if you wish to get feedback from us.)
hi-lo+1 decreases by a factor of at least 2 in each iteration of the binary search algorithm presented in class. (Skip this question, for now.)
n3 + n is O(n3) directly from the definition of big-O. Show constants c and N that satisfy the definition.
n3 + n is O(n3) using properties of big-O.
n - 1 is big-Omega(n), directly from the definition of big-Omega.
n - 1 is big-Theta(n), directly from the definition of big-Theta.
q that is declared as: IntNode *q;, where IntNode is defined on pages 75 and 76 of the text. Write code that will do the following. It will make q point to an IntNode object that has info=7. This IntNode object, in turn, should point to another IntNode object that has info = 3. Then print out the info field of the second IntNode object (the one with info = 3).