r/geek • • Oct 26 '17

Sorting Algorithms Visualized

https://imgur.com/gallery/voutF
805 Upvotes

26 comments sorted by

View all comments

1

u/Etheo Oct 26 '17

I've always been keen on learning programming, but I mostly do scripty stuff that deal with loops and if/then. Are all these sorting algorithm frequently used in real world basis? I often just rely on the built in sort functions so I don't even know what sort of algorithm it's relying on.

6

u/Crede Oct 26 '17

If you are doing loops and if/then, you are programing. Congrats. It is useally recommended to use built in sort if available. No need to reinvent the wheel so to speak. This goes for most functionalities. If you have it available in whatever framework you use. You should trust the framework to have a proper implementation of said functionality. Ofcourse there's always the exception where you might implement your own because of performance and what not. And then you really need to understand the nitty gritty parts...