Learn discrete math.
Discrete math studies separate objects: integers, selections, and networks. These ideas appear throughout computing, from wrapping indices with modular arithmetic to counting committees and reasoning about graph connections.
A few things to bring along.
- Integer division
- Multiplication
- Basic counting
You can start anywhere. If an idea feels unfamiliar, use the lesson examples and return to the basics when you need them.
Get comfortable with the language.
- Modulus
- A positive integer that determines the remainder classes used here.
- Combination
- An unordered selection of distinct objects.
- Vertex / edge
- A graph’s point / a connection between points. These lessons use finite undirected graphs.
Videos and further reading
Explore the Khan Academy course
www.khanacademy.org · New tabLecture 9: Modular arithmetic
ocw.mit.edu · New tabModular arithmetic
en.wikipedia.org · New tabThese resources open in a new tab on the publisher’s website.
Connect the whole subject.
Ten questions covering every lesson in this subject. Review the worked feedback after each answer. Practice only · scores stay in this session and do not enter your account history.
Choose your next idea.
Modular arithmetic
Use this for cyclic patterns, wrapping indices, and nonnegative remainders.
Combinations
Use this to choose distinct objects when order does not matter and repetition is not allowed.
Graph degrees
Use this to connect the sum of degrees with the number of edges in a finite undirected graph.
Permutations: when order matters
Use this for rankings, assigned roles, or ordered arrangements of distinct objects without replacement.
Inclusion–exclusion
Use this to count a union of two finite sets when their overlap is known.
Put the idea to work.
Try a generated question and get a worked explanation after checking your answer.