高级人工智能
体系
智能的概念
智能:个体适应环境并能在不同环境中实现其目标的能力。
蕴含众多方面的能力
– 创造、推理、学习
– 归纳、演绎、类比
– 优化、规划、知识
– 模式识别、问题求解
– ……
搜索
解是一个行动序列,将初始状态转换为目标状态。
搜素问题是对原问题的建模
例子:罗马尼亚旅游
状态空间:
- Cities
后继函数:
- Roads:Go to adhacent city with cost = distance
初始状态:
- Arad
目标测试:
- is state == Bucharest?
解?
状态空间:包含了环境中的每一个细节
搜索空间:只保留行动需要的细节
路径问题
Problem: Pathing
- States: (x, y) location
- Actions: NSEW
- 后继函数 Successor: update location only
- 目标检测 Goal test: is (x,y) = END
吃豆子问题
Problem: Eat- All- Dots
- States: {(x, y) location,dot booleans}
- Actions: NSEW
- 后继函数 Successor: update location
and possibly a dot boolean - 目标检测 Goal test: dots all false
状态空间的状态数量
世界状态:
- Agent positions: 120
- Food count: 30
- Chost pointions: 12
- Agent facing: NSEW
数量
世界状态?
路径规划状态?
120
吃光豆子 状态?
.
安全通行
Problem: eat all dots while keeping the ghosts perma-scared
What does the state space have to specify?
(agent position, dot booleans, power pelleans, remaining scared time)