SlideShare una empresa de Scribd logo
1 de 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]

Más contenido relacionado

La actualidad más candente

Propositional logic
Propositional logicPropositional logic
Propositional logic
Rushdi Shams
 
Chap19
Chap19Chap19
Chap19
himo
 

La actualidad más candente (20)

Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
Astar algorithm
Astar algorithmAstar algorithm
Astar algorithm
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
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
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill Climbing
 
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...
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Backtracking Algorithm.ppt
Backtracking Algorithm.pptBacktracking Algorithm.ppt
Backtracking Algorithm.ppt
 
Chap19
Chap19Chap19
Chap19
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
A* algorithm
A* algorithmA* algorithm
A* algorithm
 
AI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by Examples
 
Network flows
Network flowsNetwork flows
Network flows
 
Lecture 10 Uninformed Search Techniques conti..
Lecture 10 Uninformed Search Techniques conti..Lecture 10 Uninformed Search Techniques conti..
Lecture 10 Uninformed Search Techniques conti..
 

Destacado

Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Search
butest
 

Destacado (16)

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
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
17. Trees and Graphs
17. Trees and Graphs17. Trees and Graphs
17. Trees and Graphs
 

Similar a Ch2 3-informed (heuristic) search

16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniques
Jais Balta
 
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
PalGov
 
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
 
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
guest756c74
 
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
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
Nazir Ahmed
 

Similar a Ch2 3-informed (heuristic) search (20)

16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniques
 
A star search
A star searchA star search
A star search
 
Heuristic search
Heuristic searchHeuristic search
Heuristic 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
 

Más 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
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Ch2 3-informed (heuristic) search

  • 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.