Exercise Lover

June 30, 2007

Exercises 24.4-12

Filed under: 24.4 — yuhanlyu @ 1:02 pm

Solution wanted!

Exercises 24.4-11

Filed under: 24.4 — yuhanlyu @ 1:02 pm

Solution wanted!

Exercises 24.4-10

Filed under: 24.4 — yuhanlyu @ 1:01 pm

If the constraint is x_i ≤ b_k, then add edge (v_0, v_i) with weight b_k. If the constraint is -x_i ≤ b_k, then add edge (v_i, v_0) with weight b_k

Exercises 24.4-9

Filed under: 24.4 — yuhanlyu @ 1:01 pm

Solution wanted!

Exercises 24.4-8

Filed under: 24.4 — yuhanlyu @ 1:00 pm

From exercise 24.4-3, we know all _i ≤ 0. (How about the maximize property?)

Exercises 24.4-7

Filed under: 24.4 — yuhanlyu @ 1:00 pm

Initial all vertex v with d[v] = 0.

Exercises 24.4-6

Filed under: 24.4 — yuhanlyu @ 1:00 pm

Let x_ix_j ≤ b_k and -(x_i - x_j) ≤ b_k.

Exercises 24.4-5

Filed under: 24.4 — yuhanlyu @ 12:59 pm

The edges from s to every vertex with weight 0 is useless, we can initial all vertex with shortest path weight 0 and ignore these edges in remaining Bellman-Ford algorithm.

Exercises 24.4-4

Filed under: 24.4 — yuhanlyu @ 12:59 pm

Let x_i be the shortest path from source to vertex i. We can add the constraint x_s ≤ 0 and -x_s ≤ 0 to force the x_s to be zero. Then add the constraints x_ix_j ≤ w(i,j) for all edges between i, j. Finally, we need to maximize all the x variable.

Exercises 24.4-3

Filed under: 24.4 — yuhanlyu @ 12:58 pm

No, because there is one path with weight 0 from v_0 to every vertexs.

Older Posts »

Blog at WordPress.com.