CSE 4705 Artificial Intelligence

Slides:



Advertisements
Similar presentations
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Advertisements

Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Chess AI’s, How do they work? Math Club 10/03/2011.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
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.
Basic concepts of Data Mining, Clustering and Genetic Algorithms Tsai-Yang Jea Department of Computer Science and Engineering SUNY at Buffalo.
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Design & Analysis of Algorithms Combinatory optimization SCHOOL OF COMPUTING Pasi Fränti
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
For Friday Finish chapter 6 Program 1, Milestone 1 due.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Power of Heuristic; non- conventional search.
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.
CMSC 421: Intro to Artificial Intelligence October 6, 2003 Lecture 7: Games Professor: Bonnie J. Dorr TA: Nate Waisbrot.

Genetic Search Algorithms Matt Herbster. Why Another Search?  Designed in the 1950s, heavily implemented under John Holland (1970s)  Genetic search.
Adversarial Search. Regular Tic Tac Toe Play a few games. –What is the expected outcome –What kinds of moves “guarantee” that?
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Chapter 5 Adversarial Search. 5.1 Games Why Study Game Playing? Games allow us to experiment with easier versions of real-world situations Hostile agents.
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"
Games: Expectimax MAX MIN MAX Prune if α ≥ β. Games: Expectimax MAX MIN MAX
Game Playing Why do AI researchers study game playing?
Adversarial Search and Game-Playing
Using GA’s to Solve Problems
Optimization via Search
Adversarial Environments/ Game Playing
Evolutionary Algorithms Jim Whitehead
4. Games and adversarial search
AI Classnotes #5, John Shieh, 2012
Iterative Deepening A*
PENGANTAR INTELIJENSIA BUATAN (64A614)
Games and adversarial search (Chapter 5)
CS 460 Spring 2011 Lecture 4.
Adversarial Search.
David Kauchak CS52 – Spring 2016
Artificial Intelligence Project 2 Genetic Algorithms
CS 188: Artificial Intelligence Fall 2007
Expectimax Lirong Xia. Expectimax Lirong Xia Project 2 MAX player: Pacman Question 1-3: Multiple MIN players: ghosts Extend classical minimax search.
Artificial Intelligence (CS 370D)
Prof. Marie desJardins September 20, 2010
Game Playing in AI by: Gaurav Phapale 05 IT 6010
CS621: Artificial Intelligence
Artificial Intelligence
CSE 4705 Artificial Intelligence
Game playing.
CSE 4705 Artificial Intelligence
CSE 4705 Artificial Intelligence
Artificial Intelligence
Design & Analysis of Algorithms Combinatorial optimization
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
More on Search: A* and Optimization
Game Playing Fifth Lecture 2019/4/11.
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
Adversarial Search and Game Playing Examples
Search.
Search.
Adversarial Search CMPT 420 / CMPG 720.
Adversarial Search Game Theory.
CS51A David Kauchak Spring 2019
CS51A David Kauchak Spring 2019
Presentation transcript:

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

Informed search strategies

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

Game playing and adversarial search

Games If possible, we can talk about minimax rule and search

Motivation

The simplest game environment

Other properties of the simplest games

More complicated games

Formalizing the game setup

How to play a game by searching

Game trees

Game trees

Hexapawn: three possible first moves

Hexapawn: three possible first moves

MAX & MIN nodes: an egocentric view

Evaluation functions: f(n)

A partial game tree for Tic-Tac-Toe

The Minimax rule

The minimax rule Don’t play hope chess

The minimax procedure

2-ply Minimax example

What if MIN does not play optimally?

Comments on Minimax search

Questions?