Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. 
Notices 
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto 
Site FAQ 
Sitemap 
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQrelated cookies.

Introduction to Linux  A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free. 


04222007, 10:37 AM

#1

LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:

How important is math in CS and programming?
Hi guys,
Ok, here's a general question for you.How important is math in CS and programming?
I assume the answer to be "very important", so here's my next question.Which mathematical concepts are the most important for CS and a mustknow for anyone interested in programming and CS in general?
I've had a look on the web site of a few CS departments, but they are not very clear on which math concepts related to CS they teach.For example not every course may be available online.Are the math classes really 1 or 2 and then the concepts are taught in the context of CS?



04222007, 10:55 AM

#2

Member
Registered: Apr 2004
Distribution: Debian unstable
Posts: 700
Rep:

Take a look at Knuth's Art Of Computer Programming. Should give you a rough idea :)



04222007, 12:56 PM

#3

Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:

I'd say combinatorics and statistics are probably the mathematical concepts I find myself using the most... but that might be because of the kind of stuff I develop.
...
In school with the emphasis on computer science theory we used all sorts of math concepts that I don't find myself using as much in the "real world".
Last edited by jtshaw; 04222007 at 12:58 PM.



04222007, 01:51 PM

#4

Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:

last fall i finished college and earned two diplomas: 'computer programmer analyst', and 'computer systems technician'. in college we only had one required basic math course.
this winter i transfered to a university and there seems to be a very strong emphasis on mathematics. in fact, with all the math courses required for the CS degree, you only need to take another, i think, five courses and you also get a math degree. if you take a double major (CS and Math), there is something like 18 math courses required, and less than 10 CS courses.
as i havent really gotten into the math courses yet, i dont know for sure, but i think there is alot of emphasis on it because it gives you practice in the way you need to think when programming systems, that is, abstractly and logically. check the computer science article on wikipedia.org and youll see mathematics is a major field of CS, just as, say artificial intelligence.
and, as jtshaw said, it is correlated to what you are doing. example, computer graphics relies very heavily on math.
Last edited by nadroj; 04222007 at 01:55 PM.



04222007, 02:10 PM

#5

LQ Newbie
Registered: Apr 2007
Posts: 7
Original Poster
Rep:

Quote:
Originally Posted by nadroj
as i havent really gotten into the math courses yet, i dont know for sure, but i think there is alot of emphasis on it because it gives you practice in the way you need to think when programming systems, that is, abstractly and logically.

That's what i think as well and that's why i'm interested.In programming, for example, an algorithm that just works is something a lot different than an algorithm that works efficiently.



04222007, 02:30 PM

#6

Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:

not if you work at microsoft
heres the link to the class website for the first CS course for my university (save the $500 it costs and do it yourself for free, heh).
at first i didnt like the course because it started off with basic programming concepts (in a language called Miranda). but in the end i like the course. it covers a variety of key concepts, giving an introduction to each. the two topics on math were mathematical induction (ie proving that an equation is equivalent to another one) and complexity (figuring out how costly a function is, see BigOh notation from wiki).
Last edited by nadroj; 04222007 at 02:31 PM.



04222007, 03:09 PM

#7

LQ Newbie
Registered: Apr 2007
Posts: 7
Original Poster
Rep:

Quote:
Originally Posted by nadroj
heres the link to the class website for the first CS course for my university (save the $500 it costs and do it yourself for free, heh).

Thanks, another interesting link. I've found a lot of interesting info searching the web sites of CS departments for the last couple of weeks.
Thanks for all the answers so far, guys.More info is always welcome



04222007, 07:10 PM

#8

Member
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740
Rep:

I guess it depends on the context. I go to the same school as nadroj (very nearly done though!), and we take 5 mathematics courses from the math department. One of the mathematics courses introduces proof techniques while teaching about set theory, relations, etc.. Then there are a bunch of CS courses which make heavy uses of those concepts. You'll use these concepts in courses ranging from computer graphics to computational theory to software testing to anything really. Many are not math "heavy", but require a firm understanding of the core concepts.



04222007, 07:23 PM

#9

Member
Registered: Jul 2004
Distribution: Ubuntu
Posts: 385
Rep:

Quote:
Originally Posted by aguire
That's what i think as well and that's why i'm interested.In programming, for example, an algorithm that just works is something a lot different than an algorithm that works efficiently.

Quote:
Originally Posted by nadroj
not if you work at microsoft

LMAO
vxc



04222007, 08:27 PM

#10

Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:

95se, your 'nearly done' as in after this week?
your site says your in the SE specialization. id like to do that, but all of the other (nonCS) courses are drawing me away from it. right now im actually registered in the networks and security specialization, but ill probably switch to either AI or plain honours.
i see your also in coop, mind me asking where your 3 placements have been? (or will be if you have any left)
good luck and congrats!
edit: i really need to disconnect my router or something.. so im forced to go study 212 and 256..
Last edited by nadroj; 04222007 at 08:29 PM.



04222007, 09:08 PM

#11

Member
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSDCURRENT
Posts: 474
Rep:

My school is a bit of a M$ house...so unfortunately we hardly cover concepts such as pointers (and pointer arithmetic, etc...). Going on that alone, I'd say that everything "hardcore" in CS I've learned through studying Linux and the associated source code on my own time...
However, I can say that there have been two classes that required HEAVY use of mathematics...the generic algorithms class (that has been talked about already) and network security. The network security class was basically an encryption theory class (very little practical application, but man it was thorough!), so mathematics played a big role in it.
Oddly enough, I'm set to graduate this Christmas, and I haven't even taken MATH 201 (Boolean Logic). Doh? Guess I'll be taking that next semester...heh



04222007, 09:48 PM

#12

Member
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289
Rep:

In math, you can study about discrete mathematics and logic. Math can help you think more logically.



04232007, 11:15 PM

#13

Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376
Rep:

There is a wide variety of CS courses but being a "science" course they include mathematics at the core. Briefly the argument for math in CS is: it teaches you the rigorous way of thinking that is necessary for a programmer, it enables you to effectively describe an algorithm, it enables you to understand the underlying concepts (the science) of computing.
What gets taught will vary from course to course, one that I know quite well started with discrete maths (which was split into two modules) there ware two calculus papers one, stats one probability, differential equations, numerical analysis and Operational Research.
Of course not all computing degrees have maths but it would be rare for a CS course to not have any maths. Also the ACM has guidelines as to what should be in a CS degree.



Thread Tools 
Search this Thread 


Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off



All times are GMT 5. The time now is 01:53 PM.

LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.

Latest Threads
LQ News

