This is an archived course. A more recent version may be available at

Mathematics for Computer Science

6.042 course logo: 4 by 4 square with numbers in each square.

The Fifteen Puzzle. See the Lecture 12 in-class problems for more information about this game. (Image courtesy of Nick Matsakis.)


MIT Course Number

6.042J / 18.062J

As Taught In

Spring 2010



Course Description

Course Features

Course Description

This subject offers an introduction to Discrete Mathematics oriented toward Computer Science and Engineering. The subject coverage divides roughly into thirds:

  1. Fundamental concepts of mathematics: definitions, proofs, sets, functions, relations.
  2. Discrete structures: graphs, state machines, modular arithmetic, counting.
  3. Discrete probability theory.

On completion of 6.042, students will be able to explain and apply the basic methods of discrete (noncontinuous) mathematics in Computer Science. They will be able to use these methods in subsequent courses in the design and analysis of algorithms, computability theory, software engineering, and computer systems.

Other Versions

Related Content

Albert Meyer. 6.042J Mathematics for Computer Science. Spring 2010. Massachusetts Institute of Technology: MIT OpenCourseWare, License: Creative Commons BY-NC-SA.

For more information about using these materials and the Creative Commons license, see our Terms of Use.