Huh, this video is pretty neat. Apparently gcc uses Introsort, which is why I didn't recognize what was going on when std::sort came up. But bitonic sort definitely wins it for me. I mean, the numbers were sorted in the exact wrong order for half the time! Pretty neat stuff, really.
2
u/chadseibert Jun 07 '13 edited Jun 10 '13
Huh, this video is pretty neat. Apparently gcc uses Introsort, which is why I didn't recognize what was going on when std::sort came up. But bitonic sort definitely wins it for me. I mean, the numbers were sorted in the exact wrong order for half the time! Pretty neat stuff, really.