

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A handout for homework 1 in the algorithm design and analysis course offered by pennsylvania state university in fall 2008. It includes instructions for the assignment, reminders, and problems to be solved. Students are required to provide algorithms with proofs of correctness and time/space complexity analysis for some problems.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Please refer to the general information handout for the full homework policy and options.
Reminders
Exercises These should not be handed in, but the material they cover may appear on exams: problems in Chapters 1 and 2.
Problems to be handed in
(a) Give an algorithm that takes an instance of the stable marriage problem as input and decides if there is exactly one stable matching for this instance (that is, the algorithm outputs either “unique stable matching”, or “more than one stable matching”). Pay close attention to the proof of correctness of your algorithm.
(b) Show that the maximum number of possible stable matchings for instances with n men and n women scales at least exponentially with n: that is, show that there is a constant c > 1, and a sequence of instances of the stable marriage problem, x 1 , x 2 , ..., one for each value of n, such that the number of stable matchings in instance xn is at least cn. (Extra extra points for a construction with c > 2.)