COMP-360 Homework 3 Solutions
1. Edmonds-Karp (10 points) (a) See the graphs shown on the next page. The left column shows the original ow network, and the ows after each iteration. The maximum ow is
Algorithm Design Techniques
Assignment 4: Solutions
(1) Backtracking: Vertex Colouring
The search tree is drawn below. We need only consider the cases where A is
colored 1 and B is colored 2 (by symme
Algorithm Design Techniques
Due: Thursday 6th November
Assignment 4: Heuristics
(1) Backtracking: Vertex Colouring
We can use the following state-space tree T for a backtracking algorithm to
test whet
COMP 360 - Fall 2015 - Sample Final Exam
There are in total 105 points, but your grade will be considered out of 100.
1. (10 points) Prove that the following problem belongs to P : Given a graph G, we
Algorithm Design Techniques
Assignment 3: Solutions
(1) Hamiltonian Path.
(a) Longest Path Problem
The Longest Path Problem is in NP. Given a solution path P , we just
check that P consists of at leas
COMP 360 - Fall 2015 - Assignment 4
Due: 6:00 pm Nov 24th.
General rules: In solving these questions you may collaborate with other students but each student
has to write his/her own solution. There a
COMP 360 - Fall 2015 - Assignment 5
Due: 6pm Dec 8th.
Guildenstern: The law of probability, as it has been oddly asserted, is something to do with the
proposition that if six monkeys (he has surprised
COMP 360 - Fall 2015 - Midterm
1. Consider a flow network G. Prove or Disprove each one of the following statements.
(10 points) If e has the lowest capacity among all edges of G, then e is in a mini
COMP 360 - Fall 2015 - Assignment 2
Due: 6:00 pm Oct 13th.
General rules: In solving these questions you may consult books but you may not consult with
each other. There are in total 105 points, but y
COMP 360 - Fall 2015 - Assignment 3
Due: 6:00 pm Nov 10th.
General rules: In solving these questions you may collaborate with other students but each student
has to write his/her own solution. There a
COMP 360 - Some duality examples
1
Questions
Let G = (V, E, cfw_ce ) be a graph where every edge e has a cost ce . Write the
duals of the following Linear Programs:
1.
P
min PuvE cuv xuv
s.t.
1 for e
Solutions to the COMP-360 Winter 2006 Midterm
1. Selling cars (10 points) (a) The objects to be chosen are customer-car pairs. For example, selling Car B to Curly would be represented by the pair (Cur
Problem 1 We define our supermarket problem as an NP problem: Problem: SUPER Input: A list of customers, and the items they have purchased, and an integer l. Question: Is there a subset S of customers