Genetic Algorithms by using MapReduce

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

Genetic Algorithm.
Introduction to Genetic Algorithms
Genetic Algorithms by using MapReduce Fei Teng Doga Tuncay 12/5/2011.
CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
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.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computational Intelligence
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithm for Variable Selection
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithm.
Evolutionary Intelligence
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Genetic Algorithms Genetic algorithms imitate a natural optimization process: natural selection in evolution. Developed by John Holland at the University.
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.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
Computational Complexity Jang, HaYoung BioIntelligence Lab.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Evolutionary Algorithms K. Ganesh Research Scholar, Ph.D., Industrial Management Division, Humanities and Social Sciences Department, Indian Institute.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Genetic Algorithms MITM613 (Intelligent Systems).
Neural Networks And Its Applications By Dr. Surya Chitra.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
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.
Genetic Algorithms. Solution Search in Problem Space.
Breeding Swarms: A GA/PSO Hybrid 簡明昌 Author and Source Author: Matthew Settles and Terence Soule Source: GECCO 2005, p How to get: (\\nclab.csie.nctu.edu.tw\Repository\Journals-
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Introduction to Genetic Algorithms
Genetic Algorithms Author: A.E. Eiben and J.E. Smith
Genetic Algorithm in TDR System
Genetic Algorithms.
Genetic Algorithms.
Basics of Genetic Algorithms (MidTerm – only in RED material)
Genetic Algorithms Chapter 3.
Basics of Genetic Algorithms
EE368 Soft Computing Genetic Algorithms.
Introduction to Genetic Algorithm and Some Experience Sharing
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Population Based Metaheuristics
GA.
Presentation transcript:

Genetic Algorithms by using MapReduce Fei Teng Doga Tuncay

Outline Goal Genetic Algorithm Why MapReduce Hadoop/Twister Performance Issues References

Goal Implement a genetic algorithm on Twister to prove that Twister is an ideal MapReduce framework for genetic algorithms for its iterative essence. Analyze the GA performance results from both the Twister and Hadoop. We BELIEVE that Twister will be faster than Hadoop

Genetic algorithm A heuristic algorithm based on Darwin Evolution Good genes of a population are preserved by natural selection Basic idea Exert selection pressure on the problem search space to make it converge on the optimal solution How to Represent a solution Evaluate gene fitness Design genetic operators

Problem representative Encode a problem solution into a gene For example, encode two integers 300 and 900 into genes GA’s often encode solutions as fixed length “bitstrings” (e.g. 101110, 111111, 000101)

Fitness value evaluation Fitness function generate a score as fitness value for each gene representative given a function of “how good” each solution is For a simple function f(x) the search space is one dimensional, but by encoding several values into a gene, many dimensions can be searched Fitness landscape Search space an be visualised as a surface in which fitness dictates height

Fitness landscape

Genetic operators Selection Crossover Mutation A operator which selects the best genes into the reproduction pool For example, Tournament selection Crossover Two parent genes combines their genes to produce the new offspring Mutation Mimic the mutation caused by environment with some small probability(mutation rate) Best means the genes with the highest fitness values in the current population

Normal GA procedure Generate a population of random chromosomes Repeat (each generation) Calculate fitness of each chromosome Repeat Use a selection method to select pairs of parents Generate offspring with crossover and mutation Until a new population has been produced Until best solution is good enough

Why’s ? Why MapReduce ? Genetic algorithms are naturally parallel Divide a population into several sub-populations Parallel genetic algorithm has long history on MPI Genetic algorithms are naturally iterative Iterate from one generation to the next until GA convergences Why Twister? Good at iterative MapReduce Genetic algorithms on Iterative MapReduce is a new topic and worthy of exploring

Initial design Mapper Reducer Driver <key, value> pair: gene representative and its fitness value Override Map() to implement fitness function Reducer Conduct selection and crossover to produce new offspring and generate new sub-population Driver Combined results are checked to see if current population is good enough for stopping criterion

Initial Design(cont’d) Intermediate <key,value> New offspring Seed Population partition Map Reducer partition Twister Driver . . . Combiner . partition Map Reducer

Potential research objects Trivial problem Onemax problem a simple problem consisting in maximizing the number of ones of a bitstring For example, for a bitstring with a length of 106 , GA needs to find the answer 106 by heuristic search Non-trivial problem Try to determine the linear relation between child-obesity health data and environment data with GA

Performance Analysis Some research about the Onemax Problem by using Hadoop Better scalability Easy to program We believe Twister will have better performance because Twister explicitly supports iterative MapReduce Twister caches static data in memory Twister does not do hard disk I/O between mappers and reducers

Rough schedule Workload split Timeline Fei is working on the Twister GA Doga is working on the Hadoop GA Timeline Detailed design before Oct.30 Complete implementation before Nov.30 Analyze the performance data on Dec

References http://en.wikipedia.org/wiki/Genetic_algorithm http://www.iterativemapreduce.org/ Chao Jin, Christian Vecchiola and Rajkumar Buyya MRPGA: An Extension of MapReduce for Parallelizing Genetic Algorithms Abhishek Verma, Xavier Llora, David E. Goldberg, Scaling Simple and Compact Genetic Algorithms using MapReduce

Thank you Questions?

Example population No. Chromosome Fitness 1 1010011010 2 1111100001 3 1011001100 4 1010000000 5 0000010000 6 1001011111 7 0101010101 8 1011100111

Roulette Wheel Selection 1 2 3 4 5 6 7 8 1 2 3 1 3 5 1 2 Rnd[0..18] = 7 Chromosome4 Parent1 Rnd[0..18] = 12 Chromosome6 Parent2 18

Crossover - Recombination 1010000000 Parent1 Offspring1 1011011111 1001011111 1010000000 Parent2 Offspring2 Crossover single point - random With some high probability (crossover rate) apply crossover to the parents. (typical values are 0.8 to 0.95)

Mutation mutate 1011001111 Offspring1 1011011111 Offspring1 1010000000 1000000000 Offspring2 Offspring2 Original offspring Mutated offspring With some small probability (the mutation rate) flip each bit in the offspring (typical values between 0.1 and 0.001)