Pairwise sorting network

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The pairwise sorting network is a sorting network discovered and published by Ian Parberry in 19921 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)

Text derived from https://en.wikipedia.org/w/index.php?oldid=1313822723 under CC BY-SA 4.0; modifications have been made.

References

  1. ↩Wikipedia publication date (×1) · confidence 0.95 https://en.wikipedia.org/w/index.php?oldid=1313822723

Provenance

snapshot enwiki-001313822723 · captured 1759043058.0 · version history

Cite this page as: encyclopegia.org, “Pairwise sorting network”, snapshot enwiki-001313822723. https://encyclopegia.org/a/pairwise-sorting-network

Sources cited in this revision

Extracted from the cited revision's reference blocks; absent citations are not invented.