Mathematics for Computer Science

  • Free
  • No certificate
Provider
MIT
Cost
Free
Certificate
No certificate
Format
Self-paced
Language
English
Subjects
Mathematics, Computer Science
Source
MIT Open Learning
Last verified
14 Sep 2026

6.042J is MIT's discrete mathematics course for computer science and engineering students, and the fall 2010 edition taught by Tom Leighton and Marten van Dijk is on OpenCourseWare with a full run of video lectures. It emphasises mathematical definitions and proofs alongside methods you can apply. The syllabus lists formal logic and proof methods, induction and well-ordering, sets and relations, elementary graph theory, integer congruences, asymptotic notation and growth of functions, permutations, combinations and counting principles, and discrete probability, with selected extras such as recursive definitions, state machines, recurrences and generating functions. The twenty-four recorded lectures follow that arc: proofs and induction, two lectures of number theory, several on graph theory including colouring, matching, minimum spanning trees and communication networks, relations and scheduling, sums and asymptotics, divide-and-conquer and linear recurrences, counting rules, and a final block on probability, conditional probability, independence, random variables, expectation and large deviations.

The site provides readings, recitation problems, problem sets, and exams with solutions. The only prerequisite named is single variable calculus (18.01). All materials are free under OpenCourseWare's Creative Commons licence, without registration or a certificate. A version of the same course with instant-feedback exercises is mirrored in MIT's Open Learning Library.

Advertisement

What you’ll learn

  • Write proofs using logic, induction, strong induction and well-ordering
  • Apply elementary number theory and integer congruences
  • Use graph theory for colouring, matching, spanning trees and communication networks
  • Handle relations, partial orders, sums, asymptotics and recurrences
  • Count with permutations, combinations and counting rules
  • Reason about discrete probability, random variables, expectation and large deviations

Who it’s for

Computer science students who need the proof and probability foundations for algorithms courses, and who have completed single variable calculus.

Source: MIT Open Learning (opens in a new tab) · Verified · Report a change

Advertisement
FreeOpens ocw.mit.edu Go to course (opens in a new tab)