The Standard Genetic Algorithm Start with a “population” of “individuals” Rank these individuals according to their “fitness” Select pairs of individuals.

Slides:



Advertisements
Similar presentations
Local Search Algorithms
Advertisements

Alpha-Beta Search. 2 Two-player games The object of a search is to find a path from the starting position to a goal position In a puzzle-type problem,
Biologically Inspired Computing: Operators for Evolutionary Algorithms
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.
Tetris – Genetic Algorithm Presented by, Jeethan & Jun.
Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Tetris and Genetic Algorithms Math Club 5/30/2011.
Genetic Algorithms Yohai Trabelsi. Outline Evolution in the nature Genetic Algorithms and Genetic Programming A simple example for Genetic Algorithms.
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
On the Genetic Evolution of a Perfect Tic-Tac-Toe Strategy
Adversarial Search: Game Playing Reading: Chapter next time.
GP Applications Two main areas of research Testing genetic programming in areas other techniques have been applied to. Applying genetic programming to.
Artificial Intelligence in Game Design
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Game Playing CSC361 AI CSC361: Game Playing.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computational Intelligence
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Brandon Andrews.  What are genetic algorithms?  3 steps  Applications to Bioinformatics.
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.
Genetic Algorithm.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Game Playing.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Othello Artificial Intelligence With Machine Learning
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
Game-playing AIs Part 1 CIS 391 Fall CSE Intro to AI 2 Games: Outline of Unit Part I (this set of slides)  Motivation  Game Trees  Evaluation.
Arindam K. Das CIA Lab University of Washington Seattle, WA MINIMUM POWER BROADCAST IN WIRELESS NETWORKS.
For Friday Finish reading chapter 7 Homework: –Chapter 6, exercises 1 (all) and 3 (a-c only)
EE459 I ntroduction to Artificial I ntelligence Genetic Algorithms Kasin Prakobwaitayakit Department of Electrical Engineering Chiangmai University.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
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.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
N- Queens Solution with Genetic Algorithm By Mohammad A. Ismael.
Graph Search II GAM 376 Robin Burke. Outline Homework #3 Graph search review DFS, BFS A* search Iterative beam search IA* search Search in turn-based.
Othello Artificial Intelligence With Machine Learning Computer Systems TJHSST Nick Sidawy.
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
Genetic Programming Using Simulated Natural Selection to Automatically Write Programs.
The Implementation of Genetic Algorithms to Locate Highest Elevation By Harry Beddo.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Artificial Intelligence in Game Design Board Games and the MinMax Algorithm.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
Genetic Algorithms.
Alpha-Beta Search.
Alpha-Beta Search.
The Alpha-Beta Procedure
Alpha-Beta Search.
Searching for solutions: Genetic Algorithms
Alpha-Beta Search.
Alpha-Beta Search.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

The Standard Genetic Algorithm Start with a “population” of “individuals” Rank these individuals according to their “fitness” Select pairs of individuals to “reproduce” –Higher fitness  greater probability of selection Each pair of “parents” produces two “children” –Because of “crossover,” children receive “genes” from both parents Introduce random “mutations” in some of the children Repeat until a desired fitness level has been reached or some number of generations have elapsed

Individuals and Fitness In this system, the individuals are utility functions, and the genes are the weights assigned to the different factors. Population size is set by the user and must be a power of 2. Fitness is measured in a single-elimination tournament. –Games are played to a maximum of 40 moves. –A win in the tournament is worth 10 fitness points. –A tie is worth 5 fitness points. –The sum of all individuals’ fitnesses is normalized to 1. Parents are selected with probability equal to their fitness. –Parents are not necessarily monogamous.

Finding Fitnesses Individual PointsFitness A B 00 C D 00 E 00 F G H 00 Total 701

Crossover and Mutation Genes are listed in a fixed, arbitrary order, and crossover occurs at a single, randomly chosen point in the list. –One child receives from one parent the set of genes that occur before the crossover point. It receives from its other parent the set of genes that occur after the crossover point. –The other child receives the complementary set of genes from each parent. Each gene is subject to mutation with a small, independent probability that is set by the user. –The size of the mutation is random, but the distribution is skewed toward smaller changes. –A gene can never change by more than its current value.

Generating Children Advancement Back Row Bridge Center Control Diagonal Moment King Center Control Total Mobility Triangle of Oreo Threat Advancement Back Row Bridge Center Control Diagonal Moment King Center Control Total Mobility Triangle of Oreo Threat ParentsChildren crossover mutation

Encoding Knowledge of Checkers Move Generator –Incorporates all of the rules of the game. –Computes the legal moves that are available in a given board state. Utility Function –Attempts to quantify the desirability of a given board state. –Consists of a simple linear combination of 16 factors taken from A. L. Samuel’s original checkers program of –Coefficients can take on any value in the range of a Java double. –Unfortunately, this function is too simple to represent the game, since it cannot even represent interactions between the factors.

The Computer Player Basic Strategy: Minimax Search –Searches forward in time to find the best move to make now. –Represents the game as a tree. Each level corresponds to a turn. Each node corresponds to a possible game state. Each edge represents a legal move. –Assumes that, at each turn, players will choose the move that is most beneficial. –In checkers, it is usually impossible to search to the end of the game because there are so many possible moves at each turn. In this system, the search is stopped at an arbitrary depth of 6 moves, and a utility function rates the desirability of every possible game state.

Minimax Search