Docsity

CS149 Homework 7: Combinatorial Optimization Problems, Assignments of Computer Science

Toggle sidebar
bg1
CS149 Introduction to Combinatorial Optimization Homework 7
Due: 4:00 pm, Wed, Nov 12th
Problem 1
•a) Prove that a node-arc incidence matrix is TU. (Recall that a node-arc incidence matrix is
a matrix where, for a directed graph, each column corresponds to an edge, and each row to a
vertex. For each vertex, there is a −1 in the column of every edge entering that vertex, and
a 1 for every edge leaving that vertex.)
b) Prove that if Ais a TU matrix, and we perfom one pivot step on Ato get A′,A′is TU.
Problem 2
Given the following knapsack problem:
max 9x1+10x2+9x3+45x4+9x5
s.t. 8x1+5x2+6x3+15x4+4x5≤20
Demonstrate the execution of the branch and bound method, using linear relaxation as a heuris-
tic, traversing the search tree in the order defined by Least Discrepancy.
Problem 3
Show that the following matrix is totally unimodular.
1 1 1 1
1 1 1 1 1
111
1 1 1 1 1
1 1 1 1
1 1 1 1
−1−1 1 1 1
−1−1 1 1 1
−1−1 1 1 1
−1−1 1 1
−1−1 1 1 1
Problem 4
You are asked to provide a one-to-one matching between five professors and five graduate students
for the upcoming seminar. Everybody speaks different language and the communication barrier
between pairs is given below, the higher the number the more difficult to communicate is. A zero
means that they are unable to work together. You should pair one professor with one student such
pf2

Partial preview of the text

Download CS149 Homework 7: Combinatorial Optimization Problems and more Assignments Computer Science in PDF only on Docsity!

CS149 Introduction to Combinatorial Optimization Homework 7

Due: 4:00 pm, Wed, Nov 12th

Problem 1

  • a) Prove that a node-arc incidence matrix is TU. (Recall that a node-arc incidence matrix is

a matrix where, for a directed graph, each column corresponds to an edge, and each row to a

vertex. For each vertex, there is a −1 in the column of every edge entering that vertex, and

a 1 for every edge leaving that vertex.)

b) Prove that if A is a TU matrix, and we perfom one pivot step on A to get A

′ , A

′ is TU.

Problem 2

Given the following knapsack problem:

max 9 x 1 +10x 2 +9x 3 +45x 4 +9x 5

s.t. 8 x 1 +5x 2 +6x 3 +15x 4 +4x 5 ≤ 20

Demonstrate the execution of the branch and bound method, using linear relaxation as a heuris-

tic, traversing the search tree in the order defined by Least Discrepancy.

Problem 3

Show that the following matrix is totally unimodular.

1 1 1 1

1 1 1 1 1

1 1 1

1 1 1 1 1

1 1 1 1

1 1 1 1

− 1 − 1 1 1 1

− 1 − 1 1 1 1

− 1 − 1 1 1 1

− 1 − 1 1 1

− 1 − 1 1 1 1

Problem 4

You are asked to provide a one-to-one matching between five professors and five graduate students

for the upcoming seminar. Everybody speaks different language and the communication barrier

between pairs is given below, the higher the number the more difficult to communicate is. A zero

means that they are unable to work together. You should pair one professor with one student such

CS149 Introduction to Combinatorial Optimization Homework 7

that total language overhead is minimized.

Draw the graph that visualizes the problem. Write down the LP. Think about the Dual, explore

the Dual solution.

gr1 gr2 gr3 gr4 gr

pr1 4 4 0 0 8

pr2 0 5 0 3 0

pr3 2 0 9 5 0

pr4 6 0 5 0 5

pr5 0 4 0 8 0