This preview shows pages 1–2. Sign up to view the full content.
Introduction to Algorithms
October 25, 2004
Massachusetts Institute of Technology
6.046J/18.410J
Professors Piotr Indyk and Charles E. Leiserson
Handout 17
Problem Set 5
Reading:
Chapters 15, 16
Both exercises and problems should be solved, but
only the problems
should be turned in.
Exercises are intended to help you master the course material. Even though you should not turn in
the exercise solutions, you are responsible for material covered in the exercises.
Mark the top of each sheet with your name, the course number, the problem number, your
recitation section, the date and the names of any students with whom you collaborated.
Threehole punch your paper on submissions.
You will often be called upon to “give an algorithm” to solve a certain problem. Your writeup
should take the form of a short essay. A topic paragraph should summarize the problem you are
solving and what your results are. The body of the essay should provide the following:
1. A description of the algorithm in English and, if helpful, pseudocode.
2. At least one worked example or diagram to show more precisely how your algorithm works.
3. A proof (or indication) of the correctness of the algorithm.
4. An analysis of the running time of the algorithm.
Remember, your goal is to communicate. Full credit will be given only to correct algorithms
which are
which are described clearly
. Convoluted and obtuse descriptions will receive low marks.
Exercise 41.
Do Exercise 15.21 on page 338 in CLRS.
Exercise 42.
Do exercise 15.34 on page 350 in CLRS.
Exercise 43.
Do exercise 15.44 on page 356 in CLRS and show how to reconstruct the actual
longest common subsequence.
Exercise 44.
Do exercise 16.13 on page 379 in CLRS.
Exercise 45.
Do exercise 16.32 on page 392 in CLRS.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This homework help was uploaded on 04/10/2008 for the course CSE 6.046J/18. taught by Professor Piotrindykandcharlese.leiserson during the Fall '04 term at MIT.
 Fall '04
 PiotrIndykandCharlesE.Leiserson
 Algorithms

Click to edit the document details