Theory
Math & Theory
The mathematical foundations of computer science: logic and proofs, sets and functions, combinatorics, probability, graph theory, automata and formal languages, computability and complexity theory.
2 modules 9 lessons ~1 h of reading
Start learning
0/9 completed
01
Discrete Math
5 lessons- 1Logic & ProofsThe language of rigorous reasoning — propositional logic, truth tables, implication and its contrapositive, logical equivalences, predicates and quantifiers, and proof techniques (direct, contrapositive, contradiction, cases, induction, strong induction) with programming connections like loop invariants.beginner6 min
- 2Sets, Relations & FunctionsThe vocabulary of discrete maths — sets and set operations, power sets and Cartesian products, relations and their properties, equivalence relations and partial orders, functions (injective, surjective, bijective), cardinality and countability, with connections to databases, types and hashing.beginner6 min
- 3CombinatoricsCounting for computer scientists — sum and product rules, permutations and combinations, binomial coefficients and Pascal's triangle, combinations with repetition (stars and bars), inclusion–exclusion, the pigeonhole principle, Catalan numbers, recurrences, and computing counts modulo a prime.intermediate5 min
- 4Probability for ProgrammersProbability you'll actually use — sample spaces and events, conditional probability and independence, Bayes' theorem, random variables, expectation and linearity, variance, key distributions, the birthday problem, randomised algorithms, reservoir sampling, and A/B test intuition.intermediate6 min
- 5Graph TheoryThe mathematics of networks — vertices, edges, degree and the handshake lemma, paths, cycles and connectivity, trees and their properties, bipartite graphs, Euler and Hamiltonian paths, planar graphs, graph colouring, matchings, and the many problems that reduce to graphs.intermediate6 min
02
Theory of Computation
4 lessons- 6Automata & Regular LanguagesThe simplest model of computation — alphabets, strings and languages, deterministic finite automata, nondeterministic automata and subset construction, regular expressions and their equivalence with automata, closure properties, the pumping lemma, minimisation, and how regex engines work (and blow up).intermediate5 min
- 7Context-Free GrammarsLanguages with nested structure — context-free grammars, derivations and parse trees, ambiguity, pushdown automata, the Chomsky hierarchy, closure properties and limits (the CFL pumping lemma), Chomsky normal form and CYK parsing, and how grammars drive parsers, JSON and programming languages.intermediate5 min
- 8Turing Machines & ComputabilityWhat can be computed at all — Turing machines, the Church–Turing thesis, universal machines and Turing completeness, decidable vs semi-decidable problems, the halting problem and its proof, reductions, Rice's theorem, and what undecidability means for real software tools.advanced6 min
- 9Complexity ClassesP, NP, NP-complete and NP-hard explained — decision problems, verification vs solving, polynomial-time reductions, the Cook–Levin theorem, classic NP-complete problems, P vs NP, coping strategies (approximation, heuristics, parameterised and exponential algorithms), plus PSPACE, EXP and BPP.advanced8 min