Exercises

ex-ch21-01

Easy

State the max-flow min-cut theorem. What does it say about the capacity of a noiseless network for unicast?

ex-ch21-02

Easy

In the butterfly network with all unit-capacity edges, what is the multicast capacity (rate to both sinks simultaneously)? What is the maximum rate achievable by routing alone?

ex-ch21-03

Easy

Compute the max-flow from ss to tt in the following network:

  • sas \to a: cap 5, sbs \to b: cap 4
  • aba \to b: cap 2, ata \to t: cap 3
  • btb \to t: cap 6

ex-ch21-04

Easy

Why does network coding not help for unicast (single source, single sink) over noiseless networks?

ex-ch21-05

Easy

For a linear network code over Fq\mathbb{F}_q, what is the decodability condition at a sink that observes hh coded symbols with global coding vectors g1,,gh\mathbf{g}_1, \ldots, \mathbf{g}_h?

ex-ch21-06

Medium

Consider a network with source ss, three relay nodes r1,r2,r3r_1, r_2, r_3, and two sinks t1,t2t_1, t_2. All edges have unit capacity:

  • sr1,sr2,sr3s \to r_1, s \to r_2, s \to r_3
  • r1t1,r2t1,r2t2,r3t2r_1 \to t_1, r_2 \to t_1, r_2 \to t_2, r_3 \to t_2

(a) What is the multicast capacity?

(b) Design a linear network code over F3\mathbb{F}_3 that achieves it.

ex-ch21-07

Medium

Prove the weak inequality in the max-flow min-cut theorem: for any flow ff and any ss-tt cut (S,Sc)(S, S^c), fcap(S,Sc)|f| \leq \text{cap}(S, S^c).

ex-ch21-08

Medium

Show that for random linear network coding over Fq\mathbb{F}_q with KK sinks, the probability that all sinks can decode is at least (1K/q)E(1 - K/q)^{|E|} where E|E| is the number of edges.

ex-ch21-09

Medium

In a wireless network, nodes A and B want to exchange messages through a relay R. With traditional routing, this requires 4 time slots. Show that network coding reduces this to 3 time slots, and physical-layer network coding reduces it to 2.

ex-ch21-10

Medium

Consider an index coding problem with 3 receivers: receiver 1 wants W1W_1 and knows {W2}\{W_2\}, receiver 2 wants W2W_2 and knows {W3}\{W_3\}, receiver 3 wants W3W_3 and knows {W1}\{W_1\}.

(a) Can a single broadcast of W1W2W3W_1 \oplus W_2 \oplus W_3 satisfy all receivers?

(b) What is the minimum number of broadcasts needed?

ex-ch21-11

Medium

Show that for a single-source multicast with K=2K = 2 sinks, a linear network code over F2\mathbb{F}_2 (binary) always suffices.

ex-ch21-12

Hard

Prove that the multicast capacity of a single-source network is at most minkmincut(s,tk)\min_k \text{mincut}(s, t_k) using an information-theoretic argument (entropy bounds), not a graph-theoretic argument.

ex-ch21-13

Hard

Give an example of a network where the cut-set bound for two-unicast is not tight (i.e., the achievable rate region is strictly smaller than the cut-set bound).

ex-ch21-14

Hard

Implement the Ford–Fulkerson algorithm for the following network and trace each augmenting path:

  • sas \to a: 10, sbs \to b: 8
  • aba \to b: 5, aca \to c: 7
  • bcb \to c: 3, btb \to t: 9
  • ctc \to t: 10

ex-ch21-15

Hard

Show that the Dougherty–Freiling–Zeger (2005) result implies that for some multi-source network coding problems, the achievable rate region over F2\mathbb{F}_2 is strictly smaller than the achievable region over larger fields, even with nonlinear coding over F2\mathbb{F}_2.

(This is a proof-by-example exercise: describe the Matroid port construction and explain why it requires q3q \geq 3.)

ex-ch21-16

Hard

Consider a content distribution network with a server holding N=4N = 4 files and K=4K = 4 users, each caching M=1M = 1 file. During the placement phase (before requests are known), each user caches one distinct file: user kk caches file WkW_k.

During the delivery phase, each user requests a different file: user 1 wants W2W_2, user 2 wants W3W_3, user 3 wants W4W_4, user 4 wants W1W_1.

(a) How many uncoded transmissions are needed?

(b) Show that coded delivery (XOR) reduces the number of transmissions.

ex-ch21-17

Challenge

(Research-flavored) The connection between network coding and index coding (El Rouayheb–Sprintson, 2010) shows that any network coding problem can be reduced to an index coding problem. Explain this reduction for the butterfly network: formulate the butterfly multicast problem as an index coding instance and verify that the optimal index code achieves rate 2.

ex-ch21-18

Challenge

(Open-ended) Discuss the practical impact of network coding after 25 years of research (2000–2025). Consider:

(a) Which applications have adopted network coding in practice?

(b) What are the main barriers to wider adoption?

(c) How does coded caching (Chapter 27) relate to network coding?

(d) Is the gap between theory and practice closing or widening?