032 · UCSC CSE140 p1 — Pacman 搜索大作业
| 项目 | 内容 |
|---|---|
| 学校 | UC Santa Cruz |
| 课程 | CSE 140 Artificial Intelligence(题面在 031 upstream 的 p1/README.md) |
| 方向 | Python / DFS、BFS、UCS、A*、Corners、Food、贪心与近似搜索 |
| 语言 | Python |
| 难度 | 进阶 / Intermediate |
| 上游仓库 | https://github.com/edulinq/pacai(pin |
为什么收录
CSE140 p1(改编自 Berkeley CS188)要求实现 pacai/student/singlesearch.py 的 8 个函数:DFS/BFS/UCS/A* 四个搜索器、CornersProblem(状态设计 + 启发式)、FoodSearchProblem 启发式、ClosestDot 贪心 agent、AnyMarker 目标判定。框架 pacai v2.1.0 完全开源(MIT),starter 的 8 处 NotImplementedError 就是题面。
The full search assignment of CS188-style p1: eight solvers over the open-source pacai framework, with the starter’s eight NotImplementedError stubs as the problem statement.
实测结果
- 用例 | 结果 |