Lurker News
I'm relatively new to CS (4 years) and I've seen a lot of great book recommendations here. But every discipline has it's most fundamental books ... e.g. philosophy -> Socrates, Plato, Aristotle, civil law -> code civil, christianity -> bible, etc. one should read to get a truly deep understanding.

What are those books for CS?

Comments (192) 79 threads

reacweb4 replies#
Structure and Interpretation of Computer Programs (), Introduction to Automata Theory, Languages and Computation (Hopcroft Ullman), don knuth's art of computer programming, Tanenbaum's Modern Operating Systems, Compilers: Principles, Techniques, and Tools5 (Aho Sethi Ullman)
einpoklum5 replies#
While "The Art of Computer Programming" is a great book, it's not a fundamental book. I'd say it's more of a re-distillation plus some of Knuth's personal take on things.

Also, I'd add, at least:
Introduction to Algorithms / Cormen, Leiserson & Rivest (and recently also Stein)

javajosh1 reply#
>While "The Art of Computer Programming" is a great book, it's not a fundamental book

Agreed. It's very much like "Feynman's Lectures" in this way.

physicsyogi#
Feynman's Lectures are great for understanding conceptually, but they don't teach you what you need to know to solve research problems. Some of what's in TAOCP is directly applicable to research (for example, the combinatorics part).
probinso#
If you are going to choose Socrates for philosophy and bible for Christianity, its inline for "The Art of Computer Programming" for Computer Science

There are much better resources for philosophy and Christianity, fundamental \neq best

TimTheTinker1 reply#
If by "fundamental" you mean "original research" then yes - a lot of Knuth's content is re-distillations on original research.

On the other hand, Knuth has an incredible capacity to read, interpret, understand, and especially apply and expand the contents of research papers -- far beyond the capacity of nearly anyone else.
So if you want to spend a lot of time reading through ACM and IEEE journals, have fun. But you'll understand the research and be able to apply it far better when helped by Knuth.

einpoklum#
I mean it doesn't serve as the fundament, as the basis, of most people's knowledge and understanding of Computer Science, or of programming.

By the way - the same goes for Graham-Knuth-Patashnik's Concrete Mathematics.

ykevinator#
Clr is probably the bible
stiff#
Knuth is one of the founders of analysis of algorithms as an academic discipline and the original publication of TAOCP played a role in founding the field.
amelius1 reply#
The "searching" volume of The Art of computer programming seems a bit outdated, though, in this age of search engines.
e12e2 replies#
How so?
amelius1 reply#
Well, it obviously doesn't describe PageRank, and all the subsequent techniques that are being used by search engines, including techniques from natural language processing.

Retrieving data is a lot different now than what it was back in the 70s and 80s.

Continue this thread — 1 reply

todd8#
I read Knuth's Volume 3, Searching and Sorting back in the 70's when I was a new grad student, it's great.

I now own the second and latest edition of this volume, but it is now over 20 years old. I recommend all of Knuth's publications.
Is Search and Sorting dated? Well, it is quite old. The fold out chart of tape merging patterns for different tape based sorting algorithms doesn't really come up very often anymore. It's been over 40 years since I've had to write programs that worked with mainframe tape drives.
Although AVL trees are covered well, there is no coverage of red-black trees or splay-trees.
Hashing is covered extensively, but there is no discussion of more modern hash table methods (like Cuckoo Hashing or Robin Hood Hashing or the power of choice results).
Furthermore, the basic hardware model used by Knuth in volume 3 assumes uniform costs for memory access. Cache sensitive algorithms aren't considered in volume 3 but are very important today.
Even quicksort, which I learned by studying Volume 3, now has what I consider to be a more modern treatment in Sedgewick and Wayne's Algorithms, 4th Ed.

webreac1 reply#
I agree with you, but Tanenbaum's is more fundamental in the sense that it inspired Linus to create Linux.
vips7L#
I thought he did that with the Minix book not Modern Operating Systems?
jammygit#
I found tanenbaums book to be incredible, personally
jammygit#
What is it that makes each fundamental?
omarhaneef2 replies#
CS is such a wide field, I think that fundamental texts mean different things to different people. These are some examples of various CS verticals (from off the top of my head), and each has canonical texts:

For instance, there is a whole subset devoted to turing machines, the halting problem, finite state machines, provability, incompleteness, the set of all sets, diagonalization proofs etc
There is a whole subset devoted to programming languages: computational complexity, reducing the time spent in loops, and so on.
Then there is a whole bunch spent on best practices: git and other version control, review, commenting style.
Then there is this actual thing called programming: learning different languages, arguing when functional is better than object oriented, please build a web server in prolog as an exercise, and so on.
Then there is a bunch about operating systems, and where the hardware meets the software, and garbage collection, and parsing and all that stuff.
Then databases are their own thing: boyce-codd normal form, ACID properties, is the web a database? how do you prove the ACID properties? Distributed databases, and B-trees time for storage and retrieval.
These are just various sort of "verticals".
I myself like to think of it in terms of specializations: data science/machine learning is one, web apps are another, mobile apps are another and so on. Each specialization depends on what useful thing you are trying to achieve.

crimsonalucard#
There are various verticals. But of all these verticals there are roots.

Sort of like how Set theory and Category theory make up the fundamental basis of all math, the fundamentals of computer science are encoded within your first example:
>For instance, there is a whole subset devoted to turing machines, the halting problem, finite state machines, provability, incompleteness, the set of all sets, diagonalization proofs etc

bo10242 replies#
CS is like math, not philosophy -- the fundamental ideas are gradually refined by a community, and eventually someone puts them into a book. Usually there are many books and people have different favorites.

So the closest parallels are original research papers like Turing's and Shannon's; but you're probably better off reading more recent textbooks.
That said, to balance out the heavy emphasis on programming and engineering books here, some recommendations:
- Sipser. Introduction to the Theory of Computation.
- Russell, Norvig. AI: A Modern Approach.
- For algorithms I don't have a preference. There is Dasgupta-Papadimitriou-Vazirani; Cormen-Leisersen-Rivest-Stein; Kleinberg-Tardos; and more.
A bit farther from core CS, I also like:
- Cover, Thomas. Elements of Information Theory.
- Li, Vitanyi. An Introduction to Kolmogorov Complexity and Its Applications

einpoklum1 reply#
Some of these are quite fundamental but not very popular. Which is good, because people forget those. I'm not much of a Sipser guy but maybe it's because they didn't use it at my alma mater when I took my Theory of Computation and Automata courses.
sixstringtheory2 replies#
Sipser was the one my alma mater used, so if you could, please post the one you used! I’d be interested in an alternative.
goric#
Hopcroft, Motwani, and Ullman's Introduction to Automata Theory, Languages, and Computation by is another classic text

Continue this thread — 2 replies

kingkongjaffa5 replies#
Mathematics has a linear progression though.

You need to know numbers and simple algebra to tackle trig, you need to know all that to tackle calculus or linear algebra, you need to know those to tackle differential equations.
I would argue CS is closer to philosophy.
Sure you have programming building blocks like variables, loops, conditionals, objects blah blah.
But you quickly head into patterns and conventions that started out as someones opinion on how things should be set up, rather than some fundamental principle.

spott#
>Mathematics has a linear progression though.

Mathematics has a linear progression... up until the point at which it branches out into the various subfields.

TheRealPomax#
Not once you become an actual scholar of Mathematics. Then it's very much a tree of fields in terms of "what begot what", and at the level of theorems, not even a tree but a graph with a huge number of interconnections in which "one thing coming before the other" doesn't even make sense to talk about.
beagle3#
Mathematics has a (mostly linear) historical progression, not logical progression.

It very often happens that the shortest, simplest derivation is discovered a century after the original discovery.
E.g. if you define exp(x) as \sum_0^\inf \frac{x^n}{n!}, a crazy amount of things that (historically) took a lot of effort to derive, become exceptionally simple and straightforward.
Now, historically, it didn't make sense to define it that way (especially because limits and infinite sums were only rigourously defined much later). But complexity wise, it is much simpler to first define limits and only then the exponent as an infinite sum.
> But you quickly head into patterns and conventions that started out as someones opinion on how things should be set up, rather than some fundamental principle.
That's not computer science. That is indeed philosophy, specifically software engineering philosophu. Science, it is not.

graemeo#
There was at least one famous mathematician that lamented this view and state of mathematics & mathematics education:

"The acceleration of the curriculum has had its cost: there has been an accompanying trend to prune away side topics. When I was in high school, for instance, it was standard to study solid geometry and spherical geometry along with plane geometry. These topics have long been abandoned. The shape of the mathematics education of a typical student is tall and spindly. It reaches a certain height above which its base can support no more growth, and there it halts or fails."
source: William Thurston - Mathematical Education https://arxiv.org/pdf/math/0503081.pdf

bo1024#
A cool thing about CS is how many different perspectives there are on it. I think you are coming more from the programming or software engineering perspective, which I agree is more art than science at this point in history. I'm thinking more on the theoretical side.
qntty1 reply#
Structure and Interpretation of Computer Programs is frequently recommended here. I would especially recommend understanding section 3.2, which I've found very helpful for understanding the environment model of other languages.

Computer Systems: A Programmer's Perspective has a lot of good explanations of hardware/os subsystems that can be hard to find detailed explanations of elsewhere. I especially like the sections on virtual memory.

srijanshetty2 replies#
The interesting bit is that the original author's no longer feel that SICP is the right way to approach programming any more. In their words, we've moved to 'programming by poking' and hence the latest incarnation of the course uses python and not LISP.
afarrell#
I believe you're referring to the fact that MIT's intro class for EECS was changed from scheme to python. This was not a translation but instead the intro curriculum as a whole was re-designed. 6.01 isn't really an incarnation of 6.001. It does reflect a "programming by poking" approach in that it does not try to have the students build their understanding from a set of core axioms. Instead, students add/modify code within an overall framework. I took 6.01 in the fall of 2008 and found that this it less feels conceptually satisfying but does indeed bear a closer resemblance resemble real-life programming. https://ocw.mit.edu/courses/electrical-engineering-and-compu...

I never took the original 6.001, so my comparison point is actually a stripped-down reincarnation of the original course which is taught by alumni volunteers during the January IAP term. http://web.mit.edu/benmv/6.001/6.184/website/

bachmeier#
"The interesting bit is that the original author's no longer feel that SICP is the right way to approach programming any more."

I think it's more accurate to say that they didn't see a reason to require engineers to learn CS. The class is now completely different. Why python? Not because it's a good programming language, but because there was a library the students could call to control a robot, which was the new goal of the class, not programming.
Here's the quote:
You have to do basic science on your libraries to see how they work, trying out different inputs and seeing how the code reacts. This is a fundamentally different job, and it needed a different course.
So the good thing about the new 6.001 was that it was robot-centered — you had to program a little robot to move around. And robots are not like resistors, behaving according to ideal functions. Wheels slip, the environment changes, etc — you have to build in robustness to the system, in a different way than the one SICP discusses.
And why Python, then? Well, said Sussman, it probably just had a library already implemented for the robotics interface, that was all.
https://www.wisdomandwonder.com/link/2110/why-mit-switched-f...

Load more comments