Skip to main content
PaperintermediateFree

Mathematical Foundations of Computing (Stanford CS103 course notes), Ch. 5 Relations & Ch. 6 Functions and Cardinality

by Keith Schwarz · Stanford University (CS103)

Keith Schwarz's Stanford CS103 course notes from Fall 2013. Chapter 5 covers binary relations, equivalence classes and strict, partial and pre-orders. Chapter 6 covers functions, injections, surjections, bijections, composition, inverses, cardinality and diagonalization. Both chapters include exercises.

Visit resource

More resources on Relations & Functions

BookPaid

Discrete Mathematics and Its Applications

Standard undergraduate discrete mathematics textbook covering logic, proof, sets, functions, algorithms, number theory, counting, relations, graphs and trees, with thousands of exercises. Its relations chapter develops equivalence relations, partial orders, closures and matrix representations to a level suited to computer science study.

WebsiteFree

Wolfram MathWorld

MathWorld is an online mathematics encyclopedia from Wolfram Research offering detailed, browsable articles on topics across the math spectrum, including algebra, geometry, calculus, and number theory. Each entry includes definitions, theorems, formulas, diagrams, worked examples, and links to further reading.

WebsiteFree

Discrete Mathematics: An Open Introduction

Oscar Levin's free, openly licensed textbook for a first discrete mathematics course, with interactive exercises and solutions. Its opening chapter treats sets and functions, including injections, surjections and bijections, before counting, sequences, logic, proofs and graph theory; relations get little coverage.

WebsiteFree

Khan Academy Functions

Algebra I unit of video lessons and graded practice on function notation, domain and range, graph interpretation, and inverse functions. Progress is tracked per skill, so learners can identify which specific ideas still fail.

CourseFree

Mathematics for Computer Science (MIT 6.042J)

Discrete mathematics for computer science with an emphasis on definitions and proofs: logic, induction, sets and relations, graph theory, modular arithmetic, asymptotics, counting and discrete probability. 25 lecture videos, problem sets and exams with solutions build fluency in writing proofs.

WebsiteFree

Guide to Proofs on Discrete Structures (Stanford CS103)

Short Stanford CS103 handout giving proof templates for injectivity (direct and contrapositive), non-injectivity, surjectivity and bijections, based on the first-order-logic definitions. It also covers defining functions and writing longer proofs with lemmas, with practice exercises.

See all Relations & Functions resources →