Introduction to Artificial Intelligence Evolutionary Computing Henry Kautz.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
CS6800 Advanced Theory of Computation
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Genetic Algorithms. Some Examples of Biologically Inspired AI Neural networks Evolutionary computation (e.g., genetic algorithms) Immune-system-inspired.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Evolutionary Computational Intelligence
Imagine that I am in a good mood Imagine that I am going to give you some money ! In particular I am going to give you z dollars, after you tell me the.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Algorithms: A Tutorial
Genetic Algorithm.
CSM6120 Introduction to Intelligent Systems Other evolutionary algorithms.
Genetic Algorithms and Ant Colony Optimisation
Computer Implementation of Genetic Algorithm
1 An Overview of Evolutionary Computation 조 성 배 연세대학교 컴퓨터과학과.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Evolution Strategies Evolutionary Programming Genetic Programming Michael J. Watts
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic algorithms Prof Kang Li
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Michael J. Watts
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Design & Analysis of Algorithms Combinatory optimization SCHOOL OF COMPUTING Pasi Fränti
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
Introduction to Evolutionary Algorithms Session 4 Jim Smith University of the West of England, UK May/June 2012.
Local Search: walksat, ant colonies, and genetic algorithms.
Computational Complexity Jang, HaYoung BioIntelligence Lab.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
Crossovers and Mutation Richard P. Simpson. Genotype vs. Phenotype The genotype of a chromosome is just the basic data structure (it bits in a binary.
A New Evolutionary Approach for the Optimal Communication Spanning Tree Problem Sang-Moon Soak Speaker: 洪嘉涓、陳麗徽、李振宇、黃怡靜.
Algorithms and their Applications CS2004 ( ) 13.1 Further Evolutionary Computation.
A Simple Example The Traveling Salesman Problem: Find a tour of a given set of cities so that each city is visited only once the total distance traveled.
Evolution Programs (insert catchy subtitle here).
1 Genetic Algorithms and Ant Colony Optimisation.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Voicu Groza, 2008 SITE, HARDWARE/SOFTWARE CODESIGN OF EMBEDDED SYSTEMS 1 Hardware/Software Codesign of Embedded Systems OPTIMIZATION Voicu Groza.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Edge Assembly Crossover
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
Introduction to GAs: Genetic Algorithms Quantitative Analysis: How to make a decision? Thank you for all pictures and information referred.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm in TDR System
Evolutionary Algorithms Jim Whitehead
Evolution Strategies Evolutionary Programming
Neuro-Computing Lecture 6
Example: Applying EC to the TSP Problem
Genetic Algorithms: A Tutorial
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Traveling Salesman Problem by Genetic Algorithm
Beyond Classical Search
Population Based Metaheuristics
Genetic Algorithms: A Tutorial
Presentation transcript:

Introduction to Artificial Intelligence Evolutionary Computing Henry Kautz

Announcements Midterm exam Wednesday –Bring any written notes, but not textbook –Will cover material up through neural networks –Counts for 10% of final grade Please send your team name to Ravi Readings for Friday (if any) will be posted Wednesday

Final Projects Express yourself Don’t follow the rules Take risks Have fun Seattle artist Monad Elohim

Myopic Local Search The local search methods we have discussed so far are myopic – they only look at the immediate neighborhood of a single state at any one time Simple Parallelism: run many searches in parallel with different random seeds –Prob(Success) = 1 – Prob(Run Fails) k –E.g.: Prob(Run Fails) = 90%, k = 10  Prob(Success) = 65%

Multi-Point Local Search We can (sometimes) do better by considering several points simultaneously and exchanging information between the search points Two biological metaphors: –Genetic algorithms –Swarm algorithms

Genetic algorithms A successor state is generated by combining two parent states Start with k randomly generated states (population) A state is represented as a string over a finite alphabet (often a string of 0s and 1s) Evaluation function (fitness function). Depending on problem, may want to MAXIMIZE or MINIMIZE. Produce the next generation of states by selection, crossover, and mutation

Example: 8-Queens Fitness function: number of non-attacking pairs of queens (min = 0, max = 8 × 7/2 = 28) 24/( ) = 31% 23/( ) = 29% etc Normalized Fitness

Genetic algorithms

Components of a GA A problem to solve, and... Encoding technique (gene, chromosome) Initialization procedure (creation) Evaluation function (environment) Selection of parents (reproduction) Genetic operators (mutation, recombination) Parameter settings (practice and art)

The GA Cycle of Reproduction reproduction population evaluation modification discard deleted members parents children modified children evaluated children

Population Chromosomes could be: –Bit strings ( ) –Real numbers ( ) –Permutations of element (E11 E3 E7... E1 E15) –Lists of rules (R1 R2 R3... R22 R23) –Program elements (genetic programming) –... any data structure... population

Reproduction reproduction population parents children Parents are selected at random with selection chances biased in relation to chromosome evaluations

Chromosome Modification modification children Modifications are stochastically triggered Operator types are: –Mutation –Crossover (recombination) modified children

Crossover mechanisms

Two Authors

James Thurber James Grover Thurber (December 8, 1894–November 2, 1961) was a U.S. humorist and cartoonist. Thurber was best known for his contributions (both cartoons and short stories) to The New Yorker magazine. The Secret Life of Walter Mitty

Evaluation The evaluator decodes a chromosome and assigns it a fitness measure The evaluator is the only link between a classical GA and the problem it is solving evaluation evaluated children modified children

Deletion Generational GA: entire populations replaced with each iteration Steady-state GA: a few members replaced each generation population discard discarded members

Example: Traveling Salesman Problem Find a tour of a given set of cities so that –each city is visited only once –the total distance traveled is minimized

Representation Representation is an ordered list of city numbers known as an order-based GA. 1) Berlin 3) Stuttgart 5) Cologne 7) Dusseldorf 2) Munich 4) Wesbaden 6) Hanover 8) Breme CityList1 ( ) CityList2 ( )

Mutating Permutations Changing just one entry in the permutation would give an inadmissible solution Alternative: –Pick two allele values at random –Move the second to follow the first, shifting the rest along to accommodate –Note that this preserves most of the order and the adjacency information

“ Normal” crossover operators will often lead to inadmissible solutions Many specialised operators have been devised which focus on combining order or adjacency information from the two parents Crossover operators for permutations

Order 1 Crossover Idea is to preserve relative order that elements occur Informal procedure: 1. Choose an arbitrary part from the first parent 2. Copy this part to the first child 3. Copy the numbers that are not in the first part, to the first child: starting right from cut point of the copied part, using the order of the second parent and wrapping around at the end 4. Analogous for the second child, with parent roles reversed

Order 1 Crossover Example Copy randomly selected set from first parent Copy rest from second parent in order 1,9,3,8,2

TSP Demo

TSP Example: 30 Cities

Solution i (Distance = 941)

Solution j (Distance = 800)

Solution k (Distance = 652)

Best Solution (Distance = 420)

Overview of Performance

Considering GA Technology “Almost eight years ago... people at Microsoft wrote a program [that] uses some genetic things for finding short code sequences. Windows 2.0 and 3.2, NT, and almost all Microsoft applications products have shipped with pieces of code created by that system.” - Nathan Myhrvold, Microsoft Advanced Technology Group, Wired, September 1995

Hardware & Software Optimization GA have been particularly successful for finding small circuits or code snippets that implement common functions E.g.: Sorting network – parallel circuit that sorts a fixed number of inputs using “compare / exchange” operators

Representation For design tasks like this, the genotype is not just a low-level bit-string, but a high- level data structure with meaningful sub- structure Software: parse tree Circuit: treat as a program –gates = functions –wires = variables

Fitness Function Multi-objective fitness function: –Circuit sorts correctly –Circuit is small Theorem: a sorting circuit design is correct if it is correct for 1-bit inputs Fitness (minimized) = # of (1-bit) inputs sorted incorrectly * circuit size

Computational Bottleneck Consider networks for sorting 16 numbers: every child must be tested on 2 16 inputs Cost of doing all these tests comprises nearly all of the computation time Strategies: –Parallelize evaluation of children [1,000 node cluster] –Use special hardware (FPGA) to evaluate [Koza et al 1997]

Results

Issues for GA Practitioners Design decisions: –representation –population size, mutation rate,... –selection, deletion policies –crossover, mutation operators Key open question…

Swarm Algorithms, Briefly Idea: –Each insect in a swarm is local search process –At each step, each insect: Looks around its neighborhood Decides which direction looks best Communicates what it found out to (some of) the other insects According to a random coin flip, –Moves in the direction that looks best locally –Moves in the best direction it hears about –Moves in some weighted combination of the above

Example: Particle Swarm Optimization

Coming Up Logical reasoning –What is logic –Search algorithms for reasoning –Applications Probabilistic reasoning and learning