← All papers
First page of Undirected Multiple-Unicast Network Coding and Faster External-Memory Integer Sorting

Undirected Multiple-Unicast Network Coding and Faster External-Memory Integer Sorting

Baochun Li, Zongpeng Li, Sirui Liu

cs.DS Oct 14, 2026 · v4 cs.CC cs.IT
The sorting algorithm's correctness and I/O complexity bound, plus the finite circuit checks, are formally verified in Lean 4, with a public repository.
In undirected multiple-unicast networks, where independent messages are sent between specified source-destination pairs, network coding allows intermediate nodes to combine messages, whereas fractional routing splits and forwards individual messages along paths without mixing them. Proposed in 2004 by Li and Li and independently by Harvey, Kleinberg, and Lehman, the multiple-unicast conjecture—long a central open problem in network coding with deep connections to computational complexity—asserts that network coding and fractional routing have the same achievable rate region. We construct a counterexample refuting this conjecture and use it to reduce block transfers in external-memory data rearrangement, thereby accelerating external-memory integer sorting and answering in the affirmative the longstanding question of Aggarwal and Vitter (1988) on whether integer operations can beat the comparison-sorting input/output (I/O) bound. Specifically, we give a deterministic sorting algorithm: for $N$ integers of $Θ(\log N)$ bits, a memory holding $M$ integers, and block transfers of $B$ integers, where $2B\le M\le N$, the number of block transfers is $$O\!\left(\frac{N}{B}\left[1+\frac{\log N}{(\log(M/B))^{1-\varepsilon}(\log M)^\varepsilon}\right]\right),$$ where $\varepsilon=1.5\times10^{-5}$ is an absolute constant. This bound asymptotically improves on the classical $Θ\!\left(\frac{N}{B}\left[1+\frac{\log(N/M)}{\log(M/B)}\right]\right)$ comparison-sorting bound in certain parameter regimes. Under the external-memory model specified in this paper, we have formally verified the algorithm's correctness and I/O complexity bound in Lean 4. Our reduction is independent of the address-field interchange construction. Using the one from recent work on multitape integer multiplication gives the bound for every fixed $0<\varepsilon<1/2$, with an $\varepsilon$-dependent constant.

The multiple-unicast conjecture says network coding and fractional routing achieve the same rate region in undirected networks. Aggarwal and Vitter (1988) asked whether integer operations can beat the comparison-sorting I/O bound in external memory. Both questions have been open for a long time.

The authors build a finite XOR circuit that gives a counterexample to the conjecture: its coding rate is 1, while fractional routing is bounded below 1. The same circuit speeds up binary address-field interchange in external memory. Columnsort reduces global data movement to a constant number of such interchanges and scans, and radix partitioning extends local sorting to arbitrary input sizes. Correctness and the I/O bound are machine-checked in Lean 4.

A deterministic external-memory integer sort is obtained using O((N/B)[1 + log N / ((log(M/B))^{1-ε}(log M)^ε)]) block transfers with ε=1.5×10^-5. This improves on the comparison bound in some parameter regimes. The routing rate is bounded by 1−33/338432, strictly below the coding rate of 1.

Input sizeClassical comparison sortingThis work
N=B^2Θ(B log B)O(B (log B)^{1-ε})
N=B^3Θ(B^2 log B)O(B^2 (log B)^{1-ε})
I/O cost comparison with M=2B