Discrete mathematics underpins all of computer science. These books cover the essential topics: logic, proof techniques, set theory, combinatorics, graph theory, and number theory.

Foundational Discrete Math Textbooks

Standard undergraduate discrete mathematics textbooks.

BookAuthorYearLevelDescription
Discrete Mathematics and Its Applications
8th Edition, McGraw-Hill
Kenneth H. Rosen2019Beginner-IntermediateThe most widely adopted discrete math textbook. Clear coverage of logic, proofs, sets, combinatorics, graphs, and number theory.
Discrete Mathematics with Applications
5th Edition, Cengage
Susanna S. Epp2019Beginner-IntermediateExceptional at teaching mathematical reasoning and proofs. The best text for students new to formal mathematics.
Discrete Mathematics: An Open Introduction
3rd Edition, Open Textbook
Oscar Levin2019BeginnerFree open textbook covering the standard discrete math curriculum.

Combinatorics

Enumeration, permutations, combinations, and combinatorial structures.

BookAuthorYearLevelDescription
A Walk Through Combinatorics
4th Edition, World Scientific
Miklós Bóna2016Intermediate-AdvancedEngaging introduction to combinatorics with excellent balance of depth and accessibility.
Enumerative Combinatorics, Volumes 1 & 2
Cambridge University Press
Richard P. Stanley2012, 1999AdvancedThe definitive advanced reference on enumerative combinatorics.
Combinatorics: Topics, Techniques, Algorithms
Cambridge University Press
Peter J. Cameron1994AdvancedBroad survey of combinatorial topics with an algorithmic flavor.

Graph Theory

Theory and applications of graphs.

BookAuthorYearLevelDescription
Introduction to Graph Theory
2nd Edition, Pearson
Douglas B. West2001Intermediate-AdvancedThe standard graph theory textbook with rigorous proofs and comprehensive coverage.
Graph Theory
5th Edition, Springer
Reinhard Diestel2017AdvancedGraduate-level graph theory text covering classical and modern results. Available freely online via the author's website.
Graphs and Digraphs
6th Edition, CRC Press
Gary Chartrand, Linda Lesniak, Ping Zhang2015IntermediateAccessible graph theory textbook with extensive examples and exercises.

Logic and Proof

Mathematical logic, proof techniques, and theorem proving.

BookAuthorYearLevelDescription
How to Prove It
3rd Edition, Cambridge University Press
Daniel J. Velleman2019Beginner-IntermediateThe best introduction to writing mathematical proofs. Essential for CS students transitioning to theoretical courses.
Mathematical Logic
2nd Edition, Springer
H.-D. Ebbinghaus, J. Flum, W. Thomas1994AdvancedRigorous introduction to mathematical logic including completeness and Gödel's theorems.
A Mathematical Introduction to Logic
2nd Edition, Academic Press
Herbert B. Enderton2001AdvancedStandard logic textbook used in mathematics departments.

Number Theory and Applications

Classical and modern number theory with CS applications.

BookAuthorYearLevelDescription
Concrete Mathematics
2nd Edition, Addison-Wesley
Ronald L. Graham, Donald E. Knuth, Oren Patashnik1994AdvancedKnuth's unique blend of continuous and discrete mathematics. Essential for algorithm analysis.
An Introduction to the Theory of Numbers
6th Edition, Oxford
G.H. Hardy, E.M. Wright2008AdvancedClassic number theory textbook by two of the 20th century's great mathematicians.
A Course in Number Theory and Cryptography
2nd Edition, Springer
Neal Koblitz1994AdvancedNumber theory motivated by cryptographic applications, suitable for CS students.