Comments on: CS Math books
http://ask.metafilter.com/183111/CS-Math-books/
Comments on Ask MetaFilter post CS Math booksSun, 10 Apr 2011 17:40:18 -0800Sun, 10 Apr 2011 17:54:07 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: CS Math books
http://ask.metafilter.com/183111/CS-Math-books
I am a GIS college student looking to develop my skills in programming, particularly in Python. For starters, I need to wake up my dormant math skills. What mathematics-for-programmers books, or general Computer Science books, should I be looking for? <br /><br /> Hey all, longtime mefi reader (lurker?) , first time poster.<br>
<br>
Anyway, I am a college student in the midwest USA currently working in the GIS department for a decent sized city. My internship and my college curriculum have made me aware that I need to develop my skills on the scripting side of things. <br>
<br>
That being said, I don't want to go with a narrow approach and read nothing but "Python for GIS" type articles. I have learned the hard way way that if you try to skip the foundational skills when trying to learn something technical, it just comes back to haunt you down the road. I am not trying to transition from GIS tech to full fledged Computer Scientist but I am an avid learner and want to strengthen my skills.<br>
<br>
I have not had a huge problem so far finding books on learning Python. I have just started going through <a href="http://www.amazon.com/exec/obidos/ASIN/1435455002/metafilter-20/ref=nosim/">Python for beginners</a>, and am liking it so far. I've also just ordered John Zelle's <a href="http://www.amazon.com/exec/obidos/ASIN/1590282418/metafilter-20/ref=nosim/">intro to CS using Python</a>. I'm having a harder time finding general into to CS books and math books relating to programming, specifically on the subjects of discrete and algebra. My school library has a lot of resources, and I've found a few good books, but mostly I'm just overwhelmed by the sheer amount of material.<br>
<br>
Many years ago when I first started college I did well in my algebra and pre-cal classes, but I'm feeling rusty. And regarding the CS stuff, some of the programming books I'm looking at are using phrases like "garbage collection" without any explanation. I understand the general idea of garbage collection but a paragraph or two would be nice. I don't need the concept of a CPU explained to me, but a book with a little elaboration on CS vocabulary would be helpful.<br>
<br>
I should probably say that I'm not looking for something like Knuth's <a href="http://www.amazon.com/exec/obidos/ASIN/0201558025/metafilter-20/ref=nosim/">Concrete Mathematics</a> . I browsed through it at my school's library- I was able to understand bits and pieces, but the rest might as well have been written in hieroglyphics. Many of the books in <a href="http://ask.metafilter.com/50269/What-books-should-be-on-my-personal-CS-degree-reading-list">this thread</a> seemed to be above what I'm looking for as well, but I found some of the recommendations useful.<br>
<br>
I've found some good online resources like MIT's open courseware, but I'd like to have some good textbooks. Thanks in advance.post:ask.metafilter.com,2011:site.183111Sun, 10 Apr 2011 17:40:18 -0800ajax287computerscienceprogrammingGISmathematicsalgebraBy: gregglind
http://ask.metafilter.com/183111/CS-Math-books#2635088
Also try Zed Shaw's book: <a href="http://learnpythonthehardway.org/wiki?name=Learn+Python+The+Hard+Way">Learn Python the Hard Way</a>.comment:ask.metafilter.com,2011:site.183111-2635088Sun, 10 Apr 2011 17:54:07 -0800gregglindBy: Monkey0nCrack
http://ask.metafilter.com/183111/CS-Math-books#2635103
I am using the <a href="http://oreilly.com/catalog/9781449380342/">C#</a> version of <a href="http://headfirstlabs.com/">Head First</a> and it is awesome. There is a <a href="http://oreilly.com/catalog/9780596808334/">2D geometry</a>, <a href="http://oreilly.com/catalog/9780596515775/">Rails</a>, <a href="http://oreilly.com/catalog/9780596514860/">Algebra</a>, <a href="http://oreilly.com/catalog/9780596102371/">Physics</a>, <a href="http://oreilly.com/catalog/9780596527587/">Statistics</a>, etc. There is also <a href="http://www.khanacademy.org/">Khan Academy</a> (all online, no textbook), which is quite good. And then there is <a href="http://www.cosmolearning.com/">Cosmo Learning</a>. <a href="http://www.metafilter.com/69408/learning-math-online">and ooohhh, blue...</a>comment:ask.metafilter.com,2011:site.183111-2635103Sun, 10 Apr 2011 18:26:59 -0800Monkey0nCrackBy: pwnguin
http://ask.metafilter.com/183111/CS-Math-books#2635182
I am a programmer working for a Midwest USA university (this is less exciting than it sounds). <br>
<br>
The one mathematics niche I would say most benefits programmers uniquely is called <a href="en.wikipedia.org/wiki/Discrete_mathematics">discrete math</a>, more specifically graph theory. Graph theory concepts underpin a lot of the logic behind systems level programs. As a rough first example, <a href="http://en.wikipedia.org/wiki/Tsort_%28Unix%29">tsort</a> "was initially written for providing an ordering of object files that allowed the linker to process them sequentially (each one exactly once, and in order). " Programmers rarely have to solve this problem themselves nowadays, but dependencies crop up everywhere in systems to build software.<br>
<br>
But a better example is your question about garbage collection. First off, if you just want a definition, nearly every term you can think of is documented on Wikipedia (<a href="http://en.wikipedia.org/wiki/Garbage_collection_%28computer_science%29">garbage collection</a>). To summarize, garbage collection determines which object instances (regions of memory -- completely different than objects above unfortunately) are still in use and which can be reclaimed. In order to do that, it needs to traverse the <em>graph</em> of object references, keep the ones your program can still find and discard the rest. <br>
<br>
If you've not taken calculus, I imagine that Concrete Mathematics book will look awfully confusing. Unlike CS terms in general, you probably don't know how to search for mathematical symbols you can't type on your keyboard. I don't either. MIT OCM has a CS Math course, but not videos. Khan academy doesn't yet cover this niche in mathematics. For what it's worth, here's is <a href="http://www.amazon.com/exec/obidos/ASIN/0471735078/metafilter-20/ref=nosim/">the newest edition</a> of the textbook I learned from. <br>
<br>
If you're looking for a discrete math lite, I'd suggest a book on Data Structures. Trees, linked lists and such are all derived from graph theory, and yet the subject, in my experience, doesn't assume familiarity with discrete/graph theory. As a bonus, you might have the prereqs to enroll in the class. No idea on python specific data structure textbooks.comment:ask.metafilter.com,2011:site.183111-2635182Sun, 10 Apr 2011 20:24:14 -0800pwnguinBy: ajax287
http://ask.metafilter.com/183111/CS-Math-books#2635220
Learn python the hard way looks to be a great resource, especially all the exercises in it, thanks gregglind.<br>
<br>
Monkeyoncrack: I had been looking at the Head First series in bookstores, wondering if they were any good or not. And the Khan Academy looks interesting, I hadn't heard of it before.<br>
<br>
And pwnguin, thanks for the discrete recommendations, I should say too that I definitely want books with exercises ( with solutions) in them. And wiki does have info on just about everything, its true.comment:ask.metafilter.com,2011:site.183111-2635220Sun, 10 Apr 2011 21:06:01 -0800ajax287By: Wemmick
http://ask.metafilter.com/183111/CS-Math-books#2635259
CS major here.<br>
<br>
As far as books go, you'll want to look for introductory books on algorithms, data structures, and maybe discrete math. The goal is to have functional understanding of basic algorithms, algorithmic complexity, and things like trees and hash tables. <br>
<br>
The standard textbook for algorithms is <a href="http://www.amazon.com/exec/obidos/ASIN/0262033844/metafilter-20/ref=nosim/">Introduction to Algorithms</a>, but it's more of a reference than a textbook to learn from. You may have better luck with a different text.<br>
<br>
For discrete mathematics, I learned from <a href="http://www.amazon.com/exec/obidos/ASIN/0201726343/metafilter-20/ref=nosim/">this one</a>, but I haven't compared it with any others.<br>
<br>
Really, most of my recommendations would be non-book. The standard texts are likely to be overly formal - my experience has been that the classroom is usually where the best explanations are.<br>
<br>
The <a href="http://aduni.org/courses/">ArsDigita University videos</a> are fantastic. Especially the ones with Shai Simonson, who covers much of what you're looking for.<br>
<br>
The <a href="http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/">MIT Abelson/Sussman lectures</a> are incredible too, but less immediately applicable - watch them when you're ready to rethink everything you think you know about programming. <a href="http://mitpress.mit.edu/sicp/full-text/book/book.html">SICP</a>, the book corresponding to the lectures is a classic.<br>
<br>
Consider trying some of the problems at <a href="http://projecteuler.net/">Project Euler</a>. They'll stretch your programming and math abilities, and they gradually increase in difficulty. Make sure to look at other people's solutions after you've solved a problem. There's a great deal you can learn from the techniques they use.<br>
<br>
For looking up terms, you could also try the Free Online Dictionary of Computing, aka <a href="http://foldoc.org/">FOLDOC</a>.comment:ask.metafilter.com,2011:site.183111-2635259Sun, 10 Apr 2011 21:56:13 -0800WemmickBy: devilsbrigade
http://ask.metafilter.com/183111/CS-Math-books#2635260
Stanford CS has some class recordings up on youtube. CS 106A/B and CS 107 are online (<a href="http://www.youtube.com/user/StanfordUniversity">http://www.youtube.com/user/StanfordUniversity</a>). 106A is probably a little bit too basic, but 106B and 107 would be useful. 106B is a good first look at data structures in a non-formal way, & 107 is a good look at different approaches to programming, which is super useful. CS 103 isn't online, unfortunately (it's the discrete math & intro to theory of computation class). For discrete math, I'd go with <a href="http://www.amazon.com/exec/obidos/ASIN/0495391328/metafilter-20/ref=nosim/">Epp's discrete math</a>, and for theory of computation, Sipser's <a href="http://www.amazon.com/exec/obidos/ASIN/0534950973/metafilter-20/ref=nosim/">Introduction to Theory of Computation</a>.<br>
<br>
In terms of algorithms, the standard is Cormen et al's <a href="http://www.amazon.com/exec/obidos/ASIN/0072970545/metafilter-20/ref=nosim/">Introduction to Algorithms</a> (usually referred to as CLRS). <br>
<br>
If you get into a lot of high performance computing stuff, a book on computer architecture would be useful for understanding what's going on under the hood, but the level of detail there isn't really necessary for most application-level coding. <br>
<br>
If you get into any number crunching, a book on scientific computing & numerical algorithms would be useful. <a href="http://www.amazon.com/exec/obidos/ASIN/0521880688/metafilter-20/ref=nosim/">This one</a> (code-based) and <a href="http://www.amazon.com/exec/obidos/ASIN/156881321X/metafilter-20/ref=nosim/">this one</a> (math-based) are two good choices.comment:ask.metafilter.com,2011:site.183111-2635260Sun, 10 Apr 2011 21:56:40 -0800devilsbrigadeBy: jillithd
http://ask.metafilter.com/183111/CS-Math-books#2635487
No book recommendations, just subjects that will be very helpful if you will be displaying anything on a screen:<br>
<a href="http://en.wikipedia.org/wiki/Linear_algebra">Linear Algebra</a><br>
<a href="http://en.wikipedia.org/wiki/Multivariable_calculus">Multivariable Calculus</a><br>
<br>
These will help you determine where on a screen to draw something and how to draw it.<br>
<br>
I'm guessing that with GIS you may be outputting maps, so that is why I am suggesting the above. :)comment:ask.metafilter.com,2011:site.183111-2635487Mon, 11 Apr 2011 06:55:31 -0800jillithdBy: jarekr
http://ask.metafilter.com/183111/CS-Math-books#2636788
The <a href="http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/video-lectures/">introductory programming course from MIT</a>, video lectures for which are available online, might be the ideal resource to learn the things I think you are talking about. It uses Python to teach fundamental Computer Science, including both the engineering skills (structuring your programs, debugging, testing) and the theoretical concepts (data structures, strategies for building effective algorithms). If you really master this material, you will surely be able to write substantial programs that are reasonably engineered.<br>
<br>
Then you can broaden your knowledge with other resources. Most courses/books of interest will tend to fall into one of two categories: Software Engineering and Computer Science. Software Engineering deals more with the pragmatics of dealing with code; reading some classic books like: "Refactoring", "Design patterns", "Pragmatic programmer", "Test driven development by example" etc. would help you a lot with this. I would recommend at least to learn to write unit tests for programs, it will save you a lot of frustration. Most of those things is relatively easy to learn and its usefulness is directly proportional to the size of the program you're writing.<br>
<br>
Computer Science, on the other hand, deals with computers, programs and problems as abstract entities, for example you will often see pseudo-code instead of Python code. It is less directly relevant to programming - it studies small, specific, isolated, hard problems that only from time to time are relevant in practice. So, if you're say building a social network kind of thing that's very popular right now, 90% of the time you will be doing user interface stuff, database queries etc. which doesn't require much theoretical background (also because the theory was already put into the DB servers). But as part of this social network thing, you might want to find the "friend path" between two persons. If you have a lot of users, you simply ain't going to do this if you aren't familiar with the theory studied in an algorithms course. A few easily understandable and practical recommendations here would be:<br>
<br>
- Robert Sedgewick has a sequence of two books teaching basic Computer Science to non-CS majors, stressing applications in the sciences: <a href="http://introcs.cs.princeton.edu/cs/">Introduction to Programming in Java</a> and <a href="http://algs4.cs.princeton.edu/home/">Algorithms</a><br>
<br>
- AdUni has a lot of good courses with video lectures that are targeted towards a beginner audience. I especially recommend the <a href="http://aduni.org/courses/discrete/index.php?view=cw">Discrete Mathematics</a> and <a href="http://aduni.org/courses/algorithms/index.php?view=cw">Algorithms</a> courses.comment:ask.metafilter.com,2011:site.183111-2636788Tue, 12 Apr 2011 05:05:13 -0800jarekrBy: ajax287
http://ask.metafilter.com/183111/CS-Math-books#2637233
So much good info here, thanks!<br>
<br>
I have bought a few of the books mentioned here and in other threads, like intro to algorithms and elements of programming. I don't expect them to be immediately useful but they look like great books to have and think about long-term. the 96 edition of SICP was at my library, looks good so far. <br>
<br>
On a side note - should I stick with IDLE as far as Python IDE's go? I like that I can customize the colors, staring into a white background has always felt for me like looking into a light bulbcomment:ask.metafilter.com,2011:site.183111-2637233Tue, 12 Apr 2011 10:44:53 -0800ajax287