CS621: Artificial Intelligence

Slides:



Advertisements
Similar presentations
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Advertisements

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.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
CS 447 Advanced Topics in Artificial Intelligence Fall 2002.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
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)
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Monotonicity 13 th Jan, 2011.
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
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.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Evolutionary Computation: Genetic Algorithms Copying ideas of Nature Madhu, Natraj,
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
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.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Power of Heuristic; non- conventional search.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Genetic Algorithms MITM613 (Intelligent Systems).
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.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lectures 18, 19, 20– A* Monotonicity 2 nd, 6 th and 7 th September, 2010.
CS621: Artificial Intelligence
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.
Advanced AI – Session 6 Genetic Algorithm By: H.Nematzadeh.
Genetic Algorithm(GA)
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Advanced AI – Session 7 Genetic Algorithm By: H.Nematzadeh.
Genetic Algorithms and Evolutionary Programming A Brief Overview.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Using GA’s to Solve Problems
Chapter 14 Genetic Algorithms.
Optimization via Search
Genetic Algorithms.
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
USING MICROBIAL GENETIC ALGORITHM TO SOLVE CARD SPLITTING PROBLEM.
School of Computer Science & Engineering
Introduction to Genetic Algorithm (GA)
An evolutionary approach to solving complex problems
Artificial Intelligence (CS 370D)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Prof. Marie desJardins September 20, 2010
Genetic Algorithms CPSC 212 Spring 2004.
Genetic Algorithms overview
Artificial Intelligence Chapter 4. Machine Evolution
More on Search: A* and Optimization
Artificial Intelligence Chapter 4. Machine Evolution
EE368 Soft Computing Genetic Algorithms.
Boltzmann Machine (BM) (§6.4)
Evolutionary Computation: Genetic Algorithms
Searching for solutions: Genetic Algorithms
A Gentle introduction Richard P. Simpson
Machine Learning: UNIT-4 CHAPTER-2
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Steady state Selection
Beyond Classical Search
GA.
Presentation transcript:

CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 6: Genetic Algorithm

A list of AI Search Algorithms AO* IDA* (Iterative Deepening) Minimax Search on Game Trees Viterbi Search on Probabilistic FSA Hill Climbing Simulated Annealing Gradient Descent Stack Based Search Genetic Algorithms Memetic Algorithms

Evolutionary search: Genetic and Memetic Algoritms

Evolutionary Computation Evolutionary Computation (EC) refers to computer-based problem solving systems that use computational models of evolutionary process. Terminology: Chromosome – It is an individual representing a candidate solution of the optimization problem. Population – A set of chromosomes. gene – It is the fundamental building block of the chromosome, each gene in a chromosome represents each variable to be optimized. It is the smallest unit of information. Objective: To find a best possible chromosome for a given optimization problem.

Evolutionary Algorithm: A meta-heuristic Let t = 0 be the generation counter; create and initialize a population P(0); repeat Evaluate the fitness, f(xi), for all xi belonging to P(t); Perform cross-over to produce offspring; Perform mutation on offspring; Select population P(t+1) of new generation; Advance to the new generation, i.e., t = t+1; until stopping condition is true;

On Overview of GAs GA emulate genetic evolution. A GA has distinct features: A string representation of chromosomes. A selection procedure for initial population and for off-spring creation. A cross-over method and a mutation method. A fitness function be to minimized. A replacement procedure. Parameters that affect GA are initial population, size of the population, selection process and fitness function.

Anatomy of GA

P(xi) = f(xi)/Σf(xj) for all j Selection Selection is a procedure of picking parent chromosome to produce off-spring. Types of selection: Random Selection – Parents are selected randomly from the population. Proportional Selection – probabilities for picking each chromosome is calculated as: P(xi) = f(xi)/Σf(xj) for all j Rank Based Selection – This method uses ranks instead of absolute fitness values. P(xi) = (1/β)(1 – er(xi))

Chromosome Fitness % of total 1 6.82 31 2 1.11 5 3 8.48 38 4 2.57 12 3.08 14 Total 22.0 100 Acknowledgement: http://www.edc.ncl.ac.uk/highlight/rhjanuary2007g02.php/

Roulette Wheel Selection Let i = 1, where i denotes chromosome index; Calculate P(xi) using proportional selection; sum = P(xi); choose r ~ U(0,1); while sum < r do i = i + 1; i.e. next chromosome sum = sum + P(xi); end return xi as one of the selected parent; repeat until all parents are selected

Reproduction Reproduction is a processes of creating new chromosomes out of chromosomes in the population. Parents are put back into population after reproduction. Cross-over and Mutation are two parts in reproduction of an off-spring. Cross-over : It is a process of creating one or more new individuals through the combination of genetic material randomly selected from two or parents.

Cross-over Uniform cross-over : where corresponding bit positions are randomly exchanged between two parents. One point : random bit is selected and entire sub-string after the bit is swapped. Two point : two bits are selected and the sub-string between the bits is swapped. Uniform Cross-over One point Two point Parent1 Parent2 00110110 11011011 Off-spring1 Off-spring2 01110111 10011010 00111011 11010110 01011010 10110111

Mutation Mutation procedures depend upon the representation schema of the chromosomes. This is to prevent falling all solutions in population into a local optimum. For a bit-vector representation: random mutation : randomly negates bits in-order mutation : performs random mutation between two randomly selected bit position. Random Mutation In-order Before mutation 1110010011 After mutation 1100010111 1110011010

How to use GA for the 8 tiles problem? Chromosomes corresponding to board positions Fitness function can be the f-value (g+h) Roulette wheel selection