Foundations of AI and ML

Content

Lisam

Course materials

/

Section

State-Space Search: Tree Search and Graph Search

Tree Search and Graph Search

Lecture slides are available here.

Tree Search - Example

You are given the state space shown below, where $A$ is the initial state, and $F$ and $I$ are goal states. The numbers on the edges indicate action costs.

state space

The generic tree search algorithm is not guaranteed to find a solution for this problem. Why?

Graph Search - Example

You are again given the state space shown below, where $A$ is the initial state, and $F$ and $I$ are goal states. The numbers on the edges indicate action costs.

state space

In contrast to tree search, the generic graph search algorithm is guaranteed to find a solution for every state space, if a solution exists.
What is the maximum number of states in the closed list when graph search returns a solution for the above state space?

This webpage contains the course materials for the course TDDE56 Foundations of AI and Machine Learning.
The content is licensed under Creative Commons Attribution 4.0 International.
Copyright © 2022 Linköping University