Comparisons are blue,
swaps are red.
…
Bitonic Sort is a classic parallel algorithm for sorting.
Although, the number of comparisons are more than that in any other popular sorting algorithm, It performs better for the parallel implementation because elements are compared in predefined sequence which must not be depended upon the data being sorted. The predefined sequence is called Bitonic sequence.
BITONIC SORTING
To sort a bitonic sequence using bitonic sorting using these steps −
Perfection is achieved not when there is nothing more to add, but rather when there is nothing more to take away.
…