Function ADS::bitonicNetwork

Function Documentation

inline std::vector<Comparator> ADS::bitonicNetwork(std::size_t n)

the bitonic sorter for n items

Pre:

n is a power of 2, or 0

Post:

each comparator joins two distinct places below n