How do I sort a list of 8 elements with sorting network?
for example given the list: 12,5,9,14,33,17,10,8
I know how to sort a list of 4 elements.. what is the rule to sort any list of n elements?
That depends on how you would like to sort it, different sorting algorithm may result in different network. You can check this wiki page about sorting network.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.