I don't know that there are algorithms everyone should know, more that there are algorithms everyone doing certain things should know - and even there the sorts of things you need to 'know' in order to 'know' an algorithm are very different.
Sedgewick is the classic foundation. Knuth if you are doing real computer science rather than software development. But then there are a bunch of different ways to go from there - parallel computing algorithms, distributed computing algorithms, database specialised algorithms, data processing algorithms, various algorithms that prioritise certain things that are not cpu processing time (memory, reliability, security, network utilisation, power consumption).
The day they release a Head First Data Structures & Algorithms will be the day I agree to teach a data structures and algorithms class... until then those classes will always be a friggin nightmare.
2
u/Vakieh Oct 24 '21
I don't know that there are algorithms everyone should know, more that there are algorithms everyone doing certain things should know - and even there the sorts of things you need to 'know' in order to 'know' an algorithm are very different.
Sedgewick is the classic foundation. Knuth if you are doing real computer science rather than software development. But then there are a bunch of different ways to go from there - parallel computing algorithms, distributed computing algorithms, database specialised algorithms, data processing algorithms, various algorithms that prioritise certain things that are not cpu processing time (memory, reliability, security, network utilisation, power consumption).
Both Sedgewick and Knuth are a bit of a slog though. You could go with Algorithm Design or Algorithm Design and Application, for a different kind of slog.
The day they release a Head First Data Structures & Algorithms will be the day I agree to teach a data structures and algorithms class... until then those classes will always be a friggin nightmare.