SlideShare a Scribd company logo
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

Lec#2
Lec#2Lec#2
Lec#2
Ali Shah
 
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
Asst.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 , probloms
SlimAmiri
 
Final-AI-Uninformed.pdf
Final-AI-Uninformed.pdfFinal-AI-Uninformed.pdf
Final-AI-Uninformed.pdf
harinathkuruva
 
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
 
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
mmpnair0
 
ai (1) (1).pptx
ai (1) (1).pptxai (1) (1).pptx
ai (1) (1).pptx
ElizabethHall95
 

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
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)
 
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
 
ai (1) (1).pptx
ai (1) (1).pptxai (1) (1).pptx
ai (1) (1).pptx
 

Recently uploaded

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 

Recently uploaded (20)

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 

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.