Pairwise sorting network
The pairwise sorting network is a sorting network discovered and published by Ian Parberry in 1992 in Parallel Processing Letters. The pairwise sorting network has the same size (number of comparators) and depth as the odd–even mergesort network. At the time of publication, the network was one of several known networks with a depth of O(\log^2 n) . It requires n(\log n)(\log n - 1)/4 + n - 1 comparators and has depth (\log n)(\log n + 1)/2 . The sorting procedure implemented by the network is as follows (guided by the zero-one principle): # Sort consecutive pairwise bits of the input (corresponds to the first layer of the diagram) # Sort all pairs into lexicographic order by recursively sorting all odd bits and even bits separately (corresponds to the next three layers of 2+4+8 columns of the diagram) # Sort the pairs in nondecreasing order using a specialized network (corresponds to the final layers of the diagram)
The pairwise sorting network is a sorting network discovered and published by Ian Parberry in 1992 in Parallel Processing Letters. The pairwise sorting network has the same size (number of comparators) and depth as the odd–even mergesort network. At the time of publication, the network was one of several known networks with a depth of O(\log^2 n) . It requires n(\log n)(\log n - 1)/4 + n - 1 comparators and has depth (\log n)(\log n + 1)/2 . The sorting procedure implemented by the network is as follows (guided by the zero-one principle): Sort consecutive pairwise bits of the input (corresponds to the first layer of the diagram) Sort all pairs into lexicographic order by recursively sorting all odd bits and even bits separately (corresponds to the next three layers of 2+4+8 columns of the diagram) Sort the pairs in nondecreasing order using a specialized network (corresponds to the final layers of the diagram)
References
No reference rows published for this article.
Cite this article
MLA
"Pairwise sorting network." encyclopegia.org, 2025, https://encyclopegia.org/wiki/pairwise-sorting-network. Accessed 25 November 2026.
Chicago
"Pairwise sorting network." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/pairwise-sorting-network.
APA
encyclopegia.org. (2025). Pairwise sorting network. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/pairwise-sorting-network
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| publication date | 1992 | Wikipedia |