1. Use the branch and bound algorithm to solve the following 0/1 knapsack
problem with capacity K=8. (Maximize Σ cj xj
subject to Σ wj xj ≤ 8; xj
∈ {0,1}.)
| j |
1 |
2 |
3 |
4 |
5 |
| wj |
1 |
3 |
3 |
2 |
4 |
| cj |
2 |
5 |
7 |
6 |
9 |
2. Solve the previous problem with capacity K=10 using dynamic
programming.
3. Rework Example 18.7 replacing the weight w of each directed edge by
w2.
4. Let G be a connected graph with distinct edge weights. Prove or
disprove the assertion that the minimum spanning tree of G is unique.
5. Let G be a graph on six vertices, labelled 3,5,6,7,9,10. There is an
edge between a pair of vertices in G if the labels are relatively prime
(i.e., have no common factor other than 1). The cost of an edge is the
product of the labels of the vertices it connects. Find a minimum spanning
tree in G.