CSCI 3322 (Principles of Algorithms), Fall 2022:
Homework 2

Credit:
20 points.

Reading

Be sure you have read, or at least skimmed, Chapter 3 of the textbook.

Problems

Answer the following questions. You may write out your answers by hand and scan them, or you may use a word processor or other program, but please turn in a PDF or plain text file. (No links to shared files on Google Drive please, and no word-processor files.) Turn it in by putting it in your course “TurnIn” folder on Google Drive. Please be sure to include your name somewhere in the file, so when I print it for grading I know whose work it is. (With the pledge is fine.)

  1. (10 points) Prove Theorem 3.1 in the textbook. (Recall that proving something of the form “$A$ if and only if $B$” means you have to prove “if $A$ then $B$” and “if $B$ then $A$”.) Hint: If you write down the formal definitions of “ $f(n) = \Theta(g(n))$”, “ $f(n) = O(g(n))$”, and “ $f(n) = \Omega(g(n))$”, I think there is not much more to do.

  2. (10 points) Is $2^{n+1} = O(2^{n})$? Is $2^{2n} = O(2^{n})$? Justify your answers. (For either you think is $O(2^{n})$, you should be able to come up with constants that make it fit the definition of $O(2^{n})$; if you think either is not, just explain as best you can why you think it isn't possible to come up with such constants.)

Pledge

This should include the Honor Code pledge, or just the word “pledged”, plus at least one of the following about collaboration and help (as many as apply). Text in italics is explanatory or something for you to fill in; you don't need to repeat it!

Essay

This should be a brief essay (a sentence or two is fine, though you can write as much as you like) telling me what if anything you think you learned from the assignment, and what if anything you found interesting, difficult, or otherwise noteworthy.




2022-10-10