This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Introduction to Algorithms October 9, 2002 Massachusetts Institute of Technology 6.046J/18.410J Professors Erik Demaine and Shafi Goldwasser Handout 16 Problem Set 4 This problem set is due in lecture on Monday, October 21. Reading: Chapter 12; 18.118.2, Chapter 13 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 by 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. Each problem should be done on a separate sheet (or sheets) of threehole punched paper. 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 your 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. Graders will be instructed to take off points for convo luted and obtuse descriptions. Exercise 41. Do exercise 12.43 on page 268 of CLRS. Exercise 42. Do exercise 12.12 on page 256 of CLRS. Exercise 43. Do exercise 12.27 on page 260 of CLRS. Exercise 44. Do exercise 12.35 on page 264 of CLRS. Exercise 45. Do exercise 18.26 on page 449 of CLRS. Exercise 46. Do exercise 13.15 on page 277 of CLRS. Exercise 47. Do exercise 13.22 on page 278 of CLRS. 2 Handout 16: Problem Set 4 Problem 41. Given two strings and , where each and is in some ordered set of characters, we say that string is lexically less than string...
View
Full
Document
This note was uploaded on 01/01/2011 for the course CS 5503 taught by Professor Charlese.leiserson during the Fall '01 term at MIT.
 Fall '01
 CharlesE.Leiserson
 Algorithms

Click to edit the document details