SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
Problem Solving,
Search and Control
Strategies
Problem Solving, Search and Control Strategies
1. General Problem Solving
• Problem solving definitions:
• problem space,
• problem solving,
• state space,
• state change,
• structure of state space,
• problem solution,
• problem description;
• Examples of problem definition.
Problem Solving, Search and Control Strategies
• Problem definitions:
A problem is defined by its elements and their relations.
To provide a formal description of a problem, we need to do following:
a. Define a state space that contains all the possible configurations of the relevant objects, including some
impossibleones.
b. Specify one or more states, that describe possible situations, from which the problem-solving process may
start. These states are called initial states.
c. Specify one or more states that would be acceptable solution to the problem. These states are called goal
states.
d. Specify a set of rules that describe the actions (operators) available.
The problem can then be solved by using the rules, in combination with an appropriate control strategy, to move
through the problem space until a path from an initial state to a goal state is found.
Problem Solving, Search and Control Strategies
• Problem definitions:
This process is known as search.
 Search is fundamental to the problem-solving process.
 Search is a general mechanism that can be used when more
direct method is not known.
 Search provides the framework into which more direct methods
for solving subparts of a problem can be embedded.
A very large number of AI problems are formulated as search problems.
Problem Solving, Search and Control Strategies
Problem Space
• A problem space is represented by directed graph, where
nodes represent search state and paths represent the operators
applied to change the state.
• To simplify a search algorithms, it is often convenient to logically
and programmatically represent a problem space as a tree.
• A tree usually decreases the complexity of a search at a cost. Here,
the cost is due to duplicating some nodes on the tree that were
linked numerous times in the graph; e.g., node B and node D shown
in example below.
Problem Solving, Search and Control Strategies
Problem Space
A tree is a graph in which any two vertices are connected by
exactly one path. Alternatively, any connected graph with no
cycles is a tree.
Problem Solving, Search and Control Strategies
• States
A state is a representation of elements at a given moment. A
problem is defined by its elements and their relations.
At each instant of a problem, the elements have specific
descriptors and relations; the
descriptors tell - how to select elements ?
Among all possible states, there are two special states called :
 Initial state is the start point
 Final state is the goal state
Problem Solving, Search and Control Strategies
• State Change: Successor Function
A Successor Function is needed for state change.
The successor function moves one state to another
state.
Successor Function :
◊ Is a description of possible actions; a set of operators.
◊ Is a transformation function on a state representation, which
converts that state into another state.
◊ Defines a relation of accessibility among states.
◊ Represents the conditions of applicability of a state and
corresponding transformation function
Problem Solving, Search and Control Strategies
• State Space
A State space is the set of all states reachable from the
initial state. Definitions of terms :
◊ A state space forms a graph (or map) in which the nodes
are states and the arcs between nodes are actions.
◊ In state space, a path is a sequence of states connected by
a sequence of actions.
◊ The solution of a problem is part of the map formed by the state
space.
Problem Solving, Search and Control Strategies
• Structure of a State Space
The Structures of state space are trees and graphs.
 Tree is a hierarchical structure in a graphical form; and
 Graph is a non-hierarchical structure.
◊ Tree has only one path to a given node;
i.e., a tree has one and only one path from any point to any other point.
◊ Graph consists of a set of nodes (vertices) and a set of edges (arcs).
Arcs establish relationships (connections) between the nodes; i.e., a graph has several
paths to a given node.
◊ operators are directed arcs between nodes.
Search process explores the state space. In the worst case, the search explores all possible paths
between the initial state and the goal state.
Problem Solving, Search and Control Strategies
• Problem Solution
In the state space, a solution is a path from the initial state
to a goal state or sometime just a goal state.
◊ A Solution cost function assigns a numeric cost to each path; It
also gives the cost of applying the operators to the states.
◊ A Solution quality is measured by the path cost function; and An
optimal solution has the lowest path cost among all solutions.
◊ The solution may be any or optimal or all.
◊ The importance of cost depends on the problem and the
type of solution asked.
Problem Solving, Search and Control Strategies
1. Examples of Problem Definitions
Problem Solving, Search and Control Strategies
• Example 2 :
ProblemSolving(L-2).pdf
ProblemSolving(L-2).pdf
ProblemSolving(L-2).pdf
ProblemSolving(L-2).pdf
ProblemSolving(L-2).pdf

Weitere ähnliche Inhalte

Ähnlich wie ProblemSolving(L-2).pdf

2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt
Dr. Naushad Varish
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
babak danyal
 

Ähnlich wie ProblemSolving(L-2).pdf (20)

chapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdfchapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdf
 
Planning
Planning Planning
Planning
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptx
 
Lec#2
Lec#2Lec#2
Lec#2
 
Lecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligenceLecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligence
 
Artificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchArtificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-search
 
Astu DSA week 1-2.pdf
Astu DSA week 1-2.pdfAstu DSA week 1-2.pdf
Astu DSA week 1-2.pdf
 
2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt
 
Lecture 3 problem solving
Lecture 3   problem solvingLecture 3   problem solving
Lecture 3 problem solving
 
Planing presentation
Planing presentationPlaning presentation
Planing presentation
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
3 probsolver edited.ppt
3 probsolver edited.ppt3 probsolver edited.ppt
3 probsolver edited.ppt
 
chapterThree.pptx
chapterThree.pptxchapterThree.pptx
chapterThree.pptx
 
AI-03 Problems State Space.pptx
AI-03 Problems State Space.pptxAI-03 Problems State Space.pptx
AI-03 Problems State Space.pptx
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed search
 
CH4_AI_Lecture.ppt
CH4_AI_Lecture.pptCH4_AI_Lecture.ppt
CH4_AI_Lecture.ppt
 
AI Lesson 03
AI Lesson 03AI Lesson 03
AI Lesson 03
 
problemsolving with AI.pptx
problemsolving with AI.pptxproblemsolving with AI.pptx
problemsolving with AI.pptx
 

Mehr von AQSA SHAHID

(RISB).pptxRotter’s Incomplete Sentences Blank Test
 (RISB).pptxRotter’s Incomplete Sentences Blank Test (RISB).pptxRotter’s Incomplete Sentences Blank Test
(RISB).pptxRotter’s Incomplete Sentences Blank Test
AQSA SHAHID
 
sleep wake disorder.pptx
sleep wake disorder.pptxsleep wake disorder.pptx
sleep wake disorder.pptx
AQSA SHAHID
 

Mehr von AQSA SHAHID (20)

Behaviorism
BehaviorismBehaviorism
Behaviorism
 
Cognitive Perspective.pptx
Cognitive Perspective.pptxCognitive Perspective.pptx
Cognitive Perspective.pptx
 
GESTALT PSYCHOLOGY.pptx
GESTALT PSYCHOLOGY.pptxGESTALT PSYCHOLOGY.pptx
GESTALT PSYCHOLOGY.pptx
 
Thinking.pptx
Thinking.pptxThinking.pptx
Thinking.pptx
 
Pro social behavior
Pro social behaviorPro social behavior
Pro social behavior
 
Forgiveness
ForgivenessForgiveness
Forgiveness
 
socio cultural perspective in psychology
socio cultural perspective in psychologysocio cultural perspective in psychology
socio cultural perspective in psychology
 
REBT-notes .doc
REBT-notes .docREBT-notes .doc
REBT-notes .doc
 
Positive Cognitive States and Processes.pptx
Positive Cognitive States and Processes.pptxPositive Cognitive States and Processes.pptx
Positive Cognitive States and Processes.pptx
 
Coping strategies and emotional intelligence-Group 5.pptx
Coping strategies and emotional intelligence-Group 5.pptxCoping strategies and emotional intelligence-Group 5.pptx
Coping strategies and emotional intelligence-Group 5.pptx
 
Language (1)[1].pptx
Language (1)[1].pptxLanguage (1)[1].pptx
Language (1)[1].pptx
 
reasoning ppt.pptx
reasoning ppt.pptxreasoning ppt.pptx
reasoning ppt.pptx
 
grp 8 cognitive ppt.pptx
grp 8 cognitive ppt.pptxgrp 8 cognitive ppt.pptx
grp 8 cognitive ppt.pptx
 
Life is beautifull.pptx
Life is beautifull.pptxLife is beautifull.pptx
Life is beautifull.pptx
 
Intro and Defininition of Positive Psychology.pdf
Intro and Defininition of Positive Psychology.pdfIntro and Defininition of Positive Psychology.pdf
Intro and Defininition of Positive Psychology.pdf
 
Historical Roots of Positive Psychology (1).pdf
Historical Roots of Positive Psychology (1).pdfHistorical Roots of Positive Psychology (1).pdf
Historical Roots of Positive Psychology (1).pdf
 
Educational psychology.pptx
Educational psychology.pptxEducational psychology.pptx
Educational psychology.pptx
 
(RISB).pptxRotter’s Incomplete Sentences Blank Test
 (RISB).pptxRotter’s Incomplete Sentences Blank Test (RISB).pptxRotter’s Incomplete Sentences Blank Test
(RISB).pptxRotter’s Incomplete Sentences Blank Test
 
(Raven’s Progressive Matrices) Standard Progressive Matrices
(Raven’s Progressive Matrices)Standard Progressive Matrices(Raven’s Progressive Matrices)Standard Progressive Matrices
(Raven’s Progressive Matrices) Standard Progressive Matrices
 
sleep wake disorder.pptx
sleep wake disorder.pptxsleep wake disorder.pptx
sleep wake disorder.pptx
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
 
(👑VVIP ISHAAN ) Russian Call Girls Service Navi Mumbai🖕9920874524🖕Independent...
(👑VVIP ISHAAN ) Russian Call Girls Service Navi Mumbai🖕9920874524🖕Independent...(👑VVIP ISHAAN ) Russian Call Girls Service Navi Mumbai🖕9920874524🖕Independent...
(👑VVIP ISHAAN ) Russian Call Girls Service Navi Mumbai🖕9920874524🖕Independent...
 
Call Girls Tirupati Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Tirupati Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Tirupati Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Tirupati Just Call 8250077686 Top Class Call Girl Service Available
 
Manyata Tech Park ( Call Girls ) Bangalore ✔ 6297143586 ✔ Hot Model With Sexy...
Manyata Tech Park ( Call Girls ) Bangalore ✔ 6297143586 ✔ Hot Model With Sexy...Manyata Tech Park ( Call Girls ) Bangalore ✔ 6297143586 ✔ Hot Model With Sexy...
Manyata Tech Park ( Call Girls ) Bangalore ✔ 6297143586 ✔ Hot Model With Sexy...
 
Bangalore Call Girls Nelamangala Number 9332606886 Meetin With Bangalore Esc...
Bangalore Call Girls Nelamangala Number 9332606886  Meetin With Bangalore Esc...Bangalore Call Girls Nelamangala Number 9332606886  Meetin With Bangalore Esc...
Bangalore Call Girls Nelamangala Number 9332606886 Meetin With Bangalore Esc...
 
Top Rated Bangalore Call Girls Mg Road ⟟ 9332606886 ⟟ Call Me For Genuine S...
Top Rated Bangalore Call Girls Mg Road ⟟   9332606886 ⟟ Call Me For Genuine S...Top Rated Bangalore Call Girls Mg Road ⟟   9332606886 ⟟ Call Me For Genuine S...
Top Rated Bangalore Call Girls Mg Road ⟟ 9332606886 ⟟ Call Me For Genuine S...
 
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
 
Call Girls Cuttack Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Cuttack Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Cuttack Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Cuttack Just Call 9907093804 Top Class Call Girl Service Available
 
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
 
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
 
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
 
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort ServicePremium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
 
Call Girls Bareilly Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Bareilly Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Bareilly Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Bareilly Just Call 8250077686 Top Class Call Girl Service Available
 
Call Girls Ooty Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Ooty Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Ooty Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Ooty Just Call 8250077686 Top Class Call Girl Service Available
 
Call Girls Haridwar Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Haridwar Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Haridwar Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Haridwar Just Call 8250077686 Top Class Call Girl Service Available
 
Call Girls Gwalior Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Gwalior Just Call 8617370543 Top Class Call Girl Service AvailableCall Girls Gwalior Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Gwalior Just Call 8617370543 Top Class Call Girl Service Available
 
Top Rated Hyderabad Call Girls Erragadda ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated  Hyderabad Call Girls Erragadda ⟟ 6297143586 ⟟ Call Me For Genuine ...Top Rated  Hyderabad Call Girls Erragadda ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated Hyderabad Call Girls Erragadda ⟟ 6297143586 ⟟ Call Me For Genuine ...
 
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
 
Call Girls Bangalore Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Bangalore Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Bangalore Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Bangalore Just Call 8250077686 Top Class Call Girl Service Available
 
Top Quality Call Girl Service Kalyanpur 6378878445 Available Call Girls Any Time
Top Quality Call Girl Service Kalyanpur 6378878445 Available Call Girls Any TimeTop Quality Call Girl Service Kalyanpur 6378878445 Available Call Girls Any Time
Top Quality Call Girl Service Kalyanpur 6378878445 Available Call Girls Any Time
 

ProblemSolving(L-2).pdf

  • 1. Problem Solving, Search and Control Strategies
  • 2. Problem Solving, Search and Control Strategies 1. General Problem Solving • Problem solving definitions: • problem space, • problem solving, • state space, • state change, • structure of state space, • problem solution, • problem description; • Examples of problem definition.
  • 3. Problem Solving, Search and Control Strategies • Problem definitions: A problem is defined by its elements and their relations. To provide a formal description of a problem, we need to do following: a. Define a state space that contains all the possible configurations of the relevant objects, including some impossibleones. b. Specify one or more states, that describe possible situations, from which the problem-solving process may start. These states are called initial states. c. Specify one or more states that would be acceptable solution to the problem. These states are called goal states. d. Specify a set of rules that describe the actions (operators) available. The problem can then be solved by using the rules, in combination with an appropriate control strategy, to move through the problem space until a path from an initial state to a goal state is found.
  • 4. Problem Solving, Search and Control Strategies • Problem definitions: This process is known as search.  Search is fundamental to the problem-solving process.  Search is a general mechanism that can be used when more direct method is not known.  Search provides the framework into which more direct methods for solving subparts of a problem can be embedded. A very large number of AI problems are formulated as search problems.
  • 5. Problem Solving, Search and Control Strategies Problem Space • A problem space is represented by directed graph, where nodes represent search state and paths represent the operators applied to change the state. • To simplify a search algorithms, it is often convenient to logically and programmatically represent a problem space as a tree. • A tree usually decreases the complexity of a search at a cost. Here, the cost is due to duplicating some nodes on the tree that were linked numerous times in the graph; e.g., node B and node D shown in example below.
  • 6. Problem Solving, Search and Control Strategies Problem Space A tree is a graph in which any two vertices are connected by exactly one path. Alternatively, any connected graph with no cycles is a tree.
  • 7. Problem Solving, Search and Control Strategies • States A state is a representation of elements at a given moment. A problem is defined by its elements and their relations. At each instant of a problem, the elements have specific descriptors and relations; the descriptors tell - how to select elements ? Among all possible states, there are two special states called :  Initial state is the start point  Final state is the goal state
  • 8. Problem Solving, Search and Control Strategies • State Change: Successor Function A Successor Function is needed for state change. The successor function moves one state to another state. Successor Function : ◊ Is a description of possible actions; a set of operators. ◊ Is a transformation function on a state representation, which converts that state into another state. ◊ Defines a relation of accessibility among states. ◊ Represents the conditions of applicability of a state and corresponding transformation function
  • 9. Problem Solving, Search and Control Strategies • State Space A State space is the set of all states reachable from the initial state. Definitions of terms : ◊ A state space forms a graph (or map) in which the nodes are states and the arcs between nodes are actions. ◊ In state space, a path is a sequence of states connected by a sequence of actions. ◊ The solution of a problem is part of the map formed by the state space.
  • 10. Problem Solving, Search and Control Strategies • Structure of a State Space The Structures of state space are trees and graphs.  Tree is a hierarchical structure in a graphical form; and  Graph is a non-hierarchical structure. ◊ Tree has only one path to a given node; i.e., a tree has one and only one path from any point to any other point. ◊ Graph consists of a set of nodes (vertices) and a set of edges (arcs). Arcs establish relationships (connections) between the nodes; i.e., a graph has several paths to a given node. ◊ operators are directed arcs between nodes. Search process explores the state space. In the worst case, the search explores all possible paths between the initial state and the goal state.
  • 11. Problem Solving, Search and Control Strategies • Problem Solution In the state space, a solution is a path from the initial state to a goal state or sometime just a goal state. ◊ A Solution cost function assigns a numeric cost to each path; It also gives the cost of applying the operators to the states. ◊ A Solution quality is measured by the path cost function; and An optimal solution has the lowest path cost among all solutions. ◊ The solution may be any or optimal or all. ◊ The importance of cost depends on the problem and the type of solution asked.
  • 12. Problem Solving, Search and Control Strategies 1. Examples of Problem Definitions
  • 13. Problem Solving, Search and Control Strategies • Example 2 :