
CS473ug Head Banging Session #8 4/04/06 - 4/08/06
1. Linear Programming
A steel company must decide how to allocate next week’s time on a rolling mill, which is a machine
that takes unfinished slabs of steel as input and produce either of two semi-finished products: bands
and coils. The mill’s two products come off the rolling line at different rates:
Bands 200 tons/hr
Coils 140 tons/hr.
They also produce different profits:
Bands $ 25/ton
Coils $ 30/ton.
Based on current booked orders, the following upper bounds are placed on the amount of each product
to produce:
Bands 6000 tons
Coils 4000 tons.
Given that there are 40 hours of production time available this week, the problem is to decide how many
tons of bands and how many tons of coils should be produced to yield the greatest profit. Formulate
this problem as a linear programming problem. Can you solve this problem by inspection?
2. Maximum Degree 3 Spanning Tree
Maximum Degree 3 Spanning Tree takes as input a graph G= (V , E) and asks whether Ghas a
spanning tree with maximum degree at most 3.
Reduce Hamiltonian path to Maximum Degree 3 Spanning Tree. How could you modify the graph G
you are given so that the new graph G′has a maximum degree 3 spanning tree if and only if Ghas a
hamiltonian path?
3. Reduction to Subgraph Isomorphism
The Subgraph Isomorphism problem takes as input two graphs, G= (V1, E1) and H= (V2, E2). The
question is whether Gcontains a subgraph isomorphic to H, that is, a subset V⊆V1and a subset
E⊆E1such that |V|=|V2|,|E|=|E2|, and there exists a one-to-one function f:V2→Vsatisfying
{u, v} ∈ E2if and only if {f(u), f (v)} ∈ E.
Reduce one of the problems you saw in lecture on Tuesday (Independent set, Vertex Cover, and Set
Cover) to Subgraph Isomorphism. This proves that Subgraph Isomorphism is at least as hard of a
problem as the problem that you reduced to it.
4. Set Splitting
The Set Splitting problem takes as input a collection Cof subsets of a finite set Sand asks if there is
a partition of Sinto two subsets S1and S2such that no subset in Cis entirely contained in either S1
or S2.
Reduce 3SAT to Set Splitting.
1