How important is it for a programmer to know how to implement a QuickSort/MergeSort algorithm from memory?

Posted by John Smith on Programmers See other posts from Programmers or by John Smith
Published on 2012-10-06T22:38:48Z Indexed on 2012/10/07 9:51 UTC
Read the original article Hit count: 243

Filed under:
|

I was reviewing my notes and stumbled across the implementation of different sorting algorithms.

As I attempted to make sense of the implementation of QuickSort and MergeSort, it occurred to me that although I do programming for a living and consider myself decent at what I do, I have neither the photographic memory nor the sheer brainpower to implement those algorithms without relying on my notes. All I remembered is that some of those algorithms are stable and some are not. Some take O(nlog(n)) or O(n^2) time to complete. Some use more memory than others...

I'd feel like I don't deserve this kind of job if it weren't because my position doesn't require that I use any sorting algorithm other than those found in standard APIs. I mean, how many of you have a programming position where it actually is essential that you can remember or come up with this kind of stuff on your own?

© Programmers or respective owner

Related posts about algorithms

Related posts about jobs