private int M; /max weight the pack can carry
public int seMaxWeight(int m)cfw_
public int getMaxWeight()cfw_
/ method to output the result.
public void Output(inta)cfw_
Show that for any real constants a and b, where b>0,
Since the equation (n+a)b= (nb) is valid,
Therefore we have n + a = (n) and n + a = O(n). So,
c1n n+a where nn1 and n+a c2n
Therefore c1n n+a c2n
We have constant c1 c2 and n0 wh
Exercise #2 CS345 Summer 2011
This assignment needs to be completed individually. Copying and
being copied will both result in at least a zero score for the exercise.
What to do
Working on the following problems
Page 50, problems 3.1-2, 3.1-3, and 3.1-4.