SlideShare une entreprise Scribd logo
1  sur  20
EXAMPLE OF ITERATIVE DEEPENING
SEARCH & BIDIRECTIONAL SEARCH
Presented by-
Abhijeet Agarwal
M.Tech 1st Year
Roll no- 1704301
CONTENT
 Search Strategies
 Iterative Deepening Search Technique
 Iterative deepening search l =0,1,2,3
 Properties of Iterative Deeping Search
 Examples of Iterative Deeping Search
 Bidirectional Search
 Search
 Factor Affect the Search
 Examples
SEARCH STRATEGIES
• A search strategy is defined by picking the order of
node expansion
• Strategies are evaluated along the following
dimensions:
– completeness: does it always find a solution if one
exists?
– time complexity: number of nodes generated
– space complexity: maximum number of nodes in
memory
– optimality: does it always find a least-cost solution?
• Time and space complexity are measured in terms of
– b: maximum branching factor of the search tree
– d: depth of the least-cost solution
– m: maximum depth of the state space (may be ∞)
ITERATIVE DEEPENING DEPTH
SEARCH TECHNIQUE
COMBINATION OF DEPTH FIRST
SEARCH AND BREADTH FIRST
SEARCH.
ITERATIVE DEEPENING SEARCH
– The problem with depth limited search on a
suitable depth parameter.
• This search tries all possible depth limits first 0,
then 1, then 2 etc un till a solution found.
• For large search space where is the depth of
solution is not known then it is normally
preferred.
ITERATIVE DEEPENING SEARCH L =0
ITERATIVE DEEPENING SEARCH L
=1
ITERATIVE DEEPENING SEARCH L
=2
ITERATIVE DEEPENING SEARCH L
=3
PROPERTIES OF ITERATIVE
DEEPENING SEARCH
• Complete- Yes
• Time- (b d)
• Space- (b d)
• Optimal- Yes, if step cost = 1
EXAMPLE 1:- SEARCH TREE FOR THE
8 PUZZLE PROBLEM
EXAMPLE 2:- 8-QUEENS PROBLEM
-any arrangement of n<=8 queens
-or arrangements of n<=8
queens in leftmost n
columns, 1 per column, such
that no queen
attacks any other.
initial state -no queens on the board
actions -add queen to any empty square
-or add queen to leftmost empty
square such that it is not attacked by other
queens.
goal test 8 queens on the board, none
attacked.
path cost-1 per move
BIDIRECTIONAL SEARCH WITH
EXAMPLES
• It is combination of feature of Breadth first, Best first, A*
search.
• Breadth first : Adds nodes to a list every time it checks
for the goal node using a tree structure until it is reached
• Best-first: Will choose which node should be next using
the node's score (often an f-value) which takes into
account its cost and length.
• A*: similar to best-first but will take into account the cost
of the path from the start to the specified node as well as
the cost from that node to the goal.
• The most effective map search would be bidirectional
combined with A*
BIDIRECTIONAL SEARCH
• Expand nodes from the start and goal state
simultaneously. Check at each stage if the nodes of one
have been generated by the other. If so, the path
concatenation is the solution
• The operators must be reversible
• single start, single goal
• Efficient check for identical states
• Type of search that happens in each half
SEARCH
• Optimality: yes
• Time complexity: O(b^d/2)
• Completeness: yes
• Space complexity: O(b^d/2)
Initial State
Final State
d
d /
2
FACTORS THAT AFFECT SEARCH EFFICIENCY
1- Branching factor: move in the direction with the
lower branching factor
I
G I
G
More start or goal states. Move towards the larger
set
I
G
G
G
I
G
I
I
EXAMPLE-1
 Suppose b = 10, d = 6.
 Suppose each direction runs BFS
 In the worst case, two searches meet when each
search has generated all of the nodes at depth 3.
 Breadth first search will examine 11, 11, 111
nodes.
 Bidirectional search will examine 2,220 nodes.
Example of Bi Directional Problem
Find the Shortest Root
Example of iterative deepening search &amp; bidirectional search

Contenu connexe

Tendances

Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 

Tendances (20)

Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Iterative deepening search
Iterative deepening searchIterative deepening search
Iterative deepening search
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
 
Planning
PlanningPlanning
Planning
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Production systems
Production systemsProduction systems
Production systems
 
Introduction and architecture of expert system
Introduction  and architecture of expert systemIntroduction  and architecture of expert system
Introduction and architecture of expert system
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
 

Similaire à Example of iterative deepening search &amp; bidirectional search

Session 4 Agent types in Internet of things
Session 4 Agent types in Internet of thingsSession 4 Agent types in Internet of things
Session 4 Agent types in Internet of things
SKCTCSE
 
Lecture 08 uninformed search techniques
Lecture 08 uninformed search techniquesLecture 08 uninformed search techniques
Lecture 08 uninformed search techniques
Hema Kashyap
 
seminar HBMO
seminar HBMOseminar HBMO
seminar HBMO
avaninith
 

Similaire à Example of iterative deepening search &amp; bidirectional search (20)

Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
 
Searching is the universal technique of problem solving in Artificial Intelli...
Searching is the universal technique of problem solving in Artificial Intelli...Searching is the universal technique of problem solving in Artificial Intelli...
Searching is the universal technique of problem solving in Artificial Intelli...
 
AI: AI & problem solving
AI: AI & problem solvingAI: AI & problem solving
AI: AI & problem solving
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
uninformed search part 2.pptx
uninformed search part 2.pptxuninformed search part 2.pptx
uninformed search part 2.pptx
 
2.uninformed search
2.uninformed search2.uninformed search
2.uninformed search
 
abhishek ppt.pptx
abhishek ppt.pptxabhishek ppt.pptx
abhishek ppt.pptx
 
Session 6 Search Introduction in Internet of things
Session 6 Search Introduction in Internet of thingsSession 6 Search Introduction in Internet of things
Session 6 Search Introduction in Internet of things
 
Session 4 Agent types in Internet of things
Session 4 Agent types in Internet of thingsSession 4 Agent types in Internet of things
Session 4 Agent types in Internet of things
 
AI(Module1).pptx
AI(Module1).pptxAI(Module1).pptx
AI(Module1).pptx
 
NEW-II.pptx
NEW-II.pptxNEW-II.pptx
NEW-II.pptx
 
Chap11 slides
Chap11 slidesChap11 slides
Chap11 slides
 
NEW-II.pptx
NEW-II.pptxNEW-II.pptx
NEW-II.pptx
 
Lecture 08 uninformed search techniques
Lecture 08 uninformed search techniquesLecture 08 uninformed search techniques
Lecture 08 uninformed search techniques
 
Week 7.pdf
Week 7.pdfWeek 7.pdf
Week 7.pdf
 
ARTIFICIAL INTELLIGENCE UNIT 2(2)
ARTIFICIAL INTELLIGENCE UNIT 2(2)ARTIFICIAL INTELLIGENCE UNIT 2(2)
ARTIFICIAL INTELLIGENCE UNIT 2(2)
 
Searching
SearchingSearching
Searching
 
Search 1
Search 1Search 1
Search 1
 
seminar HBMO
seminar HBMOseminar HBMO
seminar HBMO
 

Plus de Abhijeet Agarwal (6)

Geo thermal
Geo thermalGeo thermal
Geo thermal
 
Fire Detection by Artificial Neural Network
Fire Detection by Artificial Neural Network Fire Detection by Artificial Neural Network
Fire Detection by Artificial Neural Network
 
Education System in India
Education System in IndiaEducation System in India
Education System in India
 
Application of Additive Manufacturing in Aerospace Industry
Application of Additive Manufacturing in Aerospace IndustryApplication of Additive Manufacturing in Aerospace Industry
Application of Additive Manufacturing in Aerospace Industry
 
Virtual instrumentation
Virtual instrumentationVirtual instrumentation
Virtual instrumentation
 
Sample instrument using lab view abhijeet agarwal-1
Sample instrument using lab view  abhijeet agarwal-1Sample instrument using lab view  abhijeet agarwal-1
Sample instrument using lab view abhijeet agarwal-1
 

Dernier

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Dernier (20)

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 

Example of iterative deepening search &amp; bidirectional search

  • 1. EXAMPLE OF ITERATIVE DEEPENING SEARCH & BIDIRECTIONAL SEARCH Presented by- Abhijeet Agarwal M.Tech 1st Year Roll no- 1704301
  • 2. CONTENT  Search Strategies  Iterative Deepening Search Technique  Iterative deepening search l =0,1,2,3  Properties of Iterative Deeping Search  Examples of Iterative Deeping Search  Bidirectional Search  Search  Factor Affect the Search  Examples
  • 3. SEARCH STRATEGIES • A search strategy is defined by picking the order of node expansion • Strategies are evaluated along the following dimensions: – completeness: does it always find a solution if one exists? – time complexity: number of nodes generated – space complexity: maximum number of nodes in memory – optimality: does it always find a least-cost solution? • Time and space complexity are measured in terms of – b: maximum branching factor of the search tree – d: depth of the least-cost solution – m: maximum depth of the state space (may be ∞)
  • 4. ITERATIVE DEEPENING DEPTH SEARCH TECHNIQUE COMBINATION OF DEPTH FIRST SEARCH AND BREADTH FIRST SEARCH.
  • 5. ITERATIVE DEEPENING SEARCH – The problem with depth limited search on a suitable depth parameter. • This search tries all possible depth limits first 0, then 1, then 2 etc un till a solution found. • For large search space where is the depth of solution is not known then it is normally preferred.
  • 10. PROPERTIES OF ITERATIVE DEEPENING SEARCH • Complete- Yes • Time- (b d) • Space- (b d) • Optimal- Yes, if step cost = 1
  • 11. EXAMPLE 1:- SEARCH TREE FOR THE 8 PUZZLE PROBLEM
  • 12. EXAMPLE 2:- 8-QUEENS PROBLEM -any arrangement of n<=8 queens -or arrangements of n<=8 queens in leftmost n columns, 1 per column, such that no queen attacks any other. initial state -no queens on the board actions -add queen to any empty square -or add queen to leftmost empty square such that it is not attacked by other queens. goal test 8 queens on the board, none attacked. path cost-1 per move
  • 13. BIDIRECTIONAL SEARCH WITH EXAMPLES • It is combination of feature of Breadth first, Best first, A* search. • Breadth first : Adds nodes to a list every time it checks for the goal node using a tree structure until it is reached • Best-first: Will choose which node should be next using the node's score (often an f-value) which takes into account its cost and length. • A*: similar to best-first but will take into account the cost of the path from the start to the specified node as well as the cost from that node to the goal. • The most effective map search would be bidirectional combined with A*
  • 14. BIDIRECTIONAL SEARCH • Expand nodes from the start and goal state simultaneously. Check at each stage if the nodes of one have been generated by the other. If so, the path concatenation is the solution • The operators must be reversible • single start, single goal • Efficient check for identical states • Type of search that happens in each half
  • 15. SEARCH • Optimality: yes • Time complexity: O(b^d/2) • Completeness: yes • Space complexity: O(b^d/2) Initial State Final State d d / 2
  • 16. FACTORS THAT AFFECT SEARCH EFFICIENCY 1- Branching factor: move in the direction with the lower branching factor I G I G
  • 17. More start or goal states. Move towards the larger set I G G G I G I I
  • 18. EXAMPLE-1  Suppose b = 10, d = 6.  Suppose each direction runs BFS  In the worst case, two searches meet when each search has generated all of the nodes at depth 3.  Breadth first search will examine 11, 11, 111 nodes.  Bidirectional search will examine 2,220 nodes.
  • 19. Example of Bi Directional Problem Find the Shortest Root