CSE 4705 Artificial Intelligence

Slides:



Advertisements
Similar presentations
Local Search Algorithms
Advertisements

Local Search Algorithms Chapter 4. Outline Hill-climbing search Simulated annealing search Local beam search Genetic algorithms Ant Colony Optimization.
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
Iterative improvement algorithms Prof. Tuomas Sandholm Carnegie Mellon University Computer Science Department.
CS482/682 Artificial Intelligence Lecture 7: Genetic Algorithms and Constraint Satisfaction Problems 15 September 2009 Instructor: Kostas Bekris Computer.
Iterative Improvement Algorithms
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Iterative Improvement Algorithms For some problems, path to solution is irrelevant: just want solution Start with initial state, and change it iteratively.
Review Best-first search uses an evaluation function f(n) to select the next node for expansion. Greedy best-first search uses f(n) = h(n). Greedy best.
Informed Search Chapter 4 Adapted from materials by Tim Finin, Marie desJardins, and Charles R. Dyer CS 63.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
1 CS 2710, ISSP 2610 R&N Chapter 4.1 Local Search and Optimization.
Local Search and Optimization
Informed Search Chapter 4 (b)
When A* fails – Hill climbing, simulated annealing Genetic algorithms
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
An Introduction to Artificial Life Lecture 4b: Informed Search and Exploration Ramin Halavati In which we see how information.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Informed State Space Search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
Chapter 4.1 Beyond “Classic” Search. What were the pieces necessary for “classic” search.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Local Search Algorithms
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
For Friday Finish chapter 6 Program 1, Milestone 1 due.
Local Search and Optimization Presented by Collin Kanaley.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
When A* doesn’t work CIS 391 – Intro to Artificial Intelligence A few slides adapted from CS 471, Fall 2004, UBMC (which were adapted from notes by Charles.
Announcement "A note taker is being recruited for this class. No extra time outside of class is required. If you take clear, well-organized notes, this.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Local Search Algorithms and Optimization Problems
Local Search Algorithms CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and.
Genetic Algorithm(GA)
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
CSE 4705 Artificial Intelligence
Informed Search Chapter 4 (b)
Informed Search Methods
Using GA’s to Solve Problems
Optimization via Search
Informed Search Chapter 4 (b)
Department of Computer Science
Informed Search Chapter 4 (b)
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Local Search Algorithms
Artificial Intelligence (CS 370D)
CS621: Artificial Intelligence
CSE 4705 Artificial Intelligence
Local Search and Optimization
Artificial Intelligence Chapter 4. Machine Evolution
CSE 4705 Artificial Intelligence
Heuristics Local Search
Informed Search Chapter 4 (b)
Informed search algorithms
More on Search: A* and Optimization
Heuristics Local Search
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
First Exam 18/10/2010.
Local Search Algorithms
Search.
Search.
Midterm Review.
Beyond Classical Search
Local Search Algorithms
Presentation transcript:

CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering http://www.engr.uconn.edu/~jinbo

Informed search strategies

Dominance

Iterative deepening A* and beyond

Iterative deepening A* and beyond

Informed search II When A* fails – hill climbing, simulated annealing Genetic algorithms

Outline

Local search and optimization

Hill climbing

Hill climbing on a surface of states

Hill climbing search

Hill climbing search example 4

Hill climbing search example: n-queens

Hill climbing search example: 8-queens

Hill climbing search space features

Hill climbing (variant) If we only know the function value at a state x, Hill Climbing ( or downhill) If besides the function value, we can compute gradient, Gradient ascent ( or descent)

Hill climbing (variant) If we only know the function value at a state x, and the state space is finite Hill Climbing ( or downhill) If besides the function value, we can compute gradient, and the state space is continuous Gradient ascent ( or descent)

Gradient ascent/descent Requires line search to decide a step size: (1) exact line search, solve a one-dimensional optimization problem (2)inexact line search (Armijo-Goldstein)

Gradient ascent/descent example min f(x,y) = (x-2)2 + (y-3)2 Initial guess is (1,1), find the optimal solution. Compute gradient f’(x,y) = ( 2(x-2), 2(y-3) ) f’(1,1) = (-2, -4) Set x = (1,1) – s * (-2,-4) Do a line search to find s g(s) = (2s-1)2 + (4s-2)2 = 20s2 – 20s + 5 g’(s) = 40s – 20 = 0 s = 0.5 Hence, x = (2, 3) Check if x is the fixed point

Gradient ascent/descent example From wikipedia

Gradient ascent/descent example

Gradient methods vs. Newton’s method

Drawbacks of hill climbing Local Maxima: peaks that are not the highest point in the space Plateaus: the space has a broad flat region that gives the search algorithm no direction (random walk) Ridges: drop-offs to the sides; steps to the North, East, South and West may go down, but a step to the NW may go up.

Example of a local maximum

The Shape of an Easy Problem (Convex)

The Shape of a Harder Problem

The Shape of an even Harder Problem

Random restart – a remedy to the drawbacks

Local beam search

Simulated annealing

Simulated annealing (SA)

Simulated annealing (SA)

Simulated annealing algorithm Example of simulated annealing https://www.youtube.com/watch?v=VWtYLv-4oP0 Example codes http://www.theprojectspot.com/tutorial-post/simulated-annealing-algorithm-for-beginners/6

Simulated annealing example h = 1, t=1, T = T0/2 = 50 Because T ~= 0, so Next = a random move Δ E = E1 – E0 = 1 If Δ E < 0, Current = Next Else compute p = e (- Δ E/T) =0.98 Generate a random number r from a uniform [0,1] Assume r = 0.8 Then, Current = Next Initial state T0 = 100 Annealing schedule is T T/2

Simulated annealing example h = 1, t=1, T = T0/2 = 50 Because T ~= 0, so Next = a random move Δ E = E1 – E0 = 1 If Δ E < 0, Current = Next Else compute p = e (- Δ E/T) =0.98 Generate a random number r from a uniform [0,1] Assume r = 0.8 Then, Current = Next Initial state T0 = 100 Annealing schedule is T T/2

Simulated annealing (variant) Another annealing scheduling

Genetic algorithms

Genetic algorithms

Representation: strings of genes

Encoding of a chromosome

Example: genetic algorithms for drive train

Operations: crossover

Operations: mutation

The basic genetic algorithm A short video explains GA in 3 minutes https://www.youtube.com/watch?v=ejxfTy4lI6I

Genetic algorithm: 8-queens

Questions?