Expand description
bitonic sort algorithm.
This sort works only if the length of the array is 2^N.
O(Nlog₂N)
Functions
- Sort in ascending order using a bitonic sort algorithm.
- It takes a comparator function to determine the order, and sorts it using a bitonic sort algorithm.
- Sort in descending order using a bitonic sort algorithm.