DEV Community

Discussion on: Anatomy of a Bad Idea

Collapse
 
twof profile image
Alex Reilly

After I took my first programming course in college, I was convinced I was a genius and I was going to invent the best new sorting algorithm. That algorithm was SwapSort. SwapSort is 1078 lines long. SwapSort is an improvement on bubble sort and not much else.

github.com/twof/SwapSort/blob/mast...

Collapse
 
codemouse92 profile image
Jason C. McDonald

If you like sorting algorithms, Dual-Pivot Quicksort makes for an interesting case study.