Courses
- Main course — UC Berkeley CS188, Spring 2024: Introduction to Artificial Intelligence. Course homepage · Online textbook · Lecture playlist. Supplies the main lecture sequence: agents and search, games, propositional and first-order logic, Bayesian networks, hidden Markov models, and decisions under uncertainty. The online textbook collects the course notes by topic. Spring 2024 has no lectures on constraint satisfaction, so block 3 uses the Spring 2023 slides and notes.
- Supplement — CMU 10-708, Spring 2020: Eric Xing, Probabilistic Graphical Models. Lectures with slides, scribe notes, and videos. Adds Markov random fields, exact inference beyond elimination, variational inference, Markov chain Monte Carlo, learning, and causality at graduate depth.
- Supplement — Stanford CS228: Stefano Ermon, Probabilistic Graphical Models course notes. Notes. Short written chapters on representation, inference, and learning that match blocks 8–10 and 14.
The order below follows the chapters of this module. Each block lists the material to cover and its primary lectures; further reading and exercises provide additional depth. Blocks 1–13 form the main plan; 14–15 are optional extensions. Timing is flexible.
CS188 slide links are original PDFs and the notes are the course’s own; the videos are the Spring 2024 recordings. Markov decision processes, bandits, and reinforcement learning, which CS188 teaches between games and probability, belong to the RL module; its machine-learning lectures repeat material from ML and DL. Foundations covered probability, Bayes’ rule, and Monte Carlo integration, and ML covered naive Bayes, Gaussian mixtures, and EM; review those chapters as needed in place of CS188’s probability review.
Topic list
- 1. Agents and uninformed search
- 2. Heuristic search
- 3. Constraint satisfaction and local search
- 4. Adversarial search and games
- 5. Propositional logic and satisfiability
- 6. First-order logic and knowledge representation
- 7. Automated planning
- 8. Bayesian networks and Markov networks
- 9. Exact inference
- 10. Approximate inference
- 11. Temporal probabilistic models
- 12. Decision theory and the value of information
- 13. Causal inference
- 14. Learning graphical models — optional
- 15. Game theory and multiagent systems — optional
Reference books used below
- AIMA: Russell and Norvig, Artificial Intelligence: A Modern Approach, fourth edition (Pearson, 2020). The standard textbook for blocks 1–12 and 15; CS188 cites its chapters. Not freely available; the book page links code and exercises.
- AIFCA: Poole and Mackworth, Artificial Intelligence: Foundations of Computational Agents, third edition (Cambridge, 2023). Free HTML; a second full treatment with a stronger emphasis on representation, causality, and relational models.
- PGM: Koller and Friedman, Probabilistic Graphical Models: Principles and Techniques (MIT Press, 2009). The reference for blocks 8–10 and 14; not freely available. The CS228 notes above follow it closely.
- ECI: Peters, Janzing, and Schölkopf, Elements of Causal Inference (MIT Press, 2017). Open access; the reference for block 13 together with Brady Neal’s course book.
1. Agents and uninformed search {#1-agents-and-uninformed-search}
Topics: Agents, environments, and rationality; performance measures; properties of environments; search problems as states, actions, transitions, goals, and costs; the search tree and the state graph; breadth-first, depth-first, uniform-cost, and iterative-deepening search; completeness, optimality, and time and space complexity; tree search versus graph search.
- CS188 lecture 1: Intro to AI, rational agents. Slides · PDF · Video
- CS188 lecture 2: State spaces, uninformed search. Slides · PDF · Video
- CS188 textbook 1.1–1.3. Agents · State spaces and search problems · Uninformed search
Further reading: AIMA chapters 2 and 3.1–3.4; AIFCA chapters 1 and 3.1–3.5. Foundations’ terminology chapter places AI among the neighboring disciplines.
2. Heuristic search {#2-heuristic-search}
Topics: Best-first search; greedy search and A; admissible and consistent heuristics; optimality of A for tree and graph search; dominance and the effective branching factor; heuristics from relaxed problems and pattern databases; memory-bounded search with IDA; weighted A and bounded suboptimality.
- CS188 lecture 3: Informed search, A* and heuristics. Slides · PDF · Video
- CS188 textbook 1.4. Informed search
- Basel Planning and Optimization E6: Pattern databases. Slides · PDF Abstraction heuristics defined precisely.
Further reading: AIMA 3.5–3.6; AIFCA 3.6–3.8. Amit Patel’s notes on A* for games cover heuristics, tie-breaking, and implementation details for grid maps.
3. Constraint satisfaction and local search {#3-constraint-satisfaction-and-local-search}
Topics: Variables, domains, and constraints; constraint graphs and factor graphs; backtracking search; forward checking and arc consistency (AC-3); variable and value ordering; tree-structured CSPs and cutset conditioning; local search with min-conflicts, hill climbing, simulated annealing, and beam search; the phase transition in random problems.
- CS188 Spring 2023 lectures 7–8: Constraint satisfaction problems I and II. Slides I · PDF · Slides II · PDF · Note 7 · Note 8
- CS188 lecture 4: Local search. Slides · PDF · Video
- Stanford CS221, Autumn 2019: Factor graphs 1, constraint satisfaction problems. Video CSPs as factor graphs, the view that connects this block to blocks 8–9.
- CS188 textbook chapter 2 and 1.5. Constraint satisfaction problems · Local search
Further reading: AIMA chapter 6 and 4.1–4.2; AIFCA chapter 4.
4. Adversarial search and games {#4-adversarial-search-and-games}
Topics: Games as search problems; minimax and its optimality against an optimal opponent; alpha–beta pruning and move ordering; depth-limited search and evaluation functions; expectimax for chance and for imperfect opponents; multiplayer games; Monte Carlo tree search and the UCT rule.
- CS188 lecture 5: Games, trees, minimax, pruning. Slides · PDF · Video
- CS188 lecture 6: Games, expectimax, Monte Carlo tree search. Slides · PDF · Video
- CS188 textbook chapter 3. Games · Monte Carlo tree search
Further reading: AIMA chapter 5. The survey by Browne et al. (2012) catalogues Monte Carlo tree search variants.
5. Propositional logic and satisfiability {#5-propositional-logic-and-satisfiability}
Topics: Knowledge-based agents; syntax and semantics of propositional logic; models, entailment, validity, and satisfiability; inference by model checking; proof rules and resolution; conjunctive normal form; Horn clauses with forward and backward chaining; DPLL, conflict-driven clause learning, and WalkSAT; hardness and the satisfiability threshold.
- CS188 lecture 7: Propositional logic and planning. Slides · PDF · Video
- CS188 lecture 8: Logical inference, theorem proving, Boolean satisfiability, DPLL. Slides · PDF · Video
- Stanford CS221, Autumn 2019: Logic 1, propositional logic. Video Syntax, semantics, and inference rules with a careful treatment of soundness and completeness.
- CS188 textbook 10.1–10.6. Knowledge-based agents · Propositional inference
Further reading: AIMA chapter 7; AIFCA chapter 5.
6. First-order logic and knowledge representation {#6-first-order-logic-and-knowledge-representation}
Topics: Objects, relations, and functions; terms, quantifiers, and models; translating knowledge into first-order sentences; propositionalization; unification and generalized modus ponens; forward chaining and Datalog; backward chaining and logic programming; resolution and its completeness; semidecidability; ontologies, categories, and description logics; the closed-world assumption and negation as failure.
- CS188 lecture 9: First-order logic. Slides · PDF · Video
- Stanford CS221, Autumn 2019: Logic 2, first-order logic. Video
- CS188 textbook 10.7–10.9. First-order logic · First-order inference · Logical agents
Further reading: AIMA chapters 8–10; AIFCA chapters 15–16 on individuals, relations, knowledge graphs, and ontologies.
7. Automated planning {#7-automated-planning}
Topics: Planning tasks in STRIPS and PDDL; forward (progression) and backward (regression) search; the complexity of planning; planning as satisfiability; the delete relaxation and the heuristics \(h^{\max}\), \(h^{\text{add}}\), and \(h^{\text{FF}}\); landmarks; partial-order and hierarchical planning; where planning under uncertainty begins.
- CS188 lecture 7: Propositional logic and planning. Slides · PDF · Video Planning as satisfiability with successor-state axioms.
- Basel Planning and Optimization, Fall 2023: Malte Helmert and Gabriele Röger. Course page. Slide sets A2 What is planning?, B5 STRIPS, B6 Complexity, C2 Progression and regression, C4 SAT planning, D1 Relaxed planning tasks, D6 \(h^{\max}\) and \(h^{\text{add}}\), D8 \(h^{\text{FF}}\), and G3 Landmarks.
Further reading: AIMA chapter 11; AIFCA chapter 6.
8. Bayesian networks and Markov networks {#8-bayesian-networks-and-markov-networks}
Topics: Joint distributions and the cost of tables; directed graphical models and their factorization; conditional independence and d-separation; the Markov blanket; I-maps and perfect maps; undirected models, potentials, and the Hammersley–Clifford theorem; factor graphs; converting between representations.
- CS188 lecture 10: Intro to probability (review as needed). Slides · PDF · Video
- CS188 lecture 11: Bayes nets. Slides · PDF · Video
- CMU 10-708 lecture 2: Undirected graphical models. Slides · PDF · Video
- CMU 10-708 lecture 3: Directed graphical models. Slides · PDF · Video
- Stanford CS221, Autumn 2019: Factor graphs 2, conditional independence. Video
- CS228 notes. Bayesian networks · Markov random fields
Further reading: AIMA 13.1–13.2; PGM chapters 3–4; CS188 textbook 6.3–6.5.
9. Exact inference {#9-exact-inference}
Topics: Inference by enumeration; variable elimination and factor operations; elimination orderings, induced width, and treewidth; the hardness of inference; sum-product message passing on trees; the junction tree algorithm; MAP inference with max-product; exact inference as a baseline for approximation.
- CS188 lecture 12: Bayes nets, inference. Slides · PDF · Video
- CMU 10-708 lecture 4: Exact inference. Slides · PDF · Video
- CS228 notes. Variable elimination · Belief propagation · MAP inference
Further reading: AIMA 13.3; PGM chapters 9–10 and 13.
10. Approximate inference {#10-approximate-inference}
Topics: Prior sampling, rejection sampling, and likelihood weighting; importance sampling and effective sample size; Markov chains and their stationary distributions; Gibbs sampling and Metropolis–Hastings; mixing and diagnostics; variational inference as optimization, the evidence lower bound, and mean field; loopy belief propagation and the Bethe approximation.
- CS188 lecture 13: Bayes nets, sampling. Slides · PDF · Video
- CMU 10-708 lectures 9–10: Sampling 1 and 2. Slides 1 · PDF · Video 1 · Slides 2 · PDF · Video 2
- CMU 10-708 lectures 7–8: Variational inference 1 and 2. Slides 1 · PDF · Video 1 · Slides 2 · PDF · Video 2
- CS228 notes. Sampling-based inference · Variational inference
Further reading: AIMA 13.4; PGM chapters 11–12. Blei, Kucukelbir, and McAuliffe, Variational Inference: A Review for Statisticians, is the standard introduction to modern variational methods; Wainwright and Jordan’s monograph (listed with the books) develops the theory.
11. Temporal probabilistic models {#11-temporal-probabilistic-models}
Topics: Markov chains and stationarity; hidden Markov models; filtering with the forward algorithm, prediction, and smoothing with forward–backward; the most likely sequence and the Viterbi algorithm; learning with Baum–Welch; linear-Gaussian models and the Kalman filter; dynamic Bayesian networks; particle filtering.
- CS188 lecture 14: Markov chains, HMMs. Slides · PDF · Video
- CS188 lecture 15: Forward and Viterbi algorithms, dynamic Bayes nets, particle filtering. Slides · PDF · Video
- CMU 10-708 lecture 6: Case studies, HMM and CRF. Slides · PDF · Video
- CS188 textbook chapter 8. Markov models · Particle filtering
Further reading: AIMA chapter 14; Rabiner’s tutorial on hidden Markov models; Thrun, Burgard, and Fox, Probabilistic Robotics, chapters 2–4, for Bayes filters in robotics.
12. Decision theory and the value of information {#12-decision-theory-and-the-value-of-information}
Topics: Preferences, lotteries, and the axioms of rationality; the von Neumann–Morgenstern utility theorem; utility of money and risk attitudes; multiattribute utility; decision networks and their evaluation; the value of perfect information and its properties; limits of the expected-utility model.
- CS188 lecture 16: Utility theory, rationality, decision networks, VPI. Slides · PDF · Video
- CS188 textbook chapter 7. Utilities · Decision networks · Value of perfect information
Further reading: AIMA chapter 16; AIFCA 12.1–12.3. Foundations’ statistics chapter treats losses, risk, and Bayes decisions for estimation; this block adds where utilities come from and how to decide what to observe.
13. Causal inference {#13-causal-inference}
Topics: Association and causation; potential outcomes; structural causal models and interventions; the do-operator and the truncated factorization; confounding, the backdoor and frontdoor criteria; the rules of do-calculus; estimation by adjustment and inverse propensity weighting; instrumental variables; counterfactuals; causal discovery from independence tests.
- Brady Neal, Introduction to Causal Inference. Course page · Course book · PDF. Lectures 1 Introduction, 2 Potential outcomes, 3 The flow of association and causation in graphs, 4 Causal models, 5 Identification, 6 Estimation, 8 Instrumental variables, 10 Causal discovery from observational data, and 13 Counterfactuals and mediation.
- CMU 10-708 lectures 17–18: Causality 1 and 2. Slides 1 · PDF · Video 1 · Slides 2 · PDF · Video 2
Further reading: ECI chapters 1–7; AIFCA chapter 11; Hernán and Robins, Causal Inference: What If, for the potential-outcomes view used in epidemiology.
14. Learning graphical models — optional {#14-learning-graphical-models-optional}
Topics: Maximum likelihood for Bayesian networks with complete data; Dirichlet priors and Bayesian estimation; log-linear models and the moment-matching gradient; pseudolikelihood; missing data and EM in Bayesian networks; structure learning by score (BIC, the Chow–Liu tree) and by independence tests; conditional random fields.
- CMU 10-708 lecture 5: Parameter estimation. Slides · PDF · Video
- CMU 10-708 lecture 16: Structure learning. Slides · PDF · Video
- CS228 notes. Learning in directed models · Learning in undirected models · Structure learning
Further reading: PGM chapters 17–20; AIMA chapter 20.
15. Game theory and multiagent systems — optional {#15-game-theory-and-multiagent-systems-optional}
Topics: Normal-form games; dominance and best responses; pure and mixed Nash equilibria; zero-sum games, the minimax theorem, and linear programming; correlated and coarse correlated equilibria; no-regret learning and its convergence to equilibrium; extensive-form games and subgame perfection; mechanism design, auctions, and the VCG mechanism; the price of anarchy.
- Stanford CS364A, Fall 2013: Tim Roughgarden, Algorithmic Game Theory. Course page with lecture notes. Lectures 2 Mechanism design basics, 7 VCG mechanism, 11 Selfish routing and the price of anarchy, 13 Hierarchy of equilibrium concepts, 17 No-regret dynamics, 18 Swap regret and minimax, and 20 Mixed Nash equilibria and PPAD-completeness.
Further reading: Shoham and Leyton-Brown, Multiagent Systems (free PDF), chapters 3–5 and 10–11; AIMA chapter 18; AIFCA chapter 14.
Exercises and local references
- The CS188 projects implement search, adversarial search, logic, and Bayesian-network and HMM tracking in Python for a Pacman world, with autograders; the machine-learning project repeats ML and DL material, and the reinforcement-learning project belongs with RL. Past exams with solutions are linked from the course site and cover every block through 12.
- The AIMA Python repository implements most algorithms of the textbook, with notebooks.
- Foundations supplies probability, Monte Carlo, and information theory; ML supplies naive Bayes, Gaussian mixtures, and EM; DL supplies the networks used as learned heuristics and evaluation functions.
Connections to later modules
Markov decision processes, dynamic programming, bandits, and reinforcement learning belong in RL, which extends the search, games, and decision theory of this module to sequential decisions with learned values. Variational autoencoders and diffusion models in Generative AI build on the variational inference of block 10. Language models in NLP and LLMs replace the hand-built knowledge of blocks 5–6 with learned representations, and their decoding uses the search of blocks 1–2. Safety and Frontier returns to rational agency, utility, and causal reasoning. Search, logic, planning, graphical models, decisions, and causality remain in this module.