SlideShare a Scribd company logo
2
Most read
3
Most read
11
Most read
Topic To Be Covered:
I. ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS)
II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE
III. HEURISTIC FUNCTION IN AI
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-08
Prof.Dhakane Vikas N
ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS
 This is type of Uninformed
search technique also called
as blind search.
 This algo. Works on only
present value.
 This algorithm is
combination of DFS & BFS
 It uses STACK (LIFO) to
perform search operations
 Utilizes Deepest &
shallowest Node
ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS
 Best depth limit is found out
by gradually increasing depth
limit on each iterations.
 Initially depth limit is =0
 On each iteration depth
increased by exactly one.
S->Initial Node Or Source Node
G->Goal Node Or Target Node
ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS
Advantages of ID-DFS:
Combine the advantage of both DFS and BF
It is Complete & Optimal
 Will not go in infinite loop
Disadvantages of ID-DFS:
Regressive Recursion is required
May required more memory
Types of search in ai
II. Informed Search In AI
 It is search with information.
 It is greedy search method
 Use knowledge to find steps to solution.
 Less Complexity(Time, Space)
 Quick Solution
 Know about Start state and Goal state & Also
know how to reach.
 informed search algorithm contains an
array of knowledge such as how far we are
from the goal, path cost, how to reach to
goal node, etc. This knowledge help agents
to explore less to the search space and find
more efficiently the goal node.
 The informed search algorithm is more
useful for large search space. Informed
search algorithm uses the idea of
heuristic, so it is also called Heuristic
search.
HEURISTIC FUNCTION in ai
 Heuristic is a function which is used in
Informed Search, and it finds the most
promising path.
 It takes the current state of the agent as its
input and produces the estimation of how
close agent is from the goal.
 Heuristic value or Function act as Guide in
IS.
 Heuristic function estimates how close a
state is to the goal. It is represented by
h(n), and it calculates the cost of an
optimal path between the pair of states.
 The heuristic method, however, might not
always give the best solution, but it
guaranteed to find a good solution in
reasonable time.
 This technique always use to find solution
quickly.
HEURISTIC FUNCTION in ai
 Heuristic is a function which is
used in Informed Search, and it
finds the most promising path.
 It takes the current state of the
agent as its input and produces
the estimation of how close
agent is from the goal.
 Heuristic function estimates
how close a state is to the goal.
It is represented by h(n), and it
calculates the cost of an
optimal path between the pair
of states.
 The heuristic method,
however, might not always
give the best solution, but it
guaranteed to find a good
solution in reasonable time.
HEURISTIC FUNCTION in ai
Different Method Used To Estimate Heuristic Value
---------------------------------------------------------------------------
I. Euclidian Distance (Straight Line Distance Method)
 Euclidean distance is the distance between two points
in Euclidean space. Euclidean space was originally devised by the Greek
mathematician Euclid around 300 B.C.E. to study the relationships
between angles and distances.
HEURISTIC FUNCTION in ai
Different Method Used To
Estimate Heuristic Value
II. Manhattan Distance
 In case of 8-Puzzle problem
Manhattan distances are
nothing but Number of
moves need to be made by AI
agent so that it can reach to
its goal state.
HEURISTIC FUNCTION in ai
Different Method Used
To Estimate Heuristic
Value
-------------------------------
III. No.of Misplaced
Tiles
BEST FIRST SEARCH(BFS)
 This is informed search technique
also called as HEURISTIC search.
 This algo. Works using heuristic
value.
 This algorithm uses evaluation
function to decide which adjacent
node is most promising and then
explore.
 Priority queue is used to store cost
of function.
 Space &Time Complexity of BFS is
also O(V+E) whereV is vertices and E
is edges.
 Also Written as:-O(b) ^d
Where, b->Branching factor
d->depth
BEST FIRST SEARCH(BFS)
Algorithm
 Priority queue ‘PQ’ containing
initial states
Loop
 If PQ=Empty Return Fail
Else
 NODE<-Remove_First(PQ)
 If NODE=GOAL
 Return path from initial state to
NODE
ELSE
 Generate all successor of NODE
and insert newly generated NODE
into ‘PQ’ according to cost value.
END LOOP
BEST FIRST SEARCH(BFS)
Advantages of BFS:
Memory efficient as compared with DFS & BFS
It is Complete
Disadvantages of BFS:
It gives good solution but not optimal solution.
In worst case it may behave like unguided DFS
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III.HEURISTIC FUNCTION IN AI
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III.HEURISTIC FUNCTION IN AI

More Related Content

What's hot (20)

PPTX
A* Algorithm
Dr. C.V. Suresh Babu
 
PPTX
Performance analysis(Time & Space Complexity)
swapnac12
 
PDF
Heuristic search-in-artificial-intelligence
grinu
 
PPT
KNOWLEDGE REPRESENTATION ISSUES.ppt
SuneethaChittineni
 
PPT
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
PPT
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
PPTX
weak slot and filler structure
Amey Kerkar
 
PPTX
Artificial Intelligence Searching Techniques
Dr. C.V. Suresh Babu
 
PPTX
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
PPTX
Lexical analysis - Compiler Design
Muhammed Afsal Villan
 
PPT
Problems, Problem spaces and Search
BMS Institute of Technology and Management
 
PPT
Knowledge Representation in Artificial intelligence
Yasir Khan
 
PPTX
State space search
chauhankapil
 
PPTX
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
PPTX
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
PPTX
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
PPTX
Heuristics Search Techniques in AI
Bharat Bhushan
 
PDF
A* Search Algorithm
vikas dhakane
 
PPT
BackTracking Algorithm: Technique and Examples
Fahim Ferdous
 
PDF
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
A* Algorithm
Dr. C.V. Suresh Babu
 
Performance analysis(Time & Space Complexity)
swapnac12
 
Heuristic search-in-artificial-intelligence
grinu
 
KNOWLEDGE REPRESENTATION ISSUES.ppt
SuneethaChittineni
 
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
weak slot and filler structure
Amey Kerkar
 
Artificial Intelligence Searching Techniques
Dr. C.V. Suresh Babu
 
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
Lexical analysis - Compiler Design
Muhammed Afsal Villan
 
Problems, Problem spaces and Search
BMS Institute of Technology and Management
 
Knowledge Representation in Artificial intelligence
Yasir Khan
 
State space search
chauhankapil
 
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
Heuristics Search Techniques in AI
Bharat Bhushan
 
A* Search Algorithm
vikas dhakane
 
BackTracking Algorithm: Technique and Examples
Fahim Ferdous
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 

Similar to I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III.HEURISTIC FUNCTION IN AI (20)

PDF
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
PDF
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
PPTX
Introduction to artificial intelligence
rishi ram khanal
 
PPT
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
Sasal6
 
PPTX
Artificial intelligence(06)
Nazir Ahmed
 
PPTX
Artificial intelligence(06)
Nazir Ahmed
 
PPTX
AI PPT Unit 2 Artificial Intelligence 24sd45
eticket4403
 
PPTX
AI3391 Session 9 Greedy Best first search algorithm.pptx
Guru Nanak Technical Institutions
 
PPTX
AI_Lecture2.pptx
saadurrehman35
 
PPTX
AI_Session 7 Greedy Best first search algorithm.pptx
Guru Nanak Technical Institutions
 
PPTX
Unit1_AI&ML_leftover (2).pptx
sahilshah890338
 
PPTX
PowerPoint - K-State Laboratory for Knowledge Discovery in ...
butest
 
PPTX
AI444444444444444444444444444444444.pptx
sameehamoogab
 
PPTX
Heuristic Search, Best First Search.pptx
devhamnah
 
PPT
Different Search Techniques used in AI.ppt
jayrajsinghkardam
 
PPTX
Lecture # 02-Search Algorithms11111.pptx
TheSmartSolverAcadem
 
PPTX
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
KALPANAC20
 
PPTX
Problem Solving through Search - Informed Search
DuraiRaj315751
 
PPTX
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
pandyaga
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
Introduction to artificial intelligence
rishi ram khanal
 
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
Sasal6
 
Artificial intelligence(06)
Nazir Ahmed
 
Artificial intelligence(06)
Nazir Ahmed
 
AI PPT Unit 2 Artificial Intelligence 24sd45
eticket4403
 
AI3391 Session 9 Greedy Best first search algorithm.pptx
Guru Nanak Technical Institutions
 
AI_Lecture2.pptx
saadurrehman35
 
AI_Session 7 Greedy Best first search algorithm.pptx
Guru Nanak Technical Institutions
 
Unit1_AI&ML_leftover (2).pptx
sahilshah890338
 
PowerPoint - K-State Laboratory for Knowledge Discovery in ...
butest
 
AI444444444444444444444444444444444.pptx
sameehamoogab
 
Heuristic Search, Best First Search.pptx
devhamnah
 
Different Search Techniques used in AI.ppt
jayrajsinghkardam
 
Lecture # 02-Search Algorithms11111.pptx
TheSmartSolverAcadem
 
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
KALPANAC20
 
Problem Solving through Search - Informed Search
DuraiRaj315751
 
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
pandyaga
 
Ad

More from vikas dhakane (20)

PDF
Ai lecture 14(unit03)
vikas dhakane
 
PPTX
Ai lecture 13(unit03)
vikas dhakane
 
PDF
Ai lecture 13(unit03)
vikas dhakane
 
PPTX
Ai lecture 12(unit03)
vikas dhakane
 
PDF
Ai lecture 12(unit03)
vikas dhakane
 
PPTX
Ai lecture 11(unit03)
vikas dhakane
 
PDF
Ai lecture 11(unit03)
vikas dhakane
 
PPTX
Ai lecture 10(unit03)
vikas dhakane
 
PDF
Ai lecture 10(unit03)
vikas dhakane
 
PDF
Ai lecture 09(unit03)
vikas dhakane
 
PDF
Ai lecture 07(unit03)
vikas dhakane
 
PPTX
Ai lecture 05(unit03)
vikas dhakane
 
PDF
Ai lecture 05(unit03)
vikas dhakane
 
PPTX
Ai lecture 04(unit03)
vikas dhakane
 
PDF
Ai lecture 04(unit03)
vikas dhakane
 
PPTX
Ai lecture 03(unit03)
vikas dhakane
 
PDF
Ai lecture 03(unit03)
vikas dhakane
 
PPTX
Ai lecture 003(unit03)
vikas dhakane
 
PDF
Ai lecture 003(unit03)
vikas dhakane
 
PPTX
Ai lecture 02(unit03)
vikas dhakane
 
Ai lecture 14(unit03)
vikas dhakane
 
Ai lecture 13(unit03)
vikas dhakane
 
Ai lecture 13(unit03)
vikas dhakane
 
Ai lecture 12(unit03)
vikas dhakane
 
Ai lecture 12(unit03)
vikas dhakane
 
Ai lecture 11(unit03)
vikas dhakane
 
Ai lecture 11(unit03)
vikas dhakane
 
Ai lecture 10(unit03)
vikas dhakane
 
Ai lecture 10(unit03)
vikas dhakane
 
Ai lecture 09(unit03)
vikas dhakane
 
Ai lecture 07(unit03)
vikas dhakane
 
Ai lecture 05(unit03)
vikas dhakane
 
Ai lecture 05(unit03)
vikas dhakane
 
Ai lecture 04(unit03)
vikas dhakane
 
Ai lecture 04(unit03)
vikas dhakane
 
Ai lecture 03(unit03)
vikas dhakane
 
Ai lecture 03(unit03)
vikas dhakane
 
Ai lecture 003(unit03)
vikas dhakane
 
Ai lecture 003(unit03)
vikas dhakane
 
Ai lecture 02(unit03)
vikas dhakane
 
Ad

Recently uploaded (20)

PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPT
Electrical Safety Presentation for Basics Learning
AliJaved79382
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Electrical Safety Presentation for Basics Learning
AliJaved79382
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Design Thinking basics for Engineers.pdf
CMR University
 
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 

I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III.HEURISTIC FUNCTION IN AI

  • 1. Topic To Be Covered: I. ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III. HEURISTIC FUNCTION IN AI Jagdamba Education Society's SND College of Engineering & Research Centre Department of Computer Engineering SUBJECT: Artificial Intelligence & Robotics Lecture No-08 Prof.Dhakane Vikas N
  • 2. ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS  This is type of Uninformed search technique also called as blind search.  This algo. Works on only present value.  This algorithm is combination of DFS & BFS  It uses STACK (LIFO) to perform search operations  Utilizes Deepest & shallowest Node
  • 3. ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS  Best depth limit is found out by gradually increasing depth limit on each iterations.  Initially depth limit is =0  On each iteration depth increased by exactly one. S->Initial Node Or Source Node G->Goal Node Or Target Node
  • 4. ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS Advantages of ID-DFS: Combine the advantage of both DFS and BF It is Complete & Optimal  Will not go in infinite loop Disadvantages of ID-DFS: Regressive Recursion is required May required more memory
  • 5. Types of search in ai II. Informed Search In AI  It is search with information.  It is greedy search method  Use knowledge to find steps to solution.  Less Complexity(Time, Space)  Quick Solution  Know about Start state and Goal state & Also know how to reach.  informed search algorithm contains an array of knowledge such as how far we are from the goal, path cost, how to reach to goal node, etc. This knowledge help agents to explore less to the search space and find more efficiently the goal node.  The informed search algorithm is more useful for large search space. Informed search algorithm uses the idea of heuristic, so it is also called Heuristic search.
  • 6. HEURISTIC FUNCTION in ai  Heuristic is a function which is used in Informed Search, and it finds the most promising path.  It takes the current state of the agent as its input and produces the estimation of how close agent is from the goal.  Heuristic value or Function act as Guide in IS.  Heuristic function estimates how close a state is to the goal. It is represented by h(n), and it calculates the cost of an optimal path between the pair of states.  The heuristic method, however, might not always give the best solution, but it guaranteed to find a good solution in reasonable time.  This technique always use to find solution quickly.
  • 7. HEURISTIC FUNCTION in ai  Heuristic is a function which is used in Informed Search, and it finds the most promising path.  It takes the current state of the agent as its input and produces the estimation of how close agent is from the goal.  Heuristic function estimates how close a state is to the goal. It is represented by h(n), and it calculates the cost of an optimal path between the pair of states.  The heuristic method, however, might not always give the best solution, but it guaranteed to find a good solution in reasonable time.
  • 8. HEURISTIC FUNCTION in ai Different Method Used To Estimate Heuristic Value --------------------------------------------------------------------------- I. Euclidian Distance (Straight Line Distance Method)  Euclidean distance is the distance between two points in Euclidean space. Euclidean space was originally devised by the Greek mathematician Euclid around 300 B.C.E. to study the relationships between angles and distances.
  • 9. HEURISTIC FUNCTION in ai Different Method Used To Estimate Heuristic Value II. Manhattan Distance  In case of 8-Puzzle problem Manhattan distances are nothing but Number of moves need to be made by AI agent so that it can reach to its goal state.
  • 10. HEURISTIC FUNCTION in ai Different Method Used To Estimate Heuristic Value ------------------------------- III. No.of Misplaced Tiles
  • 11. BEST FIRST SEARCH(BFS)  This is informed search technique also called as HEURISTIC search.  This algo. Works using heuristic value.  This algorithm uses evaluation function to decide which adjacent node is most promising and then explore.  Priority queue is used to store cost of function.  Space &Time Complexity of BFS is also O(V+E) whereV is vertices and E is edges.  Also Written as:-O(b) ^d Where, b->Branching factor d->depth
  • 12. BEST FIRST SEARCH(BFS) Algorithm  Priority queue ‘PQ’ containing initial states Loop  If PQ=Empty Return Fail Else  NODE<-Remove_First(PQ)  If NODE=GOAL  Return path from initial state to NODE ELSE  Generate all successor of NODE and insert newly generated NODE into ‘PQ’ according to cost value. END LOOP
  • 13. BEST FIRST SEARCH(BFS) Advantages of BFS: Memory efficient as compared with DFS & BFS It is Complete Disadvantages of BFS: It gives good solution but not optimal solution. In worst case it may behave like unguided DFS