课程定位
CS 221 是 Stanford AI 路线的入口课,也是理解“AI 不只是调模型”的最好方式。它用统一的数学语言(概率 + 算法)描述智能体如何在信息不完全、计算有限的情况下做决策,覆盖面从经典符号 AI 一直延伸到现代机器学习。
主要内容
- 搜索与约束满足:DFS/BFS/A*、启发式、CSP、局部搜索
- 博弈与对抗搜索:minimax、alpha-beta、期望效用
- MDP 与强化学习:值迭代、策略迭代、Q-learning 基础
- 概率图模型:贝叶斯网络、HMM、变量消元、采样
- 机器学习:朴素贝叶斯、感知机、逻辑回归、损失函数与正则化
- 逻辑与知识表示:命题逻辑、一阶逻辑、推理
- 综合项目:把上述模块组合成一个可运行的 AI 系统
课程大纲 / 课件
Autumn 2026 schedule;slides 和代码在 stanford-cs221/lectures 仓库,录像在 Canvas。
先修
CS 103(或 103B/X)、CS 106B(或 106X)、CS 109、CS 161;官方明确要求“不要指望课上补这些基础”。
考核与工作量
通常为 5 次左右书面/编程作业 + 期中 + 期末 + 一个综合项目;工作量在 Stanford 课程里偏大。具体比例以当季官网为准。
适合谁
想建立完整 AI 知识地图的本科生/转专业学生;之后准备读 CS 229/224N/234 的人;以及想补“经典 AI”这一块的工程师。
学习建议
先补概率(CS 109)和算法(CS 161),否则作业会很痛苦。作业里的搜索和 MDP 部分建议自己从零写一遍,不要只调库。
相关课程
官方课程描述(英文原文)
Artificial intelligence (AI) has had a huge impact in many areas, including medical diagnosis, speech recognition, robotics, web search, advertising, and scheduling. This course focuses on the foundational concepts that drive these applications. In short, AI is the mathematics of making good decisions given incomplete information (hence the need for probability) and limited computation (hence the need for algorithms). Specific topics include search, constraint satisfaction, game playing,n Markov decision processes, graphical models, machine learning, and logic. Prerequisites: CS 103 or CS 103B/X, CS 106B or CS 106X, CS 109, and CS 161 (algorithms, probability, and object-oriented programming in Python). We highly recommend comfort with these concepts before taking the course, as we will be building on them with little review.