SlideShare a Scribd company logo
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Solving Problems by Searching
• Reflex agent is simple(Cannot Operate in Well Environment, its Action
–Based on Current Situation and ignoring the History of Perception)
e.g Car Front Brakes
• base their actions on
• a direct mapping from states to actions
• but cannot work well in environments
• which this mapping would be too large to store
• and would take too long to learn
• Hence, goal-based agent is used
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Problem-solving agent
• Problem-solving agent
• A kind of goal-based agent – Choose their actions in order to achieve Goals.
• This Allows the Agent to a way of Choosing among Multiple Possibilities,
selecting the one which reaches a Goal states.
• It Requires Searching and Planning Techniques. E.g. GPS – Finding a path to
certain Destination.
• It solves problem by
• finding sequences of actions that lead to desirable states (goals)
• To solve a problem,
• the first step is the goal formulation, based on the current situation
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Problem Solving Agents :
• Intelligent Agent are Supposed to “ To Maximize their
Performance Measure ”
• Achievement : It can Adopt a Goal and Aim at Satisfying.
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Goal formulation
• The goal is formulated
• as a set of world states, in which the goal is satisfied
• Reaching from initial state 🡪 goal state
• Actions are required
• Actions are the operators
• causing transitions between world states
• Actions should be abstract enough at a certain degree, instead of
very detailed
• E.g., turn left VS turn left 30 degree, etc.
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Problem formulation
Well-defined problems and solutions
A problem is defined by 5 components:
• Initial state
• Actions
• Transition model or
(Successor functions)
• Goal Test.
• Path Cost.
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Well-defined problems and solutions
• A problem is defined by 4 components:
• The initial state
• that the agent starts in
• The set of possible actions
• Transition model: description of what each action does.
(successor functions): refer to any state reachable from given
state by a single action
• Initial state, actions and Transition model define the state
space
• the set of all states reachable from the initial state by any
sequence of actions.
• A path in the state space:
• any sequence of states connected by a sequence of actions.
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Well-defined problems and solutions
• The goal test
• Applied to the current state to test
• if the agent is in its goal
-Sometimes there is an explicit set of possible goal states.
(example: in Amman).
-Sometimes the goal is described by the properties
• instead of stating explicitly the set of states
• Example: Chess
• the agent wins if it can capture the KING of the opponent on next
move ( checkmate).
• no matter what the opponent does
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Well-defined problems and solutions
• A path cost function,
• assigns a numeric cost to each path
• = performance measure
• denoted by g
• to distinguish the best path from others
• Usually the path cost is
• the sum of the step costs of the individual actions (in the action list)
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Well-defined problems and solutions
• Together a problem is defined by
• Initial state
• Actions
• Successor function
• Goal test
• Path cost function
• The solution of a problem is then
• a path from the initial state to a state satisfying the goal test
• Optimal solution
• the solution with lowest path cost among all solutions
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Formulating problems
• Besides the five components for problem formulation
• anything else?
• Abstraction
• the process to take out the irrelevant information
• leave the most essential parts to the description of the states
( Remove detail from representation)
• Conclusion: Only the most important parts that are
contributing to searching are used
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Problem-Solving Agents
• agents whose task is to solve a particular problem (steps)
• goal formulation
• what is the goal state
• what are important characteristics of the goal state
• how does the agent know that it has reached the goal
• are there several possible goal states
• are they equal or are some more preferable
• problem formulation
• what are the possible states of the world relevant for solving the
problem
• what information is accessible to the agent
• how can the agent progress from state to state
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Example: Romania
• On holiday in Romania; currently in Arad.
• Flight leaves tomorrow from Bucharest
• Formulate goal:
• be in Bucharest
• Formulate problem:
• Initial states:
• actions:
• Transition Model
• Goal Test
• Path Cost
• Search solution :
sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest
• Execution
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Example: Romania
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Single-state problem formulation
• Initial State : In(Arad)
• Action : In(Arad){Go(Sibiu),Go(Timisoara),Go(Zerind)}
• Transition Model : Result(In(Arad),Go(Zerind))=In(Zerind)
• Goal Test : In(Zerind) ==In (Bucharest) Reached the Destination??
• Path Cost : Kms , Time in Hrs
• A solution is a sequence of actions leading from the initial state to a
goal state
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Example problems
• Toy problems
• those intended to illustrate or exercise various problem-solving methods
• E.g., puzzle, chess, etc.
• Real-world problems
• tend to be more difficult and whose solutions people actually care about
• E.g., Design, planning, etc.
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 2 : Toy problems
Example : Vacuum world
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
Initial State : Any State can be Designed as Initial State
Action : L,R,S (If Large Environment UP & DOWN)
Transition Model : L->R – Successor – Suck the Dirt and Clean
R->L- Suck the Dirt and Clean
Goal Test : Check whether All the all Squares are Clean
Path Cost : Each Step cost 1(no of steps in a path)
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 3 :The 8-puzzle
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 3 :The 8-puzzle
Initial State : Any State can be Designed as Initial State
Action : L,R,S ,UP ,DOWN)
Transition Model : U->D,D->U,L->R,R->L Successor –
Action and State Returning State
Goal Test : Check whether it reaches the Goal State
Path Cost : Each Step cost 1(no of steps in a path)
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 3 :The 8-puzzle
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 4 : The 8-queens
Q
Q
Q
Q
Q
Q
Q
Q
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
PROBLEM 4 : The 8-queens
SRI SHAKTHI
INSTITUTE OF ENGINEERING & TECHNOLOGY
REAL WORLD PROBLEMS
• ROUTE FINDING PROBLEMS
• TOURING PROBLEMS
• TRAVEING SALES PERSON PROBLEM
• VLSI LAYOUT
• ROBOT NAVIGATION
• AUTOMATION ASSEMBLY SEQUENCING

More Related Content

PDF
Research Methodology & IPR-II
PPTX
Problem solving agents
PPTX
Artificial Intelligence Searching Techniques
PPTX
ARTIFICIAL INTELLIGENCE BASIC PPT
PDF
Fundamentals of Artificial Intelligence — QU AIO Leadership in AI
PPTX
A Comprehensive Review of Large Language Models for.pptx
PDF
Mahindra Intern Letter
PPTX
Artificial intelligence- Logic Agents
Research Methodology & IPR-II
Problem solving agents
Artificial Intelligence Searching Techniques
ARTIFICIAL INTELLIGENCE BASIC PPT
Fundamentals of Artificial Intelligence — QU AIO Leadership in AI
A Comprehensive Review of Large Language Models for.pptx
Mahindra Intern Letter
Artificial intelligence- Logic Agents

What's hot (20)

PPTX
Problem reduction AND OR GRAPH & AO* algorithm.ppt
PDF
A* Search Algorithm
PPTX
Structure of agents
PPTX
Constraint satisfaction problems (csp)
PPTX
search strategies in artificial intelligence
PDF
Production System in AI
PPT
Artificial Intelligence -- Search Algorithms
PPTX
A* Algorithm
PPTX
Informed search algorithms.pptx
PDF
I.BEST FIRST SEARCH IN AI
PDF
State Space Search in ai
PPTX
Knowledge representation and Predicate logic
PDF
Expert systems Artificial Intelligence
PPTX
Issues in knowledge representation
PPTX
Problem solving in Artificial Intelligence.pptx
PPTX
Hill climbing algorithm
PPSX
Fuzzy expert system
PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
Means End Analysis (MEA) in Artificial.pptx
PPTX
And or graph
Problem reduction AND OR GRAPH & AO* algorithm.ppt
A* Search Algorithm
Structure of agents
Constraint satisfaction problems (csp)
search strategies in artificial intelligence
Production System in AI
Artificial Intelligence -- Search Algorithms
A* Algorithm
Informed search algorithms.pptx
I.BEST FIRST SEARCH IN AI
State Space Search in ai
Knowledge representation and Predicate logic
Expert systems Artificial Intelligence
Issues in knowledge representation
Problem solving in Artificial Intelligence.pptx
Hill climbing algorithm
Fuzzy expert system
Heuristic Search Techniques Unit -II.ppt
Means End Analysis (MEA) in Artificial.pptx
And or graph
Ad

Similar to UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf (20)

PPTX
3. Module_2_Chapter_3hvghcyttrctrctfcf.pptx
PPTX
Artificial intelligence(04)
PPTX
Problem Solving Agents-Introduction_L3.pptx
PDF
Lecture 3 problem solving
PDF
Chapter 3 - Searching and prPlanning.pdf
PDF
Artificial Intelegince-chapter three-problem solving.pdf
PPT
02-solving-problems-by-searching-(us).ppt
PDF
AI Chapter Two Solving problems by searching.pdf
PPTX
Problem Solving Agents decide what to do by finding a sequence of actions tha...
PPTX
Planning
PPT
3 probsolver edited.ppt
PPT
CH2_AI_Lecture1.ppt
PPTX
22PCOAM11 : Session 2 Problem Solving Agent and searching for solutions.pptx
PPTX
Machine Learning Lecture number five.pptx
PPTX
AI_Session 3 Problem Solving Agent and searching for solutions.pptx
PPTX
Machine Learning Lecture Number three
PPTX
INTELLIGENT AGENTS.pptx
PDF
Problem Solving
PPTX
Lecture 3 Problem Solving.pptx
PPTX
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
3. Module_2_Chapter_3hvghcyttrctrctfcf.pptx
Artificial intelligence(04)
Problem Solving Agents-Introduction_L3.pptx
Lecture 3 problem solving
Chapter 3 - Searching and prPlanning.pdf
Artificial Intelegince-chapter three-problem solving.pdf
02-solving-problems-by-searching-(us).ppt
AI Chapter Two Solving problems by searching.pdf
Problem Solving Agents decide what to do by finding a sequence of actions tha...
Planning
3 probsolver edited.ppt
CH2_AI_Lecture1.ppt
22PCOAM11 : Session 2 Problem Solving Agent and searching for solutions.pptx
Machine Learning Lecture number five.pptx
AI_Session 3 Problem Solving Agent and searching for solutions.pptx
Machine Learning Lecture Number three
INTELLIGENT AGENTS.pptx
Problem Solving
Lecture 3 Problem Solving.pptx
CS 3491 Artificial Intelligence and Machine Learning Unit I Problem Solving
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
PPT on Performance Review to get promotions
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPT
Project quality management in manufacturing
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
composite construction of structures.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Lesson 3_Tessellation.pptx finite Mathematics
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT on Performance Review to get promotions
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Project quality management in manufacturing
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
composite construction of structures.pdf
Sustainable Sites - Green Building Construction
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf

UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf

  • 1. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Solving Problems by Searching • Reflex agent is simple(Cannot Operate in Well Environment, its Action –Based on Current Situation and ignoring the History of Perception) e.g Car Front Brakes • base their actions on • a direct mapping from states to actions • but cannot work well in environments • which this mapping would be too large to store • and would take too long to learn • Hence, goal-based agent is used
  • 2. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Problem-solving agent • Problem-solving agent • A kind of goal-based agent – Choose their actions in order to achieve Goals. • This Allows the Agent to a way of Choosing among Multiple Possibilities, selecting the one which reaches a Goal states. • It Requires Searching and Planning Techniques. E.g. GPS – Finding a path to certain Destination. • It solves problem by • finding sequences of actions that lead to desirable states (goals) • To solve a problem, • the first step is the goal formulation, based on the current situation
  • 3. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Problem Solving Agents : • Intelligent Agent are Supposed to “ To Maximize their Performance Measure ” • Achievement : It can Adopt a Goal and Aim at Satisfying.
  • 4. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 5. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 6. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 7. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 8. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 9. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Goal formulation • The goal is formulated • as a set of world states, in which the goal is satisfied • Reaching from initial state 🡪 goal state • Actions are required • Actions are the operators • causing transitions between world states • Actions should be abstract enough at a certain degree, instead of very detailed • E.g., turn left VS turn left 30 degree, etc.
  • 10. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Problem formulation Well-defined problems and solutions A problem is defined by 5 components: • Initial state • Actions • Transition model or (Successor functions) • Goal Test. • Path Cost.
  • 11. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY
  • 12. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Well-defined problems and solutions • A problem is defined by 4 components: • The initial state • that the agent starts in • The set of possible actions • Transition model: description of what each action does. (successor functions): refer to any state reachable from given state by a single action • Initial state, actions and Transition model define the state space • the set of all states reachable from the initial state by any sequence of actions. • A path in the state space: • any sequence of states connected by a sequence of actions.
  • 13. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Well-defined problems and solutions • The goal test • Applied to the current state to test • if the agent is in its goal -Sometimes there is an explicit set of possible goal states. (example: in Amman). -Sometimes the goal is described by the properties • instead of stating explicitly the set of states • Example: Chess • the agent wins if it can capture the KING of the opponent on next move ( checkmate). • no matter what the opponent does
  • 14. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Well-defined problems and solutions • A path cost function, • assigns a numeric cost to each path • = performance measure • denoted by g • to distinguish the best path from others • Usually the path cost is • the sum of the step costs of the individual actions (in the action list)
  • 15. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Well-defined problems and solutions • Together a problem is defined by • Initial state • Actions • Successor function • Goal test • Path cost function • The solution of a problem is then • a path from the initial state to a state satisfying the goal test • Optimal solution • the solution with lowest path cost among all solutions
  • 16. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Formulating problems • Besides the five components for problem formulation • anything else? • Abstraction • the process to take out the irrelevant information • leave the most essential parts to the description of the states ( Remove detail from representation) • Conclusion: Only the most important parts that are contributing to searching are used
  • 17. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Problem-Solving Agents • agents whose task is to solve a particular problem (steps) • goal formulation • what is the goal state • what are important characteristics of the goal state • how does the agent know that it has reached the goal • are there several possible goal states • are they equal or are some more preferable • problem formulation • what are the possible states of the world relevant for solving the problem • what information is accessible to the agent • how can the agent progress from state to state
  • 18. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Example: Romania • On holiday in Romania; currently in Arad. • Flight leaves tomorrow from Bucharest • Formulate goal: • be in Bucharest • Formulate problem: • Initial states: • actions: • Transition Model • Goal Test • Path Cost • Search solution : sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest • Execution
  • 19. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Example: Romania
  • 20. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Single-state problem formulation • Initial State : In(Arad) • Action : In(Arad){Go(Sibiu),Go(Timisoara),Go(Zerind)} • Transition Model : Result(In(Arad),Go(Zerind))=In(Zerind) • Goal Test : In(Zerind) ==In (Bucharest) Reached the Destination?? • Path Cost : Kms , Time in Hrs • A solution is a sequence of actions leading from the initial state to a goal state
  • 21. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Example problems • Toy problems • those intended to illustrate or exercise various problem-solving methods • E.g., puzzle, chess, etc. • Real-world problems • tend to be more difficult and whose solutions people actually care about • E.g., Design, planning, etc.
  • 22. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 2 : Toy problems Example : Vacuum world
  • 23. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY Initial State : Any State can be Designed as Initial State Action : L,R,S (If Large Environment UP & DOWN) Transition Model : L->R – Successor – Suck the Dirt and Clean R->L- Suck the Dirt and Clean Goal Test : Check whether All the all Squares are Clean Path Cost : Each Step cost 1(no of steps in a path)
  • 24. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 3 :The 8-puzzle
  • 25. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 3 :The 8-puzzle Initial State : Any State can be Designed as Initial State Action : L,R,S ,UP ,DOWN) Transition Model : U->D,D->U,L->R,R->L Successor – Action and State Returning State Goal Test : Check whether it reaches the Goal State Path Cost : Each Step cost 1(no of steps in a path)
  • 26. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 3 :The 8-puzzle
  • 27. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 4 : The 8-queens Q Q Q Q Q Q Q Q
  • 28. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY PROBLEM 4 : The 8-queens
  • 29. SRI SHAKTHI INSTITUTE OF ENGINEERING & TECHNOLOGY REAL WORLD PROBLEMS • ROUTE FINDING PROBLEMS • TOURING PROBLEMS • TRAVEING SALES PERSON PROBLEM • VLSI LAYOUT • ROBOT NAVIGATION • AUTOMATION ASSEMBLY SEQUENCING