SlideShare une entreprise Scribd logo
1  sur  81
Problem Solving by Searching Search Methods :  informed (Heuristic) search
Using problem specific knowledge to aid searching ,[object Object],[object Object],Search everywhere!!
Using problem specific knowledge to aid searching ,[object Object],[object Object],[object Object],Search only in this subtree!! A B C E D F G H I J K L O M N
More formally, why heuristic functions work? ,[object Object],[object Object],[object Object]
Heuristic Functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Approach 1:  f   Measures the Value of the Current State ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Approach 2:  f   Measures the Cost to the Goal ,[object Object],[object Object],[object Object],[object Object]
Approach 3:  f  measures the total cost of the solution path (Admissible Heuristic Functions) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Traditional informed search strategies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Informed Search Strategies Best First Search
An implementation of Best First Search ,[object Object],[object Object],[object Object],[object Object]
Informed Search Strategies Greedy Search eval-fn : f(n) = h(n)
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search: Tree Search Start A
Greedy Search: Tree Search Start 75 118 140 [374] [329] [253] A B C E
Greedy Search: Tree Search 99 80 Start 75 118 140 [374] [329] [253] [193] [366] [178] A B C E F G A
Greedy Search: Tree Search 99 211 80 Start Goal 75 118 140 [374] [329] [253] [193] [366] [178] [0] [253] A B C E F I G A E
Greedy Search: Tree Search 99 211 80 Start Goal 75 118 140 [374] [329] [253] [193] [366] [178] [0] [253] Path cost(A-E-F-I) = 253 + 178 + 0 =  431 dist(A-E-F-I) = 140 + 99 + 211 =  450 A B C E F I G A E
Greedy Search: Optimal ? 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic dist(A-E-G-H-I) =140+80+97+101= 418  140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search: Complete ? 99 211 80 Start Goal 97 101 75 118 111 f(n) = h  ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 **  C 250 D 244 E 253 F 178 G 193 H 98 I 0
Greedy Search: Tree Search Start A
Greedy Search: Tree Search Start 75 118 140 [374] [250] [253] A B C E
Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] A B C E D
Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] Infinite Branch ! A B C E D C
Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] [244] Infinite Branch ! A B C E D C D
Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] [244] Infinite Branch ! A B C E D C D
Greedy Search: Time and Space Complexity ? 99 211 80 Start Goal 97 101 75 118 111 140 ,[object Object],[object Object],[object Object],[object Object],A B D C E F I G H
Informed Search Strategies A* Search eval-fn : f(n)=g(n)+h(n)
A* (A Star)  ,[object Object],[object Object],[object Object]
A* (A Star)  ,[object Object],[object Object],[object Object]
A* (A Star)  g(n) h(n) f(n) = g(n)+h(n) n
A* Search f(n) = g(n) + h  ( n ) g(n):  is the exact cost to reach node  n  from the initial state. State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0 A B D C E F I 99 211 G H 80 Start Goal 97 101 75 118 111 140
A* Search: Tree Search Start A
A* Search: Tree Search Start 75 118 140 [393] [449] [447] A B C E
A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] A B C E F G
A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] 97 [415] A B C E F G H
A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] A B C E F I G H
A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
A* with f() not Admissible h() overestimates the cost to reach the goal state
A* Search:  h  not admissible ! 99 211 80 Start Goal 97 101 75 118 111 f(n) = g(n) + h  ( n ) –  (H-I) Overestimated g(n):  is the exact cost to reach node  n  from the initial state. 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 138 I 0
A* Search: Tree Search Start A
A* Search: Tree Search Start 75 118 140 [393] [449] [447] A B C E
A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] A B C E F G
A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] 97 [455] A B C E F G H
A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] A B C E F G H I
A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A* not optimal !!! A B C E F G H I D
A* Algorithm A* with systematic checking for repeated states …
A* Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A* Search: Analysis 99 211 80 Start Goal 97 101 75 118 111 140 ,[object Object],[object Object],[object Object],[object Object],A B D C E F I G H
Informed Search Strategies Iterative Deepening A*
Iterative Deepening A*:IDA* ,[object Object],[object Object]
Consistent Heuristic ,[object Object],[object Object],N N’ h(N) h(N’) c(N,N’)
IDA* Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object]
8-Puzzle f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles Cutoff=4 4 6
8-Puzzle Cutoff=4 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6
8-Puzzle Cutoff=4 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5
8-Puzzle Cutoff=4 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 5
8-Puzzle Cutoff=4 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 5 6
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 6
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 7
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 7 5
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 7 5 5
8-Puzzle Cutoff=5 f(N) = g(N) + h(N)  with h(N) = number of misplaced tiles 4 4 6 6 5 7 5 5
When to Use Search Techniques ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Conclusions ,[object Object],[object Object]

Contenu connexe

Tendances

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.pptxAsst.prof M.Gokilavani
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligenceananth
 
Solving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) SearchSolving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) Searchmatele41
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAndrew Ferlitsch
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AIKirti Verma
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmHema Kashyap
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEKhushboo Pal
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniquesJais Balta
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search TechniquesJismy .K.Jose
 

Tendances (20)

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
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
Solving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) SearchSolving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) Search
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill Climbing
 
Uninformed search
Uninformed searchUninformed search
Uninformed search
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AI
 
Informed search
Informed searchInformed search
Informed search
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithm
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniques
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search Techniques
 

En vedette

Hillclimbing search algorthim #introduction
Hillclimbing search algorthim #introductionHillclimbing search algorthim #introduction
Hillclimbing search algorthim #introductionMohamed Gad
 
Algorithm Analysis and Design Class Notes
Algorithm Analysis and Design Class NotesAlgorithm Analysis and Design Class Notes
Algorithm Analysis and Design Class NotesKumar Avinash
 
Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Searchbutest
 
Bfs and dfs in data structure
Bfs and dfs in  data structure Bfs and dfs in  data structure
Bfs and dfs in data structure Ankit Kumar Singh
 
Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)Shanawaz Ahamed
 
Search algorithms master
Search algorithms masterSearch algorithms master
Search algorithms masterHossam Hassan
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first searchHossain Md Shakhawat
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of AlgorithmsArvind Krishnaa
 
17. Trees and Graphs
17. Trees and Graphs17. Trees and Graphs
17. Trees and GraphsIntro C# Book
 

En vedette (14)

Hillclimbing search algorthim #introduction
Hillclimbing search algorthim #introductionHillclimbing search algorthim #introduction
Hillclimbing search algorthim #introduction
 
Algorithm Analysis and Design Class Notes
Algorithm Analysis and Design Class NotesAlgorithm Analysis and Design Class Notes
Algorithm Analysis and Design Class Notes
 
Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Search
 
Bfs and dfs in data structure
Bfs and dfs in  data structure Bfs and dfs in  data structure
Bfs and dfs in data structure
 
Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)
 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
 
Search algorithms master
Search algorithms masterSearch algorithms master
Search algorithms master
 
130210107039 2130702
130210107039 2130702130210107039 2130702
130210107039 2130702
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first search
 
ADA complete notes
ADA complete notesADA complete notes
ADA complete notes
 
Application of dfs
Application of dfsApplication of dfs
Application of dfs
 
DFS and BFS
DFS and BFSDFS and BFS
DFS and BFS
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 
17. Trees and Graphs
17. Trees and Graphs17. Trees and Graphs
17. Trees and Graphs
 

Similaire à Problem Solving by Searching Informed Methods

Heuristic Searching: A* Search
Heuristic Searching: A* SearchHeuristic Searching: A* Search
Heuristic Searching: A* SearchIOSR Journals
 
Informed Search.pptx
Informed Search.pptxInformed Search.pptx
Informed Search.pptxMohanKumarP34
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchPalGov
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktPEACENYAMA1
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...RahulSharma4566
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdfSankarTerli
 
Maximums and minimum
Maximums and minimum Maximums and minimum
Maximums and minimum rubimedina01
 
Some topics in analysis of boolean functions
Some topics in analysis of boolean functionsSome topics in analysis of boolean functions
Some topics in analysis of boolean functionsguest756c74
 
Incremental Topological Ordering (and Cycle Detection)
Incremental Topological Ordering (and Cycle Detection)Incremental Topological Ordering (and Cycle Detection)
Incremental Topological Ordering (and Cycle Detection)⌨️ Andrey Goder
 
Bfs & dfs application
Bfs & dfs applicationBfs & dfs application
Bfs & dfs applicationUmme habiba
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
Informed Search by the artificial intelligence
Informed Search by the artificial intelligenceInformed Search by the artificial intelligence
Informed Search by the artificial intelligenceMaryamMahjabeenYouni
 

Similaire à Problem Solving by Searching Informed Methods (20)

A star search
A star searchA star search
A star search
 
Heuristic Searching: A* Search
Heuristic Searching: A* SearchHeuristic Searching: A* Search
Heuristic Searching: A* Search
 
Informed Search.pptx
Informed Search.pptxInformed Search.pptx
Informed Search.pptx
 
Search 2
Search 2Search 2
Search 2
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
 
04 search heuristic
04 search heuristic04 search heuristic
04 search heuristic
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdf
 
Maximums and minimum
Maximums and minimum Maximums and minimum
Maximums and minimum
 
M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 
Some topics in analysis of boolean functions
Some topics in analysis of boolean functionsSome topics in analysis of boolean functions
Some topics in analysis of boolean functions
 
CS767_Lecture_03.pptx
CS767_Lecture_03.pptxCS767_Lecture_03.pptx
CS767_Lecture_03.pptx
 
Incremental Topological Ordering (and Cycle Detection)
Incremental Topological Ordering (and Cycle Detection)Incremental Topological Ordering (and Cycle Detection)
Incremental Topological Ordering (and Cycle Detection)
 
Bfs & dfs application
Bfs & dfs applicationBfs & dfs application
Bfs & dfs application
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Informed Search by the artificial intelligence
Informed Search by the artificial intelligenceInformed Search by the artificial intelligence
Informed Search by the artificial intelligence
 
Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5
 
M4 Heuristics
M4 HeuristicsM4 Heuristics
M4 Heuristics
 

Plus de chandsek666

Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in folchandsek666
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
Class first order logic
Class first order logicClass first order logic
Class first order logicchandsek666
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2chandsek666
 

Plus de chandsek666 (6)

Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in fol
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
 
Class first order logic
Class first order logicClass first order logic
Class first order logic
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture1
Lecture1Lecture1
Lecture1
 

Dernier

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Dernier (20)

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

Problem Solving by Searching Informed Methods

  • 1. Problem Solving by Searching Search Methods : informed (Heuristic) search
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Informed Search Strategies Best First Search
  • 11.
  • 12. Informed Search Strategies Greedy Search eval-fn : f(n) = h(n)
  • 13. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 14. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 15. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 16. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 17. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 18. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 19. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 20. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 21. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 22. Greedy Search 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 23. Greedy Search: Tree Search Start A
  • 24. Greedy Search: Tree Search Start 75 118 140 [374] [329] [253] A B C E
  • 25. Greedy Search: Tree Search 99 80 Start 75 118 140 [374] [329] [253] [193] [366] [178] A B C E F G A
  • 26. Greedy Search: Tree Search 99 211 80 Start Goal 75 118 140 [374] [329] [253] [193] [366] [178] [0] [253] A B C E F I G A E
  • 27. Greedy Search: Tree Search 99 211 80 Start Goal 75 118 140 [374] [329] [253] [193] [366] [178] [0] [253] Path cost(A-E-F-I) = 253 + 178 + 0 = 431 dist(A-E-F-I) = 140 + 99 + 211 = 450 A B C E F I G A E
  • 28. Greedy Search: Optimal ? 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic dist(A-E-G-H-I) =140+80+97+101= 418 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0
  • 29. Greedy Search: Complete ? 99 211 80 Start Goal 97 101 75 118 111 f(n) = h ( n ) = straight-line distance heuristic 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 ** C 250 D 244 E 253 F 178 G 193 H 98 I 0
  • 30. Greedy Search: Tree Search Start A
  • 31. Greedy Search: Tree Search Start 75 118 140 [374] [250] [253] A B C E
  • 32. Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] A B C E D
  • 33. Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] Infinite Branch ! A B C E D C
  • 34. Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] [244] Infinite Branch ! A B C E D C D
  • 35. Greedy Search: Tree Search 111 Start 75 118 140 [374] [250] [253] [244] [250] [244] Infinite Branch ! A B C E D C D
  • 36.
  • 37. Informed Search Strategies A* Search eval-fn : f(n)=g(n)+h(n)
  • 38.
  • 39.
  • 40. A* (A Star) g(n) h(n) f(n) = g(n)+h(n) n
  • 41. A* Search f(n) = g(n) + h ( n ) g(n): is the exact cost to reach node n from the initial state. State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 98 I 0 A B D C E F I 99 211 G H 80 Start Goal 97 101 75 118 111 140
  • 42. A* Search: Tree Search Start A
  • 43. A* Search: Tree Search Start 75 118 140 [393] [449] [447] A B C E
  • 44. A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] A B C E F G
  • 45. A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] 97 [415] A B C E F G H
  • 46. A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] A B C E F I G H
  • 47. A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
  • 48. A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
  • 49. A* Search: Tree Search 99 80 Start 97 101 75 118 140 [393] [449] [447] [417] [413] [415] Goal [418] [450] A B C E F I G H I
  • 50. A* with f() not Admissible h() overestimates the cost to reach the goal state
  • 51. A* Search: h not admissible ! 99 211 80 Start Goal 97 101 75 118 111 f(n) = g(n) + h ( n ) – (H-I) Overestimated g(n): is the exact cost to reach node n from the initial state. 140 A B D C E F I G H State Heuristic: h(n) A 366 B 374 C 329 D 244 E 253 F 178 G 193 H 138 I 0
  • 52. A* Search: Tree Search Start A
  • 53. A* Search: Tree Search Start 75 118 140 [393] [449] [447] A B C E
  • 54. A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] A B C E F G
  • 55. A* Search: Tree Search 99 80 Start 75 118 140 [393] [449] [447] [417] [413] 97 [455] A B C E F G H
  • 56. A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] A B C E F G H I
  • 57. A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
  • 58. A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
  • 59. A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A B C E F G H I D
  • 60. A* Search: Tree Search 99 80 Start 97 75 118 140 [393] [449] [447] [417] [413] [455] Goal [450] [473] A* not optimal !!! A B C E F G H I D
  • 61. A* Algorithm A* with systematic checking for repeated states …
  • 62.
  • 63.
  • 64. Informed Search Strategies Iterative Deepening A*
  • 65.
  • 66.
  • 67.
  • 68. 8-Puzzle f(N) = g(N) + h(N) with h(N) = number of misplaced tiles Cutoff=4 4 6
  • 69. 8-Puzzle Cutoff=4 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6
  • 70. 8-Puzzle Cutoff=4 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5
  • 71. 8-Puzzle Cutoff=4 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 5
  • 72. 8-Puzzle Cutoff=4 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 5 6
  • 73. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 6
  • 74. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6
  • 75. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5
  • 76. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 7
  • 77. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 7 5
  • 78. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 7 5 5
  • 79. 8-Puzzle Cutoff=5 f(N) = g(N) + h(N) with h(N) = number of misplaced tiles 4 4 6 6 5 7 5 5
  • 80.
  • 81.