1.problem Solving Search

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 12

Problem solving search

Module 2
A Puzzle
• A man with a boat (space for 2 persons) grass
bundle, goat and a lion need to cross a river
Problem solving
• Achieve goal state
• Steps
– Goal formulation – current situation and agent
performance
– Problem formulation – decide on what actions
and states to consider
– “Formulate, search, execute”
Solution
• Sequence of action that lead to the goal
• changes the state
• The aim is to find the sequence of actions and
states that lead from the initial (start) state to
a final (goal) state.
State Space definition
• Initial state
• Operator function -set of states reachable with action
• State space - all states reachable from initial by any sequence of actions
• Path - sequence through state space
• Path cost - Cost of a path is the sum of costs of individual actions along the path
• Goal test - test to determine if it is goal state
Search
• find correct path from the start/root state to
the goal state
• State + operators = state space
Types of searches

1.Any start - goal path (blind)


2.Best path (Informed)
3.Face of adversary
Example 1
Example 2 : 8- puzzle problem
• State {S}
– Location of each of 8 tile
• Start state
– Starting configuration
• Operators
– Moving tile up, down, left and right
• Goals
– Reaching goal state
Thank you!!!!!

You might also like