Four-wire avoidance in sorting networks
Meng's four-wire test keeps only the shortest reversal networks whose induced word on every set of four wire labels avoids \(123212,321232,212321,232123\). For \(n\ge3\) wires, put \(m=n-2\) and \(N=\binom n2\). Form a directed adjacency matrix \(T_m\) on \(m\)-bit strings. Its moves are leftmost \(1\to0\), rightmost \(0\to1\), and any adjacent \(01\to10\). Let \(R_m\) reverse the order of the bits and complement them. The count of individual reduced reversal words is \[\operatorname{tr}(T_m^N R_m). \] For \(n=1,2\) the count is one. The transfer tracks successive orientations of the generator path using the signs of adjacent height differences. Every allowed reflection raises the total height by two, so the fixed length \(N\) restores the height information omitted from the bits and enforces the reversal endpoint. Individual words determine their own starting orientation. The commutation-class count, a separate count that identifies words differing by commuting independent swaps, is \(2^{n-2}\) for \(n\ge2\). Meng, §6.3, PDF p. 18
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24665869
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint