Chapter 8: Network Design and Routing

Algorithmic Game Theory · Study Questions
Routing basicsWardrop equilibriumSystem optimumBraess's paradoxCongestion gamesRosenthal's potentialNetwork formationPairwise stability
Sercan KÜLCÜ · Giresun University · Computer Engineering

Multiple Choice · Routing basics

Question 1

Which routing algorithm allows negative edge weights and has RIP as its distributed version?

The correct answer is B, Bellman–Ford. Bellman–Ford updates each node's distance estimate by learning from its neighbors, runs in O(V·E) time and accepts negative edge weights; learning from neighbors is the basis of the distance-vector protocol RIP. Dijkstra (A) is faster but needs non-negative weights and is the core of OSPF. ECMP (C) is load balancing across equal-cost paths; Frank–Wolfe (D) is an optimization method that minimizes the Beckmann potential.

Multiple Choice · System optimum

Question 2

For a route with ℓ(x) = 5 + x/100, what is the marginal cost (x·ℓ(x))′?

The correct answer is C. By the product rule, (x·ℓ(x))′ = ℓ(x) + x·ℓ′(x) = (5 + x/100) + x·(1/100) = 5 + x/50. A is just ℓ itself, the delay the driver sees; B is only ℓ′; D doubles the constant 5, although the extra term comes only from x·ℓ′. The extra term x·ℓ′ = x/100 is the added delay one driver imposes on everyone else (an externality): the system optimum accounts for it, the Wardrop equilibrium does not.

Multiple Choice · Potential and code trace

Question 3

With divisible traffic, which function does the Wardrop equilibrium minimize?

The correct answer is B. The derivative of the Beckmann potential with respect to an edge's flow is ℓe, the delay seen by the last driver to arrive; at the minimum of Φ the used routes have equal latencies, which is exactly the Wardrop condition. The derivative of total latency C (A) is the marginal cost, so the minimizer of C is the system optimum. The Rosenthal potential (D) is the same idea in its summed form for atomic (indivisible) games. In the 3,000-car two-route example, Φ is smallest at x1 = 2,000 and C at x1 = 1,500.

Multiple Choice · Potential and code trace

Question 4

find_eq starts by bisecting Route 1's flow x on [0, 3,000] and compares ℓ1(x) = 5 + x/100 with ℓ2(3,000 − x) (ℓ2(y) = 20 + y/200). What is the interval after the first round?

The correct answer is D, [1,500, 3,000]. In the first round the midpoint x = (0 + 3000)/2 = 1,500 is tried: ℓ1(1,500) = 5 + 15 = 20, ℓ2(1,500) = 20 + 7.5 = 27.5. Since ℓ1 < ℓ2, Route 1 is still faster and the equilibrium lies further right: the code sets lo = 1,500 and leaves hi = 3,000. A picks the wrong direction; C is the result of the second round (at x = 2,250, ℓ1 = 27.5 ≥ 23.75, so hi = 2,250). The equilibrium (2,000) stays inside both intervals.

Multiple Choice · Braess and topology

Question 5

In which two-terminal networks does Braess's paradox never occur, however the latencies are chosen?

The correct answer is C, series-parallel networks. Milchtaich (2006) showed that a two-terminal network can be immune to Braess's paradox for every choice of latencies if and only if it is series-parallel. A series-parallel network is built by joining edges in series or in parallel; the two-route example is of this kind. The Braess network, with its A→B bridge, is a Wheatstone structure (D) and allows the paradox. Networks with cycles (A) and complete graphs (B) usually contain a Wheatstone subnetwork, so they give no guarantee.

Multiple Choice · Rosenthal's potential

Question 6

Which is the key property of Rosenthal's potential?

The correct answer is B. When a player switches routes, on every edge she leaves the last term ce(ne) of Φ drops out, and on every edge she enters ce(ne + 1) is added; these are exactly her old and new costs: ΔΦ = ci(new) − ci(old). So every improving move strictly decreases Φ, the dynamics stop, and a pure Nash equilibrium exists. A is wrong: Φ and the total cost generally differ (on an edge with ce(k) = k and 4 users, Φ = 1 + 2 + 3 + 4 = 10 but the cost is 4·4 = 16); an equilibrium is a local minimum of Φ, not a maximum (D); Φ is defined for atomic games (C).

Multiple Choice · Potential games

Question 7

Which statement about best-response dynamics in potential games is true?

The correct answer is C. Every improving move strictly decreases Φ and Φ takes finitely many values (the finite improvement property): the dynamics must stop, so B is wrong. But the number of steps can be exponential: Fabrikant, Papadimitriou and Talwar (2004) showed that finding a pure equilibrium in general congestion games is hard (PLS-complete), so no fast method is known and polynomial time (A) is not guaranteed. The dynamics stop with pure strategies; mixed strategies are not needed (D).

Multiple Choice · Network formation

Question 8

With α = 0.5 (n = 4), which statement is true?

The correct answer is A. In the complete graph, a player who drops a link she bought saves 0.5, but her distance to that neighbor rises from 1 to 2 (a loss of 1): the deviation does not pay, so the complete graph is an equilibrium. In the star, a leaf that buys a link to another leaf pays 0.5 and her distance to that leaf falls from 2 to 1 (a gain of 1): the deviation pays, so the star is not an equilibrium. General rule: for α < 1 the complete graph is both an equilibrium and the optimum; the star is an equilibrium only for α ≥ 1 (at α = 1 the deviation neither gains nor loses).

Classic Question · Wardrop equilibrium

Question 9: Wardrop Equilibrium

4,000 cars travel from A to B. Route 1: ℓ1 = 8 + x1/100, Route 2: ℓ2 = 20 + x2/300 (min). (a) Is everyone on Route 1 an equilibrium? (b) Find the Wardrop equilibrium, the latency and the total latency.

Show answer

(a) Everyone on Route 1: ℓ1 = 8 + 40 = 48 min, while the empty Route 2 takes 20 min. The drivers on Route 1 want to switch: not an equilibrium.

(b) If both routes are used, the latencies are equal: 8 + x1/100 = 20 + (4000 − x1)/300.

×300: 2400 + 3x1 = 6000 + 4000 − x1 → 4x1 = 7600 → x1 = 1,900, x2 = 2,100.

ℓ1 = 8 + 19 = 27, ℓ2 = 20 + 7 = 27 min ✓. Total latency 4,000 × 27 = 108,000 car·min. A single driver who switches routes gains nothing.

Classic Question · System optimum

Question 10: System Optimum

Same network: 4,000 cars, ℓ1 = 8 + x1/100, ℓ2 = 20 + x2/300. Equalize the marginal costs to find the split that minimizes total latency, and the total latency. Compare with the equilibrium.

Show answer

Marginal cost (x·ℓ(x))′ = ℓ + x·ℓ′: Route 1: 8 + x1/50, Route 2: 20 + x2/150.

Equalize: 8 + x1/50 = 20 + (4000 − x1)/150 → ×150: 1200 + 3x1 = 7000 − x1 → x1 = 1,450, x2 = 2,550.

x₁ / x₂ℓ₁ / ℓ₂ (min)total (car·min)
Equilibrium1,900 / 2,10027 / 27108,000
Optimum1,450 / 2,55022.5 / 28.5105,300

32,625 + 72,675 = 105,300. At the optimum the drivers on Route 2 are 6 min slower and would like to move to Route 1: the optimum is not an equilibrium. Selfish routing creates 2,700 car·min of extra delay.

Classic Question · Braess's paradox

Question 11: Braess's Paradox

2,500 cars travel from s to t. The routes s→A and B→t are narrow (x/50 min); A→t and s→B are wide (constant 60 min). (a) What is the equilibrium time without the A→B road? (b) After a 0-minute A→B road opens, what are the new equilibrium and time?

sABtx/506060x/500
Show answer

(a) By symmetry: 1,250 / 1,250 → each route takes 1,250/50 + 60 = 25 + 60 = 85 min.

(b) A single driver tries the zigzag (s→A→B→t): 25 + 0 + 25 = 50 < 85 → she switches. Since B→t takes at most 2,500/50 = 50 < 60, the zigzag is faster than the old routes in every case: everyone switches.

Everyone on the zigzag: 2,500/50 + 0 + 2,500/50 = 100 min. A driver who returned to an old route would take 50 + 60 = 110 min → nobody returns: the new Wardrop equilibrium.

A road was added and everyone lost 15 min (85 → 100). Closing A→B makes everyone faster.

Classic Question · Braess's paradox

Question 12: Braess: An Equilibrium with Split Traffic

In a Braess network (s→A, B→t: x/50; A→t, s→B: 60 min; A→B: 0) there are 3,500 cars. (a) What is the equilibrium time without A→B? (b) With A→B open, can everyone be on the zigzag? (c) In the new equilibrium, what are the zigzag flow (z) and the flow on each old route (y), and what is the time?

Show answer

(a) 1,750 / 1,750 → 35 + 60 = 95 min.

(b) Everyone on the zigzag: 70 + 0 + 70 = 140 min; a driver who returned to an old route would take 70 + 60 = 130 min → not an equilibrium.

(c) The flow on s→A and on B→t is y + z. Used routes must take equal time:

zigzag 2(y + z)/50 = old route (y + z)/50 + 60 ⇒ (y + z)/50 = 60 ⇒ y + z = 3,000.

Flow conservation 2y + z = 3,500 ⇒ y = 500, z = 2,500. Time: 60 + 0 + 60 = 60 + 60 = 120 min.

The paradox appears again: 95 → 120 min. This time some drivers stay on the old routes, but everyone's time grows by 25 min.

Classic Question · Rosenthal's potential

Question 13: Rosenthal's Potential

3 drivers; routes upper (s→A→t), lower (s→B→t), zig (s→A→B→t). Edge costs: ce(k) = 2k on s→A and B→t (k: number of users), 7 on A→t and s→B, 1 on A→B. Everyone starts on the upper route. Drivers 1, 2, 3 best-respond in that order (ties go to the first of upper, lower, zig). Track the costs and Φ at each move; find the equilibrium.

Show answer

Start: 3 users on s→A → 2 + 4 + 6 = 12, A→t: 7 × 3 = 21 → Φ = 33; everyone's cost is 6 + 7 = 13.

moveupperlowerzigchoiceΦ
D1 (13)137 + 2 = 96 + 1 + 2 = 9lower33 → 29
D2 (11)4 + 7 = 117 + 4 = 114 + 1 + 4 = 9zig29 → 27
D3 (11)117 + 6 = 134 + 1 + 6 = 11stays27

Each drop equals the mover's gain: 13 − 9 = 4, 11 − 9 = 2 (ΔΦ = ci(new) − ci(old)).

Round 2: D1 (lower, 11): upper 13, zig 6 + 1 + 4 = 11 → stays; D2 (zig, 9) is at the cheapest. Nobody can improve: pure Nash equilibrium (lower, zig, upper), costs 11, 9, 11; Φ = 27 (6 + 7 + 7 + 6 + 1).

Classic Question · Network formation games

Question 14: Network Formation, α = 3

n = 4 players, each link costs α = 3 (one player buys the link, everyone uses it). A player's cost is α·(links bought) + Σ distances. (a) Find the social cost of the star, the complete graph and the path; which is optimal? (b) Is the star in which the center buys all three links a Nash equilibrium? (c) Is the complete graph a Nash equilibrium?

Show answer

Social cost = α·(number of links) + sum of distances over all ordered pairs.

networklinkssum of distancessocial cost
star32·(3·1 + 3·2) = 189 + 18 = 27
complete graph612 · 1 = 1218 + 12 = 30
path 1–2–3–432·(1+2+3+1+2+1) = 209 + 20 = 29

(a) Since α = 3 > 2, the optimum is the star (27).

(b) A leaf gains only 1 in distance from a new link (1 < 3); dropping a link disconnects the network (distance ∞) → nobody deviates: the star is an equilibrium.

(c) The owner of a link who drops it saves 3 and her distance rises only by 1 (1 < 3) → a profitable deviation: the complete graph is not an equilibrium.

Classic Question · Efficiency and fairness

Question 15: Bandwidth Fairness

Two links each have capacity 1. Flow A uses both links, B and D use only link 1, C uses only link 2: xA + xB + xD ≤ 1, xA + xC ≤ 1. Find the allocations and their totals for (a) the largest total flow, (b) max-min fairness, (c) proportional fairness (maximizing the product of the shares, i.e. the sum Σ log xi). The derivative of log x is 1/x.

Show answer

(a) Shut A off: xB + xD = 1, xC = 1 → total 2, but A starves (xA = 0).

(b) Raise the shares equally: link 1 fills at 1/3 for A, B, D. The remaining flow C rises on link 2 to 1 − 1/3 = 2/3: (xA, xB, xC, xD) = (1/3, 1/3, 2/3, 1/3), total 5/3 ≈ 1.67.

(c) Both links are full: xB = xD = (1 − xA)/2, xC = 1 − xA. Maximize log xA + 3 log(1 − xA) + constant; since the derivative of log x is 1/x, set the derivative to zero: 1/xA = 3/(1 − xA) ⇒ xA = 1/4.

The allocation is (1/4, 3/8, 3/4, 3/8), total 7/4 = 1.75. A, which uses both links, gets the least but not zero; the total is higher than max-min and lower than the largest total flow.

Classic Question · Braess's paradox

Question 16: Which Road Should Be Closed?

A Braess network has 3,500 cars; s→A and B→t are narrow (x/50 min), A→t and s→B are wide (60 min), A→B takes 0 min. With all roads open the equilibrium time is 120 min (2,500 on the zigzag, 500 on each old route). (a) If exactly one of the five roads is closed, what is the new equilibrium time in each case? Which should be closed? (b) By how many car·min does total travel time fall? (c) At the equilibrium of the open network, if one more driver enters s→A, how many minutes of extra delay in total (x·ℓ′) does she impose on the other drivers on that road?

Show answer
closednew equilibriumtime
s→Aeveryone s→B→t60 + 70 = 130
B→teveryone s→A→t70 + 60 = 130
A→ts→A→B→t 3,000, s→B→t 50060 + 70 = 130
s→Bs→A→B→t 3,000, s→A→t 50070 + 60 = 130
A→B1,750 / 1,75035 + 60 = 95

(a) With A→t closed, let a be the flow on s→A: zigzag a/50 + 70, lower route 60 + 70; equality a/50 = 60 ⇒ a = 3,000; B→t carries 3,500 cars, 70 min. Only closing A→B lowers the time: 120 → 95 min.

(b) 3,500 × (120 − 95) = 87,500 car·min.

(c) s→A carries 3,000 cars, ℓ′ = 1/50: 3,000 × 1/50 = 60 min. The new driver ignores this; that is the externality.

Classic Question · Pairwise stability

Question 17: Pairwise Stability Calculation

n = 4, two-sided links (Jackson–Wolinsky): a link forms only if both sides want it, and either side can cut it. Benefit: 5 from each player at distance 1, 2.5 at distance 2, 1 at distance 3; each link costs each of its two endpoints 2. (a) Find the net payoffs and their total for the path (1–2–3–4), the cycle, the star and the complete graph. (b) Which are pairwise stable? (c) What makes this differ from the example in the slides (4 / 2.2 / 1)?

Show answer
networknet payoffstotalpairwise stable?
path6.5 / 8.5 / 8.5 / 6.530No: 1–4 gets added (+2, +2)
cycle8.5 (all)34No: a diagonal gets added (+0.5, +0.5)
star9 / 8 / 8 / 833No: two leaves form a link
complete graph9 (all)36Yes

(a) E.g. center 3·5 − 3·2 = 9, leaf 5 + 2·2.5 − 2 = 8.

(b) In the complete graph, a player who cuts a link saves 2 but loses 5 − 2.5 = 2.5: nobody cuts. Checking all 4-node networks, the only pairwise stable network is the complete graph; it also has the highest total.

(c) Cutting the distance from 2 to 1 is worth 5 − 2.5 = 2.5 > 2 (in the slides 1.8 < 2): the missing links benefit both endpoints.

Classic Question · Braess's paradox

Question 18: Atomic and Divisible Braess

Braess network: the delay on s→A and B→t equals the number of users (or the flow), on A→t and s→B it is a constant 6, on A→B it is 0. Routes: upper (s→A→t), lower (s→B→t), zig (s→A→B→t). (a) Divisible traffic, 6 units in total: find the Wardrop equilibrium and total latency without and with A→B. (b) Atomic game, 6 drivers: what is the equilibrium without A→B? With A→B open, is (upper 1, lower 1, zig 4) a Nash equilibrium, and what is the total cost? (c) In the atomic game, is the profile with everyone on the zig an equilibrium? Compare the two models.

Show answer

(a) Without A→B: 3 / 3, everyone takes 3 + 6 = 9, total 54. With A→B: everyone on the zig takes 12; upper or lower also takes 6 + 6 = 12 → Wardrop equilibrium, total 72.

(b) Without A→B: 3 / 3 is an equilibrium (a switcher would take 10 > 9), total 54. (1, 1, 4): upper 5 + 6 = 11, lower 11, zig 5 + 0 + 5 = 10. A driver on upper or lower who moves to the zig gets 11 (no gain); a driver on the zig who moves to upper or lower gets 11 > 10 → Nash equilibrium, total 62.

(c) Everyone on the zig: 12; a driver who moves to upper still gets 12 → this is also an equilibrium (72). With divisible traffic the equilibrium cost is unique (54 → 72); in the atomic game there are several equilibria (by script: 62, 67, 67, 72) and the paradox appears even at the best equilibrium (54 → 62).

The End

Chapter 8: Network Design and Routing · Study Questions
Lecture slides: Chapter 8: Network Design and Routing · Lecture notes
1 / 1 Sercan KÜLCÜ. All rights reserved.