CSPP 570 Algorithms - Autumn 2001
Homework 6
Assigned November 8, due November 14
This homework covers the material in chapters 11, 12, and 13 of the
textbook and includes a special problem on the run time of algorithms.
- The instructions for this problem are in the following files:
Instructions (postscript)
Instructions (pdf)
code
(10 points)
-
Do exercise 11.1-2 on page 203. (10 points)
-
Do exercise 11.1-5 on page 203. (10 points)
-
Do exercise 11.1-6 on page 203. (10 points)
-
Do problem 11-1 on page 216. (10 points)
-
Do exercise 13.1-2 on page 246. (10 points)
-
Suppose that we are given 13 golf balls, one of which is heavier than
the rest, and a balancing scale. Design a procedure that finds
the heavy ball using an expected number of weighings that is less than
2.5. Explain why the expected number of weighings for your procedure
is less than 2.5 and give an equation for the expected number of
weighings. (10 points)
Gerry Brady
Thu Nov 8 12:02:10 CST 2001