Introduction to Artificial Intelligence
By:
Dr. Mohammad Shoab
Week 5
Local Search Algorithms
Informed Search Strategies (Heuristic Search):
Introduction to Artificial Intelligence
Department of Computer Science
Local Search Algorithms
Introduction to Artificial Intelligence
Department of Computer Science
•
search
algorithm
Hill climbing
(also known
as greedy local
search) uses a loop that continually moves in the direction of increasing values (that is uphill).
•
It terminates when it reaches a peak where no neighbor has a higher value.
Hill Climbing
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing Search
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
states
evaluation
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing in Action …
Cost
States
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
Current Solution
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
Current Solution
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
Current Solution
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
Current Solution
Introduction to Artificial Intelligence
Department of Computer Science
Hill Climbing
Best
Local Minimum
Global Minimum
Introduction to Artificial Intelligence
Department of Computer Science
optimum.
Issues
The Goal is to find GLOBAL
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
In metallurgy, annealing is the physical process used to temperature or harden metals or glass by heating them to a high temperature and then gradually cooling them, thus allowing the material to coalesce into a low energy crystalline state.
Heating then slowly cooling a substance to obtain a strong
crystalline structure.
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing in Action …
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
Simulated Annealing
Cost
Best
States
Introduction to Artificial Intelligence
Department of Computer Science
The End
39
Introduction to Artificial Intelligence
Department of Computer Science
Exercise
Q1. What is heuristic search?
Q2. Explain Hill Climbing algorithm.
Q3. Explain Simulated Annealing.
Q4. Write the search path and cost of the given figure for Hill Climbing algorithm
40
Introduction to Artificial Intelligence
Department of Computer Science
Q5. Hill Climbing Search algorithm also known as
Q6. Instead of picking the best move, Simulated Annealing picks a
41
Introduction to Artificial Intelligence
Department of Computer Science
Q7. Simulated Annealing combines
42
Introduction to Artificial Intelligence
Department of Computer Science