

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Working with others is STRONGLY ENCOURAGED. Prepare your answers individually and then compare/contrast your answers with others. The homework questions are meant to help you prepare for exams. When you work with others, you are motivated to consider every aspect of a problem and do your best thinking. Just doing a google search for the answers is NOT recommended. The learning comes as you struggle to create the answer from what you already know or from material in the chapters.
Note, these exercises may be done in groups of one, two, or three. If more than one person is involved, list all the names on ONE set of answers. Groups may change throughout the semester. Answers should not be compared with others not in your group.
These are typed (or hand-written neatly) exercises, but you are certainly encouraged to actually code the programming segments if you have time.
In giving your answers, use algorithmic language, building on algorithms and terminology used in class. In previous assignments, the term “efficient” was used as code for “polynomial”. In this and future assignments, efficient will mean the best of the polynomial time algorithms.
Be careful about your algorithms. The algorithm should be specific enough that you could turn it over to an undergrad and recognize the solution he/she implements as the same algorithm you specified.
In some cases you are just to recognize, “This is merely an instance of a well known problem.” In other cases, the problem is similar to a well know problem, but the differences are critical. You must comment how the differences from the well-known problem change the solution. In still other cases, you are asked to improve on the solution discussed in class.
Chapter 8
an algorithm for computing a maximum flow in network N' by modifying f. Hint: You have already computed the flow. You change an edge and want to know how the flow has changed WITHOUT starting over.
Chapter 9
something'' to the letters of the stringnothing'' assuming that insertion, deletion, and replacement are of cost 1 and matching is zero. Show your work.bumblebee'' andbeelumber''? Show your work.