1 Problem Formulation Searching State Space
1 Problem Formulation Searching State Space
PROBLEM FORMULATION
SEARCH TREES
SEARCH STRATEGIES
COMPARING SEARCH ALGORITHMS
Performance measure –
simplified by the indication of a
goal Goal Based
Agents
Problem Planning
solving agents Agents
Searching algorithms are used to select the most
appropriate answers States have structured representation (states –
States are atomic collection of properties)
Problem Solving By Searching
Problem Definition, Solutions
◦ Problems considered have solution which is a fixed
sequence of actions
◦ Environment - Observable, Discrete, Known, Deterministic
◦ Example
◦ 8 puzzle
◦ 8 queens problem (chess)
◦ Traversal of a graph of cities
https://deniz.co/8-puzzle-solver/
8 – puzzle problem definition
https://www.geeksforgeeks.org/check-instance-8-puzzle-
solvable/
N-Queens problem –
E.g 8 queens problem
FORMULATION 1
64 ・ 63 ・ ・ ・ 57 ≈ 1.8×1014
Possible sequences to investigate
FORMULATION 2 (IMPROVING FORMULATION 1)
Search strategy
◦ Which node to choose to expand from the
frontier is decided by the strategy
Loopy Path
◦ Travelling to and forth between two states
Redundant Path
◦ Loopy paths are a special case of the more
REDUNDANT PATH general concept of redundant
paths, which exist whenever there is more than
one way to get from one state to another.
Consider the paths
A* SEARCH