SlideShare a Scribd company logo
1 of 28
Control strategies
 Helps usdecidewhich rule toapply next.
 What todowhen there are more than 1 matching
rules?
 Good control strategyshould:
1.cause motion
2.Systematic
Control strategies are classified as:
1. Uninformed/blind search controlstrategy
Do not haveadditional infoaboutstates beyond problem def.
Total search space is looked for solution
No info is used todetermine preference of onechild over
other.
Example: 1. Breadth First Search(BFS), Depth First
Search(DFS).
A
B
C
E
D H
F
G
State Space withoutany extra information associated with each state
2. Informed/Directed Search Control Strategy
Some info about problem space(heuristic) is used to
computepreference among thechildren forexploration
and expansion.
Examples: 1. Best First Search, 2. ProblemDecomposition,
A*, Mean end Analysis
Heuristic function:
It mapseach state toa numerical valuewhich depicts
goodness of anode.
H(n)=value
Where ,
H() is a heuristicfunctionand ‘n’ is the currentstate.
Ex: in travelling salesperson problem heuristic value
associated with each node(city) might reflect
estimated distanceof thecurrent node from thegoal
node.
The heuristic we use hereis called HSLD Straight line
Distance heuristic.
S
B
A
2
13
5
E
C
8
14
10
D
6
F
G
H
I
J
L
M
K
1
5
0
7
1
Exampleof the statespacewith heuristicvaluesassociated with each state
Breadth First Search (BFS)
 Algorithm:
 1. Createavariable NODE_LISTand set it to
initial state.
 2.Until a Goal State is found or NODE_LIST is
empty:
 A) Remove the first element from NODE_LIST
amd call itas ‘E’. If the node listwas empty then
Quit.
 B) Foreach way thateach rulecan match thestate
described in ‘E’ do:
 i) Apply the rule togenerate the new state
 Ii) If the new state is agoal state, quitand return this
state.
 Iii) otherwiseadd the newstateat theend of
NODE_LIST.
 Considerthe following State Space to be searched:
A
B
C
E
D H
F
G
Let A be thestartstateand G be the final orgoal state to be searched.
NODE_LIST={A} A is not goal node it isexpanded .
B
C
E
D H
F
G
NODE_LIST={B,C}
A
C
E
D H
F
G
NODE_LIST={C,D,E}
A
B
E
D H
F
G
NODE_LIST={D,E,G}
A
B
C
E
H
F
G
NODE_LIST={E,G,F}
A
B
C
D
H
F
G
NODE_LIST={G,F}
A
B
C
D
E
H
F
G
NODE_LIST={G,F}
A
B
C
D
E
GOAL NODE FOUND!!
H
F
G
NODE_LIST={G,F}
A
B
C
D
E
TRAVERSAL ORDER: A-B-C-D-E-G
Depth First Search
Algorithm:
1) If initial state isa goal state, quitand return success.
2) Otherwisedo the following until successor failure is
reported:
a. Generate successor ‘E’ of the initial state. If thereare no
more successors signal failure.
b. Call Depth-First-Searchwith ‘E’ as he start state. If there
are no more successors then , signalfailure.
c. If success is obtained, return success, otherwisecontinue
in this loop.
A
B
C
E
D H
F
G
Consider the following SearchSpace:
DFS(A)
A
B
C
E
D H
F
G
Consider the following SearchSpace:
DFS(A)
C
E
D H
F
G
Consider the following SearchSpace:
DFS(B)
A
B
C
D H
F
G
Consider the following SearchSpace:
DFS(E)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(B)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(D)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(F)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(H)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(F)
A
B
E
C
D H
F
G
Consider the following SearchSpace:
DFS(G)
A
B
E
GOAL NODE FOUND!!
Advantages of BFS:
1. BFS is a systematicsearch strategy- all nodesat level n are
considered before going to n+1 thlevel.
2. If anysolutionexists then BFS guarentees to find it.
3. If thereare many solutions , BFS will always find the
shortest pathsolution.
4. Nevergets trapped exploring a blind alley
Disadvantages of BFS:
1.
2.
All nodes are to be generated at any level. So even
unwanted nodes are to be remembered. Memory
wastage.
Timeand spacecomplexity is exponential type- Hurdle.
Advantages of DFS:
1. Memory requirements in DFS are lesscompared to BFS as
only nodeson thecurrent path are stored.
2. DFS may find a solutionwithoutexamining much of the
search space of all.
Disadvantages of BFS:
1. This search can goon deeperand deeper into the search
space and thus can get lost. This is referred to as blind
alley.

More Related Content

Similar to Control Strategies.pptx

AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAsst.prof M.Gokilavani
 
problem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsproblem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsSlimAmiri
 
Final-AI-Uninformed.pdf
Final-AI-Uninformed.pdfFinal-AI-Uninformed.pdf
Final-AI-Uninformed.pdfharinathkuruva
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.pptmmpnair0
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)ssuser2a76b5
 

Similar to Control Strategies.pptx (7)

Lec#2
Lec#2Lec#2
Lec#2
 
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
 
problem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsproblem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , probloms
 
Final-AI-Uninformed.pdf
Final-AI-Uninformed.pdfFinal-AI-Uninformed.pdf
Final-AI-Uninformed.pdf
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)
 
ai (1) (1).pptx
ai (1) (1).pptxai (1) (1).pptx
ai (1) (1).pptx
 

Recently uploaded

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Control Strategies.pptx

  • 1. Control strategies  Helps usdecidewhich rule toapply next.  What todowhen there are more than 1 matching rules?  Good control strategyshould: 1.cause motion 2.Systematic
  • 2. Control strategies are classified as: 1. Uninformed/blind search controlstrategy Do not haveadditional infoaboutstates beyond problem def. Total search space is looked for solution No info is used todetermine preference of onechild over other. Example: 1. Breadth First Search(BFS), Depth First Search(DFS).
  • 3. A B C E D H F G State Space withoutany extra information associated with each state
  • 4. 2. Informed/Directed Search Control Strategy Some info about problem space(heuristic) is used to computepreference among thechildren forexploration and expansion. Examples: 1. Best First Search, 2. ProblemDecomposition, A*, Mean end Analysis Heuristic function: It mapseach state toa numerical valuewhich depicts goodness of anode. H(n)=value Where , H() is a heuristicfunctionand ‘n’ is the currentstate.
  • 5. Ex: in travelling salesperson problem heuristic value associated with each node(city) might reflect estimated distanceof thecurrent node from thegoal node. The heuristic we use hereis called HSLD Straight line Distance heuristic.
  • 7. Breadth First Search (BFS)  Algorithm:  1. Createavariable NODE_LISTand set it to initial state.  2.Until a Goal State is found or NODE_LIST is empty:  A) Remove the first element from NODE_LIST amd call itas ‘E’. If the node listwas empty then Quit.  B) Foreach way thateach rulecan match thestate described in ‘E’ do:  i) Apply the rule togenerate the new state  Ii) If the new state is agoal state, quitand return this state.  Iii) otherwiseadd the newstateat theend of NODE_LIST.
  • 8.  Considerthe following State Space to be searched: A B C E D H F G Let A be thestartstateand G be the final orgoal state to be searched. NODE_LIST={A} A is not goal node it isexpanded .
  • 16. Depth First Search Algorithm: 1) If initial state isa goal state, quitand return success. 2) Otherwisedo the following until successor failure is reported: a. Generate successor ‘E’ of the initial state. If thereare no more successors signal failure. b. Call Depth-First-Searchwith ‘E’ as he start state. If there are no more successors then , signalfailure. c. If success is obtained, return success, otherwisecontinue in this loop.
  • 17. A B C E D H F G Consider the following SearchSpace: DFS(A)
  • 18. A B C E D H F G Consider the following SearchSpace: DFS(A)
  • 19. C E D H F G Consider the following SearchSpace: DFS(B) A B
  • 20. C D H F G Consider the following SearchSpace: DFS(E) A B E
  • 21. C D H F G Consider the following SearchSpace: DFS(B) A B E
  • 22. C D H F G Consider the following SearchSpace: DFS(D) A B E
  • 23. C D H F G Consider the following SearchSpace: DFS(F) A B E
  • 24. C D H F G Consider the following SearchSpace: DFS(H) A B E
  • 25. C D H F G Consider the following SearchSpace: DFS(F) A B E
  • 26. C D H F G Consider the following SearchSpace: DFS(G) A B E GOAL NODE FOUND!!
  • 27. Advantages of BFS: 1. BFS is a systematicsearch strategy- all nodesat level n are considered before going to n+1 thlevel. 2. If anysolutionexists then BFS guarentees to find it. 3. If thereare many solutions , BFS will always find the shortest pathsolution. 4. Nevergets trapped exploring a blind alley Disadvantages of BFS: 1. 2. All nodes are to be generated at any level. So even unwanted nodes are to be remembered. Memory wastage. Timeand spacecomplexity is exponential type- Hurdle.
  • 28. Advantages of DFS: 1. Memory requirements in DFS are lesscompared to BFS as only nodeson thecurrent path are stored. 2. DFS may find a solutionwithoutexamining much of the search space of all. Disadvantages of BFS: 1. This search can goon deeperand deeper into the search space and thus can get lost. This is referred to as blind alley.