News for hackers. Stuff that matters.
Re:Mathematics for Computer Science by cdelahousse on Thursday April 02, 2015 @04:24PM (#9312964)
Oh man. This course brings back so many memories of suffering through this material. But I can't emphasize how important this stuff is to know if you want to know anything significant in Computer Science.

What helped me ace the the exam was doing a hundreds of problems. I couldn't answer them most of the time, so I'd need an answer key nearby to get unstuck.

Drill, drill, drill. Just like you'd expect to drill for calculus, you can drill for this class.

What I found helpful was Rosen's "Discrete Mathematics and Its Applications". The material wasn't the best, but the problems are excellent. You can buy an older edition of the book and its solution manual for next to nothing on used book sites like abebooks.com

Re:Mathematics for Computer Science by georgehm on Friday April 03, 2015 @12:08AM (#9314376)
> I couldn't answer them most of the time, so I'd need an answer key nearby to get unstuck.

This happens with a lot of books out there. It would have been great if the authors of MCS gave solutions for at least some select questions.

Re:Mathematics for Computer Science by UUMMUU on Thursday April 02, 2015 @01:35PM (#9312107)
I know it's not related to this but if anyone has not watched the Linear Algebra lectures by Gilbert Strang of MIT. They are definitely worth a look as a strong foundation in Linear Algebra never hurt anyone. (http://web.mit.edu/18.06/www/videos.shtml)

Also available on iTunes U.

Re:Mathematics for Computer Science by tariqr on Thursday April 02, 2015 @02:18PM (#9312439)
[Demo] There is also collection of Gilbert Strang lectures here: http://classmill.com/jennathompson/introduction-to-algebra - You'd have to login to watch the whole series, but lets you mark lectures as "done", ask questions, and track progress etc..
Re:Mathematics for Computer Science by Niksko on Thursday April 02, 2015 @11:08PM (#9314256)
Thanks for the resource. I never really paid attention when I took linear algebra, and I've always regretted it since it seems to rear it's head everywhere.
Re:Mathematics for Computer Science by UUMMUU on Friday April 03, 2015 @08:53AM (#9315562)
I was the same way. I went through it thinking it was very abstract and had no real application. It wasn't until after that I realized it was basically used (in some way/shape/form) everywhere.
Re:Mathematics for Computer Science by cdelahousse on Thursday April 02, 2015 @04:03PM (#9312831)
If some of you feel a bit overwhelmed with the material, you may be well served by watching the first few lecture's of the following playlist:

https://www.youtube.com/channel/UCG96LXNYz9x7eTqSRtQ2R9A

It is Carleton University's freshman/first year Discrete Structures/Math course (COMP1805). They cover a lot of the same material, but at a more leisure pace and assume a lot less background.

Re:Mathematics for Computer Science by cdelahousse on Thursday April 02, 2015 @04:09PM (#9312866)
Looking over the second part of the MIT course, I see that a lot of the same material is covered in this free textbook.

http://cglab.ca/~michiel/DiscreteStructures/

Re:Mathematics for Computer Science by farresito on Thursday April 02, 2015 @02:00PM (#9312314)
The reading material is fantastic. If anyone wants a more recent version of it, here's the link:

https://courses.csail.mit.edu/6.042/spring15/mcs.pdf

Re:Mathematics for Computer Science by discardorama on Thursday April 02, 2015 @02:14PM (#9312403)
That's not just "reading material" ... it's a frigging 1000-page book! :-D
Re:Mathematics for Computer Science by farresito on Thursday April 02, 2015 @03:15PM (#9312553)
It all started with a 300 page reading notes, which, in my opinion, is pretty long already, but, boy, 1000 pages is a lot indeed :).
Re:Mathematics for Computer Science by mjcohen on Friday April 03, 2015 @02:27AM (#9314606)
Easier to search than the videos.
Re:Mathematics for Computer Science by dxbydt on Thursday April 02, 2015 @04:48PM (#9313120)
Indicator RVs are introduced on p738 & used all over the book. But on p788, he proves Markov without mentioning indicators. Typically, you create an indicator for the (R>=x) event, compute its expected value & voila Markov! Somewhat atypical.
Re:Mathematics for Computer Science by alphazerozero on Thursday April 02, 2015 @02:13PM (#9312396)
Are there companion solutions for the problem sets available anywhere?
Re:Mathematics for Computer Science by farresito on Thursday April 02, 2015 @03:15PM (#9312547)
Re:Mathematics for Computer Science by enjoylife on Thursday April 02, 2015 @04:48PM (#9313118)
Seems like you need a MIT certificate.
Re:Mathematics for Computer Science by farresito on Thursday April 02, 2015 @06:00PM (#9313471)
That's unfortunate. Oh well...
Re:Mathematics for Computer Science by ralmidani on Thursday April 02, 2015 @02:19PM (#9312447)
Thanks for that link! It looks like it was just updated today.
Re:Mathematics for Computer Science by dnissley on Thursday April 02, 2015 @03:46PM (#9312730)
I've been trying to self-study mathematics since around the new year. I initially tried following this course, but with only a background of high school math through precalculus I found this to be overwhelming.

So after a bit of research I decided to start working my way through "How to Prove It" by Velleman, which has introduced me to many of the concepts that seem to be pre-requisites for this course: set theory, logic, proof strategies, etc.

Re:Mathematics for Computer Science by bargl on Thursday April 02, 2015 @04:02PM (#9312819)
I did something similar last year with Statistics and Probability. The best place I've found for a linear course for online math is https://www.khanacademy.org/

I was able to start at the beginning and get all the necessary math to actually step forward to some of the more complex courses. I'd suggest starting there.

Re:Mathematics for Computer Science by dnissley on Thursday April 02, 2015 @04:11PM (#9312888)
I did start there actually. As much as I love Khan Academy there are lots of holes and the quality/thoroughness of video explanations really seem to drop off the further along you go.

To me they were most useful when I just needed a refresher on the precise operations to go through in order to solve a particular kind of problem, but already understood it. It's hard to beat a textbook for learning material that is completely new to me.

Re:Mathematics for Computer Science by jonnybgood on Thursday April 02, 2015 @05:31PM (#9313354)
This may also help you if you're going the autodidactic route:

http://hbpms.blogspot.com/

Re:Mathematics for Computer Science by nsfmc on Friday April 03, 2015 @12:48AM (#9314443)
Hi there and congrats on working through this course. Most students coming into this class are learning all the formalized truth table/mappings/isomorphism/etc stuff for the first time. I took this class after having failed a course in Real Analysis and ended up appreciating it not so much as a math class but as a good intro to how to think about Theoretical Computer Science.

Looking back at the psets, i think it's actually worth looking at them in reverse order just to not get too discouraged: the class ends on some number theory and begins with the Relation/Axiom/Set/Sequence stuff you see in early high level math classes. Some of that number theory/counting stuff is incredibly accessible from the outset, so the class doesn't just get monotonically more obtuse.

That said, if you've worked through vellman and you finish up this class, you're more than ready to do a class in proper number theory, discrete math or even real or complex analysis. Somebody else said that this course was a prereq for clrs, it is sort of, but you could take them both concurrently if you had to, as clrs doesn't have such a strong focus on proofs (if you're interested, 6.045j is a good followup in automata/computability/etc, lots of regexes, state machines and turing machines)

anyhow, i just want to say that it's ok if you don't get it all at once. i think i ended up seeing lots of these ideas two or three times in a variety of classes. probably the first time i was just mechanically spitting out proofs without understanding them. by the third time i came across them, they actually clicked for me. But there was value (for me at least) to exposure early on because you do know the things that are hazy and it's easier to dive deeper on those the next time you encounter them.

have fun!

Re:Mathematics for Computer Science by cdelahousse on Thursday April 02, 2015 @03:57PM (#9312796)
Learning those topics will not be a waste of time. You'll see them come up time and time again on your path towards more CS topics.
Re:Mathematics for Computer Science by kaens on Friday April 03, 2015 @03:34AM (#9314758)
"Concrete Mathematics" by Knuth is by far the best presented book on maths relevant to CS that I've seen. You could definitely work through it with your background (I did with a similar background), it's challenging but approachable.
Re:Mathematics for Computer Science by cgag on Thursday April 02, 2015 @04:04PM (#9312838)
I'm working through that as well, it's excellent.
Re:Mathematics for Computer Science by carlsednaoui on Thursday April 02, 2015 @04:55PM (#9313149)
I'm looking to gain the math foundation needed do inch my way towards data science. Could anyone on HN recommend a good path to take? For simplicity's sake, imagine my math level is 0.

Also, curious to know if anyone has good book suggestions or places with practice problems.

Edit: This is the best list I've been able to find so far http://datasciencemasters.org/#math

Re:Mathematics for Computer Science by hevelvarik on Thursday April 02, 2015 @05:04PM (#9313209)
I am self-teaching myself mathematics for a few years now and will suggest the following: Algebra and Trig, a subset of which is known as pre-calc. Don't short yourself on this because it is basic and you don't want to be struggling with it at the same you are struggling with the higher level stuff. I cannot recommend Sheldon Axler's Algebra and Trigonmetry highly enough. After much searching I found that and have been through it 3 times.

Next Calculus: I recommend Gilbert Strang's text book which will take you through what in uni is called Caculus 3, 1 being intro, 2 being differential and 3 being integral. I in the midst of this book and so can't speak to further but my plan is to move onto Strang's linear Algebra. After that, where to go depends on particular interest but leaving any of that out, in my opinion, will just handicap your further studies. Moder education does a lot of things wrong but the standard math sequence in use everywhere isn't one of them imo.

Re:Mathematics for Computer Science by carlsednaoui on Thursday April 02, 2015 @05:22PM (#9313311)
Re:Mathematics for Computer Science by Enzolangellotti on Thursday April 02, 2015 @06:46PM (#9313634)
In addition, get Israel Gelfand's books (http://gcpm.rutgers.edu/books.html).
Re:Mathematics for Computer Science by hevelvarik on Thursday April 02, 2015 @05:53PM (#9313451)
Sure :)

They are.

Re:Mathematics for Computer Science by impendia on Thursday April 02, 2015 @11:18PM (#9314285)
Epp's Discrete Mathematics with Applications is a nice book that covers much of the same material as this MIT class, but at a slower, easier pace. It's highly suitable to the beginner.

You should know high school algebra and precalculus to be able to read the book. Trigonometry and calculus are not prerequisites, although you will probably want to learn those too.

Re:Mathematics for Computer Science by IndianAstronaut on Thursday April 02, 2015 @05:32PM (#9313357)
In addition to what others are saying I can't stress enough how important combinatorics are as well. Definitely spend some time trying to understand this area. From there move on to stochastic processes.
Re:Mathematics for Computer Science by carlsednaoui on Thursday April 02, 2015 @06:42PM (#9313615)
Thanks for the note! This looks like a good place to start: https://www.khanacademy.org/math/probability/probability-and...

Would you agree?

Re:Mathematics for Computer Science by IndianAstronaut on Thursday April 02, 2015 @09:51PM (#9314135)
Looks good. I used "Fundamentals of Probability with Stochastic Processes" by Ghahramani. Very good book.
Re:Mathematics for Computer Science by hkailahi on Thursday April 02, 2015 @03:36PM (#9312675)
MIT OpenCourseWare has been a great tool for me as an undergrad. Since the start of year, I've watched the CS and Econ uploads concurrently with the courses I've taken.

It's not that the lectures are better, but getting a second chance to see the topics under slightly different contexts has been pretty effective for study. I've had the same experience with Khan Academy in my lower division courses.

Re:Mathematics for Computer Science by vowelless on Thursday April 02, 2015 @02:28PM (#9312510)
This is a similar course with some overlap: http://www.cs.cmu.edu/~15251/
Re:Mathematics for Computer Science by aroman on Thursday April 02, 2015 @03:56PM (#9312782)
I haven't looked at the MIT course in detail, but doesn't it seem like Concepts would be more similar to this than 251?
Re:Mathematics for Computer Science by daveed on Thursday April 02, 2015 @05:19PM (#9313296)
I just want to put a plug in for the video lecture portion of this. Tom Leighton is an excellent lecturer. There is plenty of electronic textbooks/courses, but I really do think he explains the course material in an engaging and lucid way.
Re:Mathematics for Computer Science by xigency on Thursday April 02, 2015 @02:15PM (#9312411)
This seems extremely useful. My school did not have a consolidated math class like this, although computer science and software engineering students were required to take various courses in math, particularly discrete and combinatorial math and linear algebra.

I do know that there were many students who double majored in Math / Computer Science although there was a restriction on minoring in mathematics as a CS student because of the large number of prerequisites. Still, it seems useful to combine proofs, induction, graph theory and related domains into one course. I did opt for taking a large number of math classes and some fairly high-level electives, and I have to say the most interesting area I came across was the use of generating functions for solving recurrence relations and the study of the Catalan numbers. For those of you unfamiliar with the Catalan numbers, it is the sequence of the number of binary trees that can be created with a certain number of elements. Another area they come up in (among a large number of problems) is creating paths by Manhattan distance.

The Catalan numbers also count the number of expressions with matching pairs of parentheses.

Re:Mathematics for Computer Science by _asummers on Thursday April 02, 2015 @07:33PM (#9313803)
Catalan numbers show up all over the place and are a really useful sequence. My combinatorics course in undergrad had a "Catalan Problem of the Week" where you would have to show that the Catalan sequence solves a particular problem.
Re:Mathematics for Computer Science by nimish on Thursday April 02, 2015 @08:10PM (#9313909)
Concrete Mathematics is also a good background.
Re:Mathematics for Computer Science by qntty on Friday April 03, 2015 @12:49AM (#9314446)
One of my favorite math books ever, but definitely not for the faint of heart. It's starts off slow but gets hard fast.
Re:Mathematics for Computer Science by deevus on Thursday April 02, 2015 @06:37PM (#9313600)
Having done an equivalent course in Australia I can say: despite being a struggle at the time to get my head around the content, in hindsight knowing this stuff is invaluable as you continue with your degree.

Discrete Mathematics has been invaluable in Formal Languages (Turing machines), Algorithms and Data Security.

Re:Mathematics for Computer Science by ilaksh on Friday April 03, 2015 @09:30PM (#9319518)
Math is just manually running code in your head. Which is just an ignorant and wasteful obsoleted vanity, like remembering and performing a series of notes.
Re:Mathematics for Computer Science by oskarkv on Sunday April 05, 2015 @12:09AM (#9323092)
Is thinking obsolete too?
Re:Mathematics for Computer Science by abhididdigi on Thursday April 02, 2015 @04:58PM (#9313160)
Being a CS student in my Bachelors I was able to spend sometime on Number Theory. But the lectures here blew mind.
Re:Mathematics for Computer Science by JAFTEM on Friday April 03, 2015 @12:21AM (#9314396)
I believe this is a pre-req to CLRS too.