SlideShare a Scribd company logo
1 of 23
Iterative Deepening Search
Ashis Kumar Chanda
Department of Computer Science and Engineering
University of Dhaka
Topics
โ€ข Introduction
โ€ข Searching Methods
โ€ข Iterative Deepening Search
โ€ข Properties
โ€ข Analysis
โ€ข Summary
CSE, DU
Introduction
โ€ข Search an item in Graph
CSE, DU
Air flight system
โ€ข Each city represents a vertex
โ€ข Each direct flight represents an edge
Graph
โ€ข A well recognized tool in modeling problems
โ€ข Consist of:
โ€“ Vertices can be considered locations.
โ€“ Edges represent connections connections.
CSE, DU
D
E
A
C
F
B
Vertex
Edge
Graph Representation
โ€ข How will we represent a graph in computer?
1. Adjacency Matrix
2. Use a 2D matrix to represent the
graph
3. Adjacency List
4. Use a 1D array of linked lists
5CSE, DU
Adjacency Matrix
A[i][j] = 1 if there is an edge connecting vertices i,j
A[i][j] = 0 otherwise
6CSE, DU
Adjacency List
The adjacency list is an array A[0..n-1] of lists,
where n is the number of vertices in the graph
7CSE, DU
Searching Methods
โ€ข Most common methods
โ€“ Breadth First Search (BFS)
โ€“ Depth First Search (DFS)
CSE, DU
Breadth-first search
โ€ข Span search area in each level
โ€ข FIFO structure (queue)
9CSE, DU
Depth-first search
โ€ข Move at depth, start search and then return at back
โ€ข LIFO structure (Stack)
10CSE, DU
Any New Idea?
โ€ข What's wrong with DFS?
CSE, DU
Iterative Deepening Search
DFS can move into an infinite loop
DFS is neither complete nor optimal
Iterative Deepening Search
โ€ข IDS is similar to DFS
โ€ข Depth is not known
โ€ข increasing the depth limit with each iteration
until it reaches d, the depth of the goal state
CSE, DU
Iterative deepening search l =0
13CSE, DU
Iterative deepening search l =1
14CSE, DU
Iterative deepening search l =2
15CSE, DU
Iterative deepening search l =3
Pseudo-code
CSE, DU
Input: Graph root, goal
Output: solution or failure
IDS(root, goal)
{
for(i=0 to infinite)
{
DLS(root, goal, depth=i)
}
}
depth-limited DFS (called DLS);
Properties
where b is the branching factor and d is the depth of goal
CSE, DU
Criteria Properties of IDF
Complete search Yes
Required Time O(bd )
Memory Space O(bd)
Optimal Solution Yes
Analysis
โ€ข Applicable when there is a large search space
and depth is not known
โ€ข The main advantage of IDS in game tree
searching
โ€ข IDS combines depth first searchโ€™s space
efficiency and breadth first searchโ€™s complete
-ness
CSE, DU
Practice Problem
โ€ข Show each steps to find node F from the
source node Y using BFS, DFS, IDS
CSE, DU
Summary
โ€ข Representation of Graph model
โ€ข Searching model BFS, DFS
โ€ข Iterative Deepening Search Model is
combination of BFS, DFS
โ€ข Better than DFS and needs less space than BFS
CSE, DU
About Me
โ€ข Research Topics:
- Flexible Periodic Pattern Mining
- Closed Frequent Pattern Mining
โ€ข ML course of Stanford University
โ€ข Won several Software Contests
โ€ข Solve Hundreds ACM problem
CSE, DU
Story writing Code Rage Badge
www.chandacse.blogspot.com
References
CSE, DU
- Artificial Intelligence a Modern Approach
by Russell and Norvig
- Introduction to Algorithm by Cormen
- Fundamentals of Computer Algorithms by
Ellis; Sahni, Sartaj Horowitz
- http://en.wikipedia.org/wiki/Iterative_deepening_depth-
- http://artint.info/html/ArtInt_62.html
- http://will.thimbleby.net/algorithms/doku.php?id=iterati

More Related Content

What's hot

8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
Tech_MX
ย 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
Vishal Singh
ย 

What's hot (20)

Depth first search and breadth first searching
Depth first search and breadth first searchingDepth first search and breadth first searching
Depth first search and breadth first searching
ย 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
ย 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
ย 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
ย 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
ย 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
ย 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
ย 
A* Search Algorithm
A* Search AlgorithmA* Search Algorithm
A* Search Algorithm
ย 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
ย 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
ย 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
ย 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
ย 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
ย 
Bruteforce algorithm
Bruteforce algorithmBruteforce algorithm
Bruteforce algorithm
ย 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
ย 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
ย 
State space search
State space searchState space search
State space search
ย 
Hashing
HashingHashing
Hashing
ย 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
ย 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
ย 

Similar to Iterative deepening search

Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7
Traian Rebedea
ย 
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptxRiya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
RIYABEPARI
ย 
Angel6E25educationmaterial for reference
Angel6E25educationmaterial for referenceAngel6E25educationmaterial for reference
Angel6E25educationmaterial for reference
kanchang3684
ย 

Similar to Iterative deepening search (20)

Iterative deepening search
Iterative deepening searchIterative deepening search
Iterative deepening search
ย 
Searching
SearchingSearching
Searching
ย 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
ย 
Algorithm
AlgorithmAlgorithm
Algorithm
ย 
Search 1
Search 1Search 1
Search 1
ย 
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
ย 
Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7
ย 
chapter3part1.ppt
chapter3part1.pptchapter3part1.ppt
chapter3part1.ppt
ย 
1st lecture.ppt
1st lecture.ppt1st lecture.ppt
1st lecture.ppt
ย 
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptxRiya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
Riya Bepari_34700122020_Artificial Intelligence_PEC-IT501B.pptx
ย 
CSMR: A Scalable Algorithm for Text Clustering with Cosine Similarity and Map...
CSMR: A Scalable Algorithm for Text Clustering with Cosine Similarity and Map...CSMR: A Scalable Algorithm for Text Clustering with Cosine Similarity and Map...
CSMR: A Scalable Algorithm for Text Clustering with Cosine Similarity and Map...
ย 
ARTIFICIAL INTELLIGENCE UNIT 2(2)
ARTIFICIAL INTELLIGENCE UNIT 2(2)ARTIFICIAL INTELLIGENCE UNIT 2(2)
ARTIFICIAL INTELLIGENCE UNIT 2(2)
ย 
LEC 12-DSALGO-GRAPHS(final12).pdf
LEC 12-DSALGO-GRAPHS(final12).pdfLEC 12-DSALGO-GRAPHS(final12).pdf
LEC 12-DSALGO-GRAPHS(final12).pdf
ย 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
ย 
PPT s12-machine vision-s2
PPT s12-machine vision-s2PPT s12-machine vision-s2
PPT s12-machine vision-s2
ย 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
ย 
c4.pptx
c4.pptxc4.pptx
c4.pptx
ย 
Angel6E25educationmaterial for reference
Angel6E25educationmaterial for referenceAngel6E25educationmaterial for reference
Angel6E25educationmaterial for reference
ย 
Lecture13
Lecture13Lecture13
Lecture13
ย 
Graph
GraphGraph
Graph
ย 

More from Ashis Kumar Chanda

More from Ashis Kumar Chanda (20)

Word 2 vector
Word 2 vectorWord 2 vector
Word 2 vector
ย 
Multi-class Image Classification using deep convolutional networks on extreme...
Multi-class Image Classification using deep convolutional networks on extreme...Multi-class Image Classification using deep convolutional networks on extreme...
Multi-class Image Classification using deep convolutional networks on extreme...
ย 
Full resolution image compression with recurrent neural networks
Full resolution image compression with  recurrent neural networksFull resolution image compression with  recurrent neural networks
Full resolution image compression with recurrent neural networks
ย 
Understanding Natural Language Queries over Relational Databases
Understanding Natural Language Queries over Relational DatabasesUnderstanding Natural Language Queries over Relational Databases
Understanding Natural Language Queries over Relational Databases
ย 
03. Agile Development
03. Agile Development03. Agile Development
03. Agile Development
ย 
Software Cost Estimation
Software Cost EstimationSoftware Cost Estimation
Software Cost Estimation
ย 
Risk Management
Risk ManagementRisk Management
Risk Management
ย 
Project Management
Project ManagementProject Management
Project Management
ย 
MVC
MVCMVC
MVC
ย 
Requirements engineering
Requirements engineeringRequirements engineering
Requirements engineering
ย 
4. UML
4. UML4. UML
4. UML
ย 
2. Software process
2. Software process2. Software process
2. Software process
ย 
1. Introduction
1. Introduction1. Introduction
1. Introduction
ย 
Periodic pattern mining
Periodic pattern miningPeriodic pattern mining
Periodic pattern mining
ย 
FPPM algorithm
FPPM algorithmFPPM algorithm
FPPM algorithm
ย 
Secure software design
Secure software designSecure software design
Secure software design
ย 
Sequential logic circuit optimization
Sequential logic circuit optimizationSequential logic circuit optimization
Sequential logic circuit optimization
ย 
Introduction to CS
Introduction to CSIntroduction to CS
Introduction to CS
ย 
CloudBus
CloudBusCloudBus
CloudBus
ย 
Linear Machine Decision Tree
Linear Machine Decision TreeLinear Machine Decision Tree
Linear Machine Decision Tree
ย 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
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 ...
SUHANI PANDEY
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
ย 
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
dharasingh5698
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
ย 
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
KreezheaRecto
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ย 
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
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
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 ...
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 
(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
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor ๐Ÿ“ฑ {7001035870} VIP Escorts chittoor
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
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
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
ย 
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
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 

Iterative deepening search

  • 1. Iterative Deepening Search Ashis Kumar Chanda Department of Computer Science and Engineering University of Dhaka
  • 2. Topics โ€ข Introduction โ€ข Searching Methods โ€ข Iterative Deepening Search โ€ข Properties โ€ข Analysis โ€ข Summary CSE, DU
  • 3. Introduction โ€ข Search an item in Graph CSE, DU Air flight system โ€ข Each city represents a vertex โ€ข Each direct flight represents an edge
  • 4. Graph โ€ข A well recognized tool in modeling problems โ€ข Consist of: โ€“ Vertices can be considered locations. โ€“ Edges represent connections connections. CSE, DU D E A C F B Vertex Edge
  • 5. Graph Representation โ€ข How will we represent a graph in computer? 1. Adjacency Matrix 2. Use a 2D matrix to represent the graph 3. Adjacency List 4. Use a 1D array of linked lists 5CSE, DU
  • 6. Adjacency Matrix A[i][j] = 1 if there is an edge connecting vertices i,j A[i][j] = 0 otherwise 6CSE, DU
  • 7. Adjacency List The adjacency list is an array A[0..n-1] of lists, where n is the number of vertices in the graph 7CSE, DU
  • 8. Searching Methods โ€ข Most common methods โ€“ Breadth First Search (BFS) โ€“ Depth First Search (DFS) CSE, DU
  • 9. Breadth-first search โ€ข Span search area in each level โ€ข FIFO structure (queue) 9CSE, DU
  • 10. Depth-first search โ€ข Move at depth, start search and then return at back โ€ข LIFO structure (Stack) 10CSE, DU
  • 11. Any New Idea? โ€ข What's wrong with DFS? CSE, DU Iterative Deepening Search DFS can move into an infinite loop DFS is neither complete nor optimal
  • 12. Iterative Deepening Search โ€ข IDS is similar to DFS โ€ข Depth is not known โ€ข increasing the depth limit with each iteration until it reaches d, the depth of the goal state CSE, DU
  • 13. Iterative deepening search l =0 13CSE, DU
  • 14. Iterative deepening search l =1 14CSE, DU
  • 15. Iterative deepening search l =2 15CSE, DU
  • 17. Pseudo-code CSE, DU Input: Graph root, goal Output: solution or failure IDS(root, goal) { for(i=0 to infinite) { DLS(root, goal, depth=i) } } depth-limited DFS (called DLS);
  • 18. Properties where b is the branching factor and d is the depth of goal CSE, DU Criteria Properties of IDF Complete search Yes Required Time O(bd ) Memory Space O(bd) Optimal Solution Yes
  • 19. Analysis โ€ข Applicable when there is a large search space and depth is not known โ€ข The main advantage of IDS in game tree searching โ€ข IDS combines depth first searchโ€™s space efficiency and breadth first searchโ€™s complete -ness CSE, DU
  • 20. Practice Problem โ€ข Show each steps to find node F from the source node Y using BFS, DFS, IDS CSE, DU
  • 21. Summary โ€ข Representation of Graph model โ€ข Searching model BFS, DFS โ€ข Iterative Deepening Search Model is combination of BFS, DFS โ€ข Better than DFS and needs less space than BFS CSE, DU
  • 22. About Me โ€ข Research Topics: - Flexible Periodic Pattern Mining - Closed Frequent Pattern Mining โ€ข ML course of Stanford University โ€ข Won several Software Contests โ€ข Solve Hundreds ACM problem CSE, DU Story writing Code Rage Badge www.chandacse.blogspot.com
  • 23. References CSE, DU - Artificial Intelligence a Modern Approach by Russell and Norvig - Introduction to Algorithm by Cormen - Fundamentals of Computer Algorithms by Ellis; Sahni, Sartaj Horowitz - http://en.wikipedia.org/wiki/Iterative_deepening_depth- - http://artint.info/html/ArtInt_62.html - http://will.thimbleby.net/algorithms/doku.php?id=iterati

Editor's Notes

  1. <number>
  2. <number>
  3. <number>
  4. <number>
  5. More traverse, infinite loop, if two solution then may canโ€™t find optimal <number>
  6. <number>
  7. Suppose, in chess game we need to know what will be next step of opponent <number>