Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Problem Set 7
Due at 11:59pm, Monday, July 30
Hand in your solutions electronically using CMS. Write your name and NetID on
the rst page.
Remember that when a problem asks you to design an algori

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 8
(1) (10 points) Explain in 300 words or less why a polynomial-time algorithm under RAM can
be implemented by a polynomial-time deterministic Turing machine.
Key features of the ran

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 9
(1) (10 points) A used book store opened in Collegetown, and you decided to purchase some
books that you always wanted from that store. Yet, to make your life complicated, the stor

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Problem Set 8
Due at 11:59pm, Friday, August 3
Hand in your solutions electronically using CMS. Write your name and NetID on
the rst page.
Remember that when a problem asks you to design an algor

Introduction to Algorithms
CS 4820, Spring 2015
Review information for Prelim 2
Rooms, Times, and Review for Prelim 2
Prelim 2 is Thursday, April 9th 7:30-9pm. We have four rooms.
You will need to show up in your assigned room. See new assignments to ro

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 3
(1) (10 points) Solve Chapter 4, Exercise 15, from Kleinberg & Tardos.
To restate the problem, we are given a set of intervals, and we need to choose a subset of minimum
cardinalit

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 4
(1) (10 points) In this problem, you are in charge of maintaining a chemistry lab (this is a much
safer job than the second problem set, after all). Next month, you are expecting a

Introduction to Algorithms
CS 4820 Spring 2015
name: Jonathan Mares
Problem Set 1
Due 11:59pm Thursday, January 29
netid: jm2242
collaborators: None
Your homework submissions need to be typeset (hand-drawn figures are OK). See the course web page
for sugg

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 7
(1) (10 points) We need to set up a holiday shift schedule for an emergency room. The schedule
covers k holidays (each day consists of one shift), and there are n doctors in this h

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Problem Set 4
Due at 11:59pm, Thursday, July 19
Hand in your solutions electronically using CMS. Write your name and NetID on
the rst page.
Remember that when a problem asks you to design an algo

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Problem Set 10
Due at 2am, Thursday, August 9
This homework is due at 2am on August 9.
Hand in your solutions electronically using CMS. Write your name and NetID on
the rst page.
Remember that wh

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Solution Set 2
(1) (10 points)
The given algorithm makes (n2 ) invocations, as shown by the following two lemmas.
Lemma 1. The given algorithm invokes the equivalence tester O(n2 ) times.
Proof.

Introduction to Algorithms
CS 4820 Spring 2016
Prelim 1
Solutions
1.
True or false? For each of the statements below, decide whether it is true or false. Recall that in
the GaleShapley algorithm men propose to women.
a. Consider an instance of the stable

Introduction to Analysis of Algorithms
CS 4820, Summer 2012
Problem Set 2
Due at 11:59pm, Thursday, July 12
Hand in your solutions electronically using CMS. Write your name and NetID on
the rst page.
Remember that when a problem asks you to design an algo

Introduction to Algorithms
CS 4820 Spring 2015
Problem Set 5
Due 11:59pm Thursday, March 12
Your homework submissions need to be typeset (hand-drawn gures are OK). See the course web page
for suggestions on typing formulas. Solution to each question needs

CS4820 Problem Set 5
Liyuan Gao, lg342 March 7, 2012
Collaborators: Detian Shi and Nicholas Beaumont
1
1
Even more Ford-Fulkerson
(1a) Max-flow detection. Algorithm: We first construct a residual graph Gf of the given input G, which should take no more th

Introduction to Algorithms
CS 4820 Spring 2015
Problem Set 2
Due 11:59pm Thursday, February 5
Your homework submissions need to be typeset (hand-drawn gures are OK). See the course web
page for suggestions on typing formulas. Solution to each question nee

Introduction to Algorithms
CS 4820 Spring 2015
name: Jonathan Mares
Problem Set 6
Due 11:59pm Thursday, March 21
netid: jm2242
collaborators: None
Your homework submissions need to be typeset (hand-drawn figures are OK). See the course web page
for sugges