8 Search AIC3 VL2
8 Search AIC3 VL2
CS3002
Dr. Nidhi Kushwaha
Overview
• Summary
04/13/2023
3
• The set of all possible states that are possible in given problem.
• This State Space is then searched to find the solution of the problem.
• Arcs between nodes represent legal moves from one state to another,
• Our aim is to start with the initial and achieve the goal state
• Each state space takes the form of a tree or a graph.
04/13/2023
4
Example of AI problems (8-Puzzle)
04/13/2023
5
State Space for 8-Puzzle Problem
04/13/2023
6
04/13/2023
7
04/13/2023
8
04/13/2023
9
State Space for Tour Problem
04/13/2023
10
04/13/2023
11
Summary
• A State Space is the set of all possible states that are possible in your
given world.
• A Successor function is a function that takes in a state and an action and
computes the cost of performing that action.
• Successor state, the state the world would be in if the given agent
performed that action.
• A Start State is the state in which an agent exists initially.
• A Goal Test is a function that takes a state as input, and determines
whether it is a goal state.
• A Path Cost is the number of steps in the path of arriving to the goal.
04/13/2023
12
Summary
• A Problem consists 5 components,
– Initial state,
– a set of actions,
– a transition model (describing the results of those actions) or Successor,
– Goal test function, and
– Path cost function.
04/13/2023
13
Thank You!
04/13/2023