For Friday Finish chapter 6 Program 1, Milestone 1 due.

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Advertisements

Local Search Algorithms
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Artificial Intelligence Presentation
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
For Friday Finish chapter 5 Program 1, Milestone 1 due.
February 7, 2006AI: Chapter 6: Adversarial Search1 Artificial Intelligence Chapter 6: Adversarial Search Michael Scherger Department of Computer Science.
For Monday Read chapter 7, sections 1-4 Homework: –Chapter 4, exercise 1 –Chapter 5, exercise 9.
Artificial Intelligence Adversarial search Fall 2008 professor: Luigi Ceccaroni.
CS 484 – Artificial Intelligence
Search in AI.
1 Game Playing. 2 Outline Perfect Play Resource Limits Alpha-Beta pruning Games of Chance.
Lecture 12 Last time: CSPs, backtracking, forward checking Today: Game Playing.
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
10/19/2004TCSS435A Isabelle Bichindaritz1 Game and Tree Searching.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
CPSC 322 Introduction to Artificial Intelligence October 25, 2004.
This time: Outline Game playing The minimax algorithm
CS 561, Sessions Administrativia Assignment 1 due tuesday 9/24/2002 BEFORE midnight Midterm exam 10/10/2002.
1 Using Search in Problem Solving Part II. 2 Basic Concepts Basic concepts: Initial state Goal/Target state Intermediate states Path from the initial.
CS 561, Sessions Last time: search strategies Uninformed: Use only information available in the problem formulation Breadth-first Uniform-cost Depth-first.
Game Playing CSC361 AI CSC361: Game Playing.
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2005.
CS 460, Sessions Last time: search strategies Uninformed: Use only information available in the problem formulation Breadth-first Uniform-cost Depth-first.
Iterative Improvement Algorithms For some problems, path to solution is irrelevant: just want solution Start with initial state, and change it iteratively.
Adversarial Search: Game Playing Reading: Chess paper.
1 Adversary Search Ref: Chapter 5. 2 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Local Search and Optimization
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
Game Playing.
Games CPS 170 Ron Parr. Why Study Games? Many human activities can be modeled as games –Negotiations –Bidding –TCP/IP –Military confrontations –Pursuit/Evasion.
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.
Chapter 6 Adversarial Search. Adversarial Search Problem Initial State Initial State Successor Function Successor Function Terminal Test Terminal Test.
An Introduction to Artificial Life Lecture 4b: Informed Search and Exploration Ramin Halavati In which we see how information.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
For Wednesday Read Weiss, chapter 12, section 2 Homework: –Weiss, chapter 10, exercise 36 Program 5 due.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
1 Review of search strategies Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game Review of search strategies Decisions in games Minimax.
For Friday Finish reading chapter 7 Homework: –Chapter 6, exercises 1 (all) and 3 (a-c only)
For Wednesday Read chapter 7, sections 1-4 Homework: –Chapter 6, exercise 1.
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.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Local Search and Optimization Presented by Collin Kanaley.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Local Search Algorithms and Optimization Problems
Adversarial Search. Regular Tic Tac Toe Play a few games. –What is the expected outcome –What kinds of moves “guarantee” that?
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
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.
Adversarial Search Chapter 5 Sections 1 – 4. AI & Expert Systems© Dr. Khalid Kaabneh, AAU Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
ADVERSARIAL SEARCH Chapter 6 Section 1 – 4. OUTLINE Optimal decisions α-β pruning Imperfect, real-time decisions.
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.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
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
Artificial Intelligence AIMA §5: Adversarial Search
Last time: search strategies
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Search.
Search.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

For Friday Finish chapter 6 Program 1, Milestone 1 due

Program 1 Any questions?

8-Puzzle Heuristic Functions Number of tiles out of place Manhattan Distance Which is better? Experiment Effective branching factor

Inventing Heuristics Relax the problem Cost of solving a subproblem Learn weights for features of the problem

Local Search Works from the “current state” No focus on path Also useful for optimization problems

Local Search Advantages? Disadvantages?

Hill-Climbing Also called gradient descent Greedy local search Move from current state to a state with a better overall value Issues: –Local maxima –Ridges –Plateaux

Variations on Hill Climbing Stochastic hill climbing First-choice hill climbing Random-restart hill climbing

Evaluation of Hill Climbing

Simulated Annealing Similar to hill climbing, but-- –We select a random successor –If that successor improves things, we take it –If not, we may take it, based on a probability –Probability gradually goes down

Local Beam Search Variant of hill-climbing where multiple states and successors are maintained

Genetic Algorithms Have a population of k states (or individuals) Have a fitness function that evaluates the states Create new individuals by randomly selecting pairs and mating them using a randomly selected crossover point. More fit individuals are selected with higher probability. Apply random mutation. Keep top k individuals for next generation.

Other Issues What issues arise from continuous spaces? What issues do online search and unknown environments create?

Game Playing in AI Long history Games are well-defined problems usually considered to require intelligence to play well Introduces uncertainty (can’t know opponent’s moves in advance)

Games and Search Search spaces can be very large: Chess –Branching factor: 35 –Depth: 50 moves per player –Search tree: nodes (~10 40 legal positions) Humans don’t seem to do much explicit search Good test domain for search methods and pruning methods

Game Playing Problem Instance of general search problem States where game has ended are terminal states A utility function (or payoff function) determines the value of the terminal states In 2 player games, MAX tries to maximize the payoff and MIN is tries to minimize the payoff In the search tree, the first layer is a move by MAX and the next a move by MIN, etc. Each layer is called a ply

Minimax Algorithm Method for determining the optimal move Generate the entire search tree Compute the utility of each node moving upward in the tree as follows: –At each MAX node, pick the move with maximum utility –At each MIN node, pick the move with minimum utility (assume opponent plays optimally) –At the root, the optimal move is determined

Recursive Minimax Algorithm function Minimax-Decision(game) returns an operator for each op in Operators[game] do Value[op] <- Mimimax-Value(Apply(op, game),game) end return the op with the highest Value[op] function Minimax-Value(state,game) returns a utility value if Terminal-Test[game](state) then return Utility[game](state) else if MAX is to move in state then return highest Minimax-Value of Successors(state) else return lowest Minimax-Value of Successors(state)

Making Imperfect Decisions Generating the complete game tree is intractable for most games Alternative: –Cut off search –Apply some heuristic evaluation function to determine the quality of the nodes at the cutoff

Evaluation Functions Evaluation function needs to –Agree with the utility function on terminal states –Be quick to evaluate –Accurately reflect chances of winning Example: material value of chess pieces Evaluation functions are usually weighted linear functions

Cutting Off Search Search to uniform depth Use iterative deepening to search as deep as time allows (anytime algorithm) Issues –quiescence needed –horizon problem