Assignments will be collected at the beginning of the class period. Please bring a hardcopy to turn in. Your assignment can be hand-written or typed.
For the questions on the homework that ask you to design an algorithm, your answer should include the following:
- Description: A written description of how your algorithm works.
- Pseudocode: Pseudocode for your algorithm. The pseudocode should give sufficient detail to make an analysis straightforward (e.g. don't hide a for-loop in an English phrase) while still being high-level enough that it can be easily read.
- Running Time: A statement of the worst-case running time of your algorithm in Big-O notation. Please justify your running time using your pseudocode.
|