From Wakapon
Revision as of 12:22, 11 September 2015 by Patapom (talk | contribs) (Created page with "I wanted to write a short explanation about bitonic sort because it's simple as hell but no one does a good job at explaining it correctly. You can find the video explanation...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I wanted to write a short explanation about bitonic sort because it's simple as hell but no one does a good job at explaining it correctly.

You can find the video explanation here https://www.youtube.com/watch?v=GEQ8y26blEY but it's a bit tedious so to sum up the algorithm, here's what you need to know:

    • A bitonic sequence is a sequence of numbers that can be ordered as first ascending then descending (or the opposite)

For example: (1, 2, 3, 4) followed by (4,3,2,1) is bitonic.

    • The bitonic sort algorithm works in 2 parts:
      • (1) First, you need to transform any random sequence of numbers into a bitonic sequence
      • (2) Second, you can then sort the bitonic sequence in ascending order


And that is all there is to it! Now let's see how to execute the 2 parts of the algorithm.