SlideShare a Scribd company logo
1 of 58
Chapter 4 Informed Searching Dr. Mustafa Jarrar University of Birzeit [email_address] www.jarrar.info   Lecture Notes,  Advanced Artificial Intelligence (SCOM7341)  University of Birzeit 2 nd  Semester, 2011 Advanced Artificial Intelligence  (SCOM7341)
Discussion and Motivation How to determine the minimum number of coins to give while making change?    The coin of the highest value first ?
Discussion and Motivation ,[object Object],[object Object],[object Object],[object Object],Given a list of cities and their pair wise distances, the task is to find a shortest possible tour that visits each city exactly once.
Best-first search ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Romania with step costs in km Suppose we can have this info (SLD)    How can we use it to improve our search?
Greedy best-first search ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Greedy best-first search example
Greedy best-first search example
Greedy best-first search example
Greedy best-first search example
Properties of greedy best-first search ,[object Object],[object Object],[object Object],[object Object],b branching factor m maximum depth of the search tree
Discussion  ,[object Object],[object Object],[object Object],[object Object]
A *  search ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A *  search example
A *  search example
A *  search example
A *  search example
A *  search example
A *  search example
A* Exercise How will A* get from Iasi to Fagaras?
A* Exercise Node   Coordinates   SL Distance A    (5,9)   8.0 B   (3,8)   7.3 C   (8,8)   7.6 D   (5,7)   6.0 E   (7,6)   5.4 F   (4,5)   4.1 G   (6,5)   4.1 H    (3,3)   2.8 I   (5,3)   2.0 J   (7,2)   2.2 K   (5,1)   0.0
Solution to A* Exercise
Greedy Best-First Exercise Node   Coordinates   Distance A    (5,9)   8.0 B   (3,8)   7.3 C   (8,8)   7.6 D   (5,7)   6.0 E   (7,6)   5.4 F   (4,5)   4.1 G   (6,5)   4.1 H    (3,3)   2.8 I   (5,3)   2.0 J   (7,2)   2.2 K   (5,1)   0.0
Solution to Greedy Best-First Exercise
Another Exercise Node  C  g(n)   h(n) A  (5,10)  0.0  8.0 B  (3,8)  2.8  6.3  C  (7,8)  2.8  6.3 D  (2,6)  5.0  5.0 E  (5,6)   5.6  4.0 F  (6,7)   4.2  5.1 G  (8,6)   5.0  5.0 H  (1,4)   7.2  4.5 I  (3,4)   7.2   2.8 J  (7,3)   8.1   2.2 K  (8,4)   7.0   3.6 L  (5,2)   9.6   0.0 Do 1) A* Search and 2) Greedy Best-Fit Search
Admissible Heuristics ,[object Object],[object Object],[object Object],[object Object],[object Object]
Optimality of A *  (proof) ,[object Object],[object Object],[object Object],[object Object],[object Object],We want to prove: f(n) < f(G2) (then A* will prefer n over G2)
Optimality of A *  (proof) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optimality of A *  (proof) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Consistent Heuristics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optimality of A * ,[object Object],[object Object],[object Object]
Complexity of A* ,[object Object],[object Object],[object Object],[object Object],[object Object]
Properties of A* ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Memory Bounded Heuristic Search ,[object Object],[object Object],[object Object],[object Object],[object Object]
Recursive Best First Search (RBFS) RBFS changes its mind  very often in practice. This is because the  f=g+h become more  accurate (less optimistic) as we approach the goal. Hence, higher level nodes have smaller f-values and will be explored first. Problem?  If we have more memory we cannot make use of it. Ay idea to improve this? best alternative over fringe nodes, which are not children: do I want to back up?
Simple Memory Bounded A*  (MA*) ,[object Object],[object Object],[object Object],[object Object],[object Object]
SMA* pseudocode function  SMA*( problem )  returns  a solution sequence inputs :  problem , a problem static :  Queue , a queue of nodes ordered by  f -cost Queue     MAKE-QUEUE({MAKE-NODE(INITIAL-STATE[ problem ])}) loop do if   Queue  is empty  then return  failure n     deepest least-f-cost node in  Queue if  GOAL-TEST( n )  then return  success s     NEXT-SUCCESSOR( n ) if  s  is not a goal and is at maximum depth  then f( s )      else f( s )    MAX(f( n ),g( s )+h( s )) if  all of  n ’s successors have been generated then update  n ’s  f -cost and those of its ancestors if necessary if  SUCCESSORS( n ) all in memory  then  remove  n  from  Queue if  memory is full  then delete shallowest, highest-f-cost node in  Queue remove it from its parent’s successor list insert its parent on  Queue  if necessary insert  s  in  Queue end
Simple Memory-bounded A* (MA*) 24+0=24 A B 12 15 H 13  A G 18 13[15]  f = g+h (Example with 3-node memory) Progress of MA*.  Each node is labeled with its  current   f -cost.  Values in parentheses show the value of the best forgotten descendant. Can tell you when best solution found within memory constraint is optimal or not.    = goal Search space A B G C D E F H J I K 0+12=12 10+5=15 20+5=25 30+5=35 20+0=20 30+0=30 8+5=13 16+2=18 24+0=24 24+5=29 10 8 10 10 10 10 8 16 8 8 A 12 A B G 13 15 13 A G 24[  ] I 15[15] 24 A B G 15 15 24 A B C 15[24] 15 25 A B D 8 20 20[24] 20[  ]
Admissible Heuristics ,[object Object],[object Object]
Admissible heuristics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Admissible Heuristics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Dominance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Relaxed Problems ,[object Object],[object Object],[object Object],[object Object]
Admissible Heuristics ,[object Object],[object Object],[object Object],[object Object]
Local Search Algorithms ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Local Search Algorithms ,[object Object],[object Object],[object Object],[object Object]
Local Search Algorithms ,[object Object],[object Object],[object Object],[object Object]
Example:  n -queens ,[object Object],[object Object]
Hill-Climbing Search ,[object Object],[object Object],[object Object],[object Object]
Hill-climbing search: 8-queens problem ,[object Object],Each number indicates h if we move a queen in its corresponding column
Hill-climbing search: 8-queens problem A local minimum with  h = 1
Simulated Annealing Search ,[object Object],[object Object],[object Object],[object Object]
Properties of Simulated Annealing Search ,[object Object],[object Object]
Genetic Algorithms ,[object Object],[object Object],[object Object],[object Object]
Genetic Algorithms ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Genetic Algorithms fitness:  #non-attacking queens probability of being  regenerated in next generation
Genetic Algorithms [2,6,9,3,5  0,4,1,7,8] [3,6,9,7,3  8,0,4,7,1] [2,6,9,3,5,8,0,4,7,1] [3,6,9,7,3,0,4,1,7,8]
Homework-1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
Tianlu Wang
 
2 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.32 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.3
Ravi Balout
 

What's hot (20)

09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
AI Lesson 05
AI Lesson 05AI Lesson 05
AI Lesson 05
 
M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 
2 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.32 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.3
 
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
 
Temporal graph
Temporal graphTemporal graph
Temporal graph
 
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
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
M3 search
M3 searchM3 search
M3 search
 
Search 2
Search 2Search 2
Search 2
 
Pathfinding - Part 3: Beyond the basics
Pathfinding - Part 3: Beyond the basicsPathfinding - Part 3: Beyond the basics
Pathfinding - Part 3: Beyond the basics
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
Chapter 22 Finite Field
Chapter 22 Finite FieldChapter 22 Finite Field
Chapter 22 Finite Field
 
Galois field
Galois fieldGalois field
Galois field
 
Chap4
Chap4Chap4
Chap4
 
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
5th Semester Electronic and Communication Engineering (June/July-2015) Questi...
 
Sensors and Samples: A Homological Approach
Sensors and Samples:  A Homological ApproachSensors and Samples:  A Homological Approach
Sensors and Samples: A Homological Approach
 
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
5th Semester Electronic and Communication Engineering (2013-June) Question Pa...
 
Astar algorithm
Astar algorithmAstar algorithm
Astar algorithm
 

Viewers also liked (7)

Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudyJarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
 
Richardson Eyres - Three Peaks Challenge Competition
Richardson Eyres - Three Peaks Challenge Competition Richardson Eyres - Three Peaks Challenge Competition
Richardson Eyres - Three Peaks Challenge Competition
 
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introductionJarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
 
Jarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicJarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogic
 
De cuong báo cáo thuc tap khoá luận tot nghiep
De cuong báo cáo thuc tap   khoá luận tot nghiepDe cuong báo cáo thuc tap   khoá luận tot nghiep
De cuong báo cáo thuc tap khoá luận tot nghiep
 

Similar to Jarrar.lecture notes.aai.2011s.ch4.informedsearch

Chapter3 Search
Chapter3 SearchChapter3 Search
Chapter3 Search
Khiem Ho
 
AstarAlgorithm_v5_TeamFlash
AstarAlgorithm_v5_TeamFlashAstarAlgorithm_v5_TeamFlash
AstarAlgorithm_v5_TeamFlash
Shuqing Zhang
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
mmpnair0
 

Similar to Jarrar.lecture notes.aai.2011s.ch4.informedsearch (20)

Informed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data scienceInformed-search TECHNIQUES IN ai ml data science
Informed-search TECHNIQUES IN ai ml data science
 
Searching
SearchingSearching
Searching
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
 
Chapter3 Search
Chapter3 SearchChapter3 Search
Chapter3 Search
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.ppt
 
A* and Min-Max Searching Algorithms in AI , DSA.pdf
A* and Min-Max Searching Algorithms in AI , DSA.pdfA* and Min-Max Searching Algorithms in AI , DSA.pdf
A* and Min-Max Searching Algorithms in AI , DSA.pdf
 
module4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdfmodule4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdf
 
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
 
AstarAlgorithm_v5_TeamFlash
AstarAlgorithm_v5_TeamFlashAstarAlgorithm_v5_TeamFlash
AstarAlgorithm_v5_TeamFlash
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdf
 
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
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Unit 3 Informed Search Strategies.pptx
Unit  3 Informed Search Strategies.pptxUnit  3 Informed Search Strategies.pptx
Unit 3 Informed Search Strategies.pptx
 
AI Greedy and A-STAR Search
AI Greedy and A-STAR SearchAI Greedy and A-STAR Search
AI Greedy and A-STAR Search
 
Design and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesDesign and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture Notes
 
Informed Search.pptx
Informed Search.pptxInformed Search.pptx
Informed Search.pptx
 
Graph Edit Distance: Basics & Trends
Graph Edit Distance: Basics & TrendsGraph Edit Distance: Basics & Trends
Graph Edit Distance: Basics & Trends
 
A* Search Algorithm
A* Search AlgorithmA* Search Algorithm
A* Search Algorithm
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)
 

More from PalGov

Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PalGov
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
PalGov
 
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologiesJarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
PalGov
 
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulationJarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
PalGov
 
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontologyJarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
PalGov
 
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introductionJarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
PalGov
 
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PalGov
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
PalGov
 
Jarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.gamesJarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.games
PalGov
 

More from PalGov (9)

Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologiesJarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
 
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulationJarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
 
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontologyJarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
 
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introductionJarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
 
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
 
Jarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.gamesJarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.games
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
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
 

Recently uploaded (20)

SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.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...
 
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...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
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
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Jarrar.lecture notes.aai.2011s.ch4.informedsearch

  • 1. Chapter 4 Informed Searching Dr. Mustafa Jarrar University of Birzeit [email_address] www.jarrar.info Lecture Notes, Advanced Artificial Intelligence (SCOM7341) University of Birzeit 2 nd Semester, 2011 Advanced Artificial Intelligence (SCOM7341)
  • 2. Discussion and Motivation How to determine the minimum number of coins to give while making change?  The coin of the highest value first ?
  • 3.
  • 4.
  • 5. Romania with step costs in km Suppose we can have this info (SLD)  How can we use it to improve our search?
  • 6.
  • 11.
  • 12.
  • 13.
  • 14. A * search example
  • 15. A * search example
  • 16. A * search example
  • 17. A * search example
  • 18. A * search example
  • 19. A * search example
  • 20. A* Exercise How will A* get from Iasi to Fagaras?
  • 21. A* Exercise Node Coordinates SL Distance A (5,9) 8.0 B (3,8) 7.3 C (8,8) 7.6 D (5,7) 6.0 E (7,6) 5.4 F (4,5) 4.1 G (6,5) 4.1 H (3,3) 2.8 I (5,3) 2.0 J (7,2) 2.2 K (5,1) 0.0
  • 22. Solution to A* Exercise
  • 23. Greedy Best-First Exercise Node Coordinates Distance A (5,9) 8.0 B (3,8) 7.3 C (8,8) 7.6 D (5,7) 6.0 E (7,6) 5.4 F (4,5) 4.1 G (6,5) 4.1 H (3,3) 2.8 I (5,3) 2.0 J (7,2) 2.2 K (5,1) 0.0
  • 24. Solution to Greedy Best-First Exercise
  • 25. Another Exercise Node C g(n) h(n) A (5,10) 0.0 8.0 B (3,8) 2.8 6.3 C (7,8) 2.8 6.3 D (2,6) 5.0 5.0 E (5,6) 5.6 4.0 F (6,7) 4.2 5.1 G (8,6) 5.0 5.0 H (1,4) 7.2 4.5 I (3,4) 7.2 2.8 J (7,3) 8.1 2.2 K (8,4) 7.0 3.6 L (5,2) 9.6 0.0 Do 1) A* Search and 2) Greedy Best-Fit Search
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. Recursive Best First Search (RBFS) RBFS changes its mind very often in practice. This is because the f=g+h become more accurate (less optimistic) as we approach the goal. Hence, higher level nodes have smaller f-values and will be explored first. Problem? If we have more memory we cannot make use of it. Ay idea to improve this? best alternative over fringe nodes, which are not children: do I want to back up?
  • 36.
  • 37. SMA* pseudocode function SMA*( problem ) returns a solution sequence inputs : problem , a problem static : Queue , a queue of nodes ordered by f -cost Queue  MAKE-QUEUE({MAKE-NODE(INITIAL-STATE[ problem ])}) loop do if Queue is empty then return failure n  deepest least-f-cost node in Queue if GOAL-TEST( n ) then return success s  NEXT-SUCCESSOR( n ) if s is not a goal and is at maximum depth then f( s )   else f( s )  MAX(f( n ),g( s )+h( s )) if all of n ’s successors have been generated then update n ’s f -cost and those of its ancestors if necessary if SUCCESSORS( n ) all in memory then remove n from Queue if memory is full then delete shallowest, highest-f-cost node in Queue remove it from its parent’s successor list insert its parent on Queue if necessary insert s in Queue end
  • 38. Simple Memory-bounded A* (MA*) 24+0=24 A B 12 15 H 13  A G 18 13[15]  f = g+h (Example with 3-node memory) Progress of MA*. Each node is labeled with its current f -cost. Values in parentheses show the value of the best forgotten descendant. Can tell you when best solution found within memory constraint is optimal or not.  = goal Search space A B G C D E F H J I K 0+12=12 10+5=15 20+5=25 30+5=35 20+0=20 30+0=30 8+5=13 16+2=18 24+0=24 24+5=29 10 8 10 10 10 10 8 16 8 8 A 12 A B G 13 15 13 A G 24[  ] I 15[15] 24 A B G 15 15 24 A B C 15[24] 15 25 A B D 8 20 20[24] 20[  ]
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51. Hill-climbing search: 8-queens problem A local minimum with h = 1
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57. Genetic Algorithms [2,6,9,3,5 0,4,1,7,8] [3,6,9,7,3 8,0,4,7,1] [2,6,9,3,5,8,0,4,7,1] [3,6,9,7,3,0,4,1,7,8]
  • 58.