 Homework 15Comments
 Most problems are found in one of the following:
 ADM: The Algorithm Design Manual
 IDMA: An Introduction to Discrete Mathematics and Algorithms
 For full credit, provide context for each problem, show all calculations,
and justify all answers by providing enough comments to explain your reasoning.
 You will lose a significant amount of credit if you do not provide context,
calculations, and justifications for a problem.
 Numbers and/or algebra by themselves are not enough.
A correct answer with no justification will be worth no more than half credit,
and sometimes much less than that.
 Precision is very important. You cannot skip steps, make guesses,
or use flawed logic. Any of these things can lead to incorrect answers.
 Homework assignments must be very neatly written or typeset
(e.g. using Word or OpenOffice).
 You must indicate any assistance/collaboration you had on an assignment as
specified on the Policies page.
 NEW! If a problem asks for an algorithm,
you should give the most efficient algorithm you can find to ensure full credit.
You should also specify the complexity of the algorithm with justification,
whether or not the problem asks for it.
DetailsThe following problems are from pages 98102 of ADM.
Problem  Notes  Grading


33  
 320  Assume you do not know the length of the list. Your algorithm should be as efficient as possible. If a list has an even number of elements, return either of the middle two elements.  Algorithm Rubric
 326  Treat the input as an array of characters, and do not use any special methods (e.g. split) to help your process the string since that would obscure how long the algorithm is taking. Give your answer in paragraph form, pseudocode, or code. If you use paragraph form, make sure your description is clear and contains all of the necessary details. If you use pseudocode or code, you also need to include a description of what your algorithm is doing.  Algorithm Rubric 
