Source: wikibot/sorting-network

= Sorting network
{wiki=Sorting_network}

A **sorting network** is a specialized hardware or algorithmic construct used to sort a finite sequence of numbers. It consists of a series of interconnections and comparators that can compare and swap pairs of values in a predetermined sequence. The main goal of a sorting network is to sort the input data efficiently, often utilizing parallel processing capabilities.