SlideShare una empresa de Scribd logo
1 de 54
MEMETIC
LEARNING
Supervised by
Dr. Fawzia R.
Mosul University
Computer Sciences Department
Master Student 2018 - 2019
Mohammed Al-Kazal
ADVANCE ARTIFICIAL INTELLIGENCE
Overview
 Philosophy Behind Memetics
 Genetic Algorithm – Intuition and Structure
 Memetic learning
• meme
 Memetic Algorithms
• First generation MA
• Second generation MA
• Third generation MA
 Solution of N Queens Problem with MA
 Conclusion
Evolutiontheory‘s
BiologicalEvolution • Use and Disuse
• Inheritance of acquired characteristics
Charles Robert Darwin
1809 –1882
• Natural Selection
• Survival of The Fittest
• Origin of New Species
Jean-Baptiste Lamarck
1744 –1829
Genes and biological Evolution
 A gene is a unit of biological information
transferred from one generation to another.
 Genes determine our physical traits, what
you look like, what you inherit from either
one of your parents.
Genetic Algorithm
 solves (typically optimization) problems by
combining features of complete solutions to
create new populations of solutions.
 applicable when it is hard or unreasonable
to try to completely identify a sub problem
hierarchical structure or to approach the
problem via an exact approach.
WhyGA
Range of Problem
PerformanceofMethod
Problem tailored method
Pure Genetic Algorithm
Hill Clamping
GeneticAlgorithm start
Initialize population
Selection
Cross over
Mutation
Evaluation
End
Stop
condition
No Yes
NewGeneration
Return optimal
solution
Cross over
Mutatio
n
Disadvantages&weaknessof
GA
• GAs are not ‘silver bullets’ for solving problems
(Global Optimization Algorithm).
• Must be able to assess the quality of each attempt at
a solution.
 can’t crack Pretty Good Privacy with a GA.
• Computationally expensive.
 some problems require many days or weeks to run.
 often still faster than brute force, however.
• Blind, undirected search.
 difficult to direct a GA towards optimal solution area
if known.
• Can be sensitive to initial parameters.
 parameters such as mutation can significantly
influence the search.
• Stochastic process.
 not guaranteed to find an optimal solution, just
highly likely to.
Range of Problem
PerformanceofMethod
Problem tailored method
Pure Genetic Algorithm
Time
But what we do
in all our lives ?
Is this the only way of evolution ?
Memetic Learning
R. Dawkins, The Selfish Gene
“When you plant a
fertile meme in my
mind you literally
parasitize my brain,
turning it into a
vehicle for the
meme's propagation
in just the way that a
virus may parasitize
the genetic
mechanism of a
host cell.”
Biological
Evolution
Cultural
Evolution..??
Meme..!!!Gene
MemeticXgenetics
Meme
“the basic unit of cultural transmission,
or imitation”
Richard Dawkins
“an element of culture that may be
considered to be passed on by non-
genetic means”
English Oxford Dictionary
ExamplesofMeme Fashion
Latest trends are ideas of fashion
designers
Science
Scientists sharing their thoughts
Literature
Novel, poetry
Music
Even birds are found to imitate songs of
other birds!!!
Genes and Memes, where they are
similar
 Genes propagate biologically from
chromosome to chromosome
 Memes propagate from brain to
brain via imitation
 Survival of fittest in meme
 Concept of Good is survived though no
scientific evidence is present
Genes and Memes, where they
different
 Genes are pre-decided
 Genes are static through generations,
memes can be changed!
 Memes allow improvement
 After learning language, we contribute to it
through literature
 New heuristics to 8-puzzle problem solved in
class
 We use this property to improve genetic
algorithms
Memeticlearning the idea of memetic learning. Memetic learning is
directly inspired by Dawkins notion of the
acquisition of memes through imitation.
 Memetic learning is based on imitation—people
learn, not only from their own direct
experiences with the world, but also by
following patterns, models, or examples they
have observed.
 This imitation is an active process by which
people acquire the components of cultural
knowledge.
 This process provides a rich metaphor on which
several related machine-learning methods can
be based.
 These methods will be known collectively as
Memetic algorithms (MAs) now represent one
of the recent growing areas of research in
evolutionary computation.
The term MA is now widely used as a synergy
of evolutionary or any population-based
approach with separate individual learning or
local improvement procedures for problem
search.
Quite often, MAs are also referred to in the
literature as Cultural algorithms, Hybrid
Evolutionary Algorithms, Baldwinian
evolutionary algorithms (EAs), Lamarckian
EAs, or genetic local search.
Memeticalgorithms
(MAs)
proposed by Moscato (1989)
Memeticalgorithms
(MAs)
Moscato recognized that there are at
least two great differences between
biological evolution and cultural
evolution:
individuals cannot choose their
own genes whereas memes
can be acquired intentionally.
Individuals may modify and
improve upon the memes that
they acquire, whereas they
A Compact
“Memetic”
Algorithm by
Merz (2003)
Invariantsand
Decorations
Invariantsand
Decorations
A “Memetic”
Artificial
Immune
System by
Yanga et al
(2008)
Eiben’s &
Smith
“Introduction To
Evolutionary
computation”
Invariantsand
Decorations
So.. What Are Memetic
Algorithms?
MAs, one of the key methodologies behind successful
discrete/continuous optimization, are:
a carefully orchestrated interplay
between (stochastic) global
search and (stochastic)local
search algorithms
An MA is an EA that includes one or
more local search phases within its
evolutionary cycle
MemeticAlgorithm
NewGeneration
Selection
Cross over
Evaluation
End
Stop
condition
No Yes
star
t
Initialize
population
Mutation
local search
Return optimal
solution
local search
local search
Evaluate and Re-Generate
population
ProcedureMemetic
Algorithm
SimpleLocalsearch
Begin
Repeat
If Then
Until
Return
End
Hill climbing
Localsearchwith
Imitation
Memetic Learning
A population of individuals with random alleles
for each meme is constructed and tested on
the task.
Individuals observe their own overall fitness
values and those of the other individuals in the
population.
Further they observe the partial fitness values
of the partial candidate solutions that they are
able to identify, both for themselves and for the
others.
They then replace their memes for those
portions of the solution for which they have low
fitness values, using imitation.
DesignIssuesforMAs We mast balance between the genetic
and the local search parts of memetic
algorithms .This leads naturally to
questions such as the following:
 Where and when should local search be applied
within the evolutionary cycle.
 Which individuals in the population should be
improved by local search, and how should they
be chosen.
 How much computational effort should be
allocated to each local search.
 How can the genetic operators best be
integrated with local search in order to achieve a
synergistic effect.
“What is the best tradeoff
between local search and
the global search provided
by evolution”
DesignIssuesforMA  How often should individual learning be applied.
 On which solutions should individual learning be
used.
 How long should individual learning be run.
 What individual learning method or meme should
be used for a particular problem or individual.
Multi-meme, Hyper-heuristic and
Meta-Lamarckian MA.
MASecond
Generation
MA considering Multiple
Individual Learning methods
within an evolutionary system.
In second generation MA
 In Multi-meme MA, the memetic material is
encoded as part of the genotype.
 The decoded meme of each respective
individual/chromosome is used to perform a
local refinement.
 The memetic material is transmitted through
a simple inheritance mechanism from parent
to offspring(s).
 In Multi-meme MA the pool of candidate
memes considered will compete, based on
their past merits in generating local
improvements through a reward mechanism,
deciding on which meme to be selected to
proceed for future local refinements. Memes
with a higher reward have a greater chance
of being replicated or copied.
MASecondGeneration
3rd generation MA utilizes a rule-based local
search to supplement candidate solutions
within the evolutionary system, thus
capturing regularly repeated features or
patterns in the problem space.
There'dGenerationMA In 2nd generation MA we assumes that the memes
to be used are known a priori.
individual can select his meme
Individual can have more than
one meme
1 2 3 4 5 6 7 8
2 7 3 4 6 5 8 1
1 2 3 4 5 6 7 8
3 5 2 8 1 7 4 6
Fitness = 22 Fitness = 28
NQueensProblem
NQueensProblemGA
Cross over every two parents to random point
Sorting the generation from the highest value of fitness
function to the lower one
Duplicate the higher half of the generation and neglect the
lowest
Start
Create initial population random
Chromosome
fond in solation
Copy chromosome and all
his symmetric to solution
Yes
YesNo
Calculates fitness
any = maximum
fitness
Q = 1
No
Q = Q + 1
Mutation random gene in random children's
Q < generation
number
Print solution array
Yes No
NewGeneration
YesNo
Yes No
No
One Point cross over
Ex: random cross over point =3
CrossoverinGA
MutationinGA Select a number of individuals randomly from the
generation for mutation
Mutation is
Random change to break typical
Mutation random gene in
random children's
NQueensProblemMA
Cross over every two parents to random point
Sorting by fitness & Duplicate the higher half
Start
Create initial population random
Chromosome
fond in solation
Copy chromosome
and all his symmetric
to solution
Yes
YesNo
Calculates fitness
any = maximum
fitness
Q = 1
No
Q = Q + 1
Q < generation
number
Print solution array
Yes
YesNo
Yes No
No
Sorting by fitness
Local Search (meme)
• Select a subset M of random
individuals from the generation.
• For each individual in M Apply
local search (generate neighbor)
for t times.
• Add the new individual to the
generation .
LocalsearchinMA
LocalsearchinMA
2 4 5 8 1 7 3 6
Top
………
………
………
……
……
Random point
1
If (Fitness before < Fitness after )
copy
Generation Subset M
Then Update individual
t
2 4 1 8 5 7 3 6
Random point
2
• Select a subset M of random
individuals from the generation.
• For each individual in M Apply
local search to t times with
Meme .
• Add the new individual to the
generation .
LocalsearchMemeticlearning
Memeticlearning
2 4 4 8 1 7 3 6
Top
………
………
………
……
……
Meme (best solution in generation)
Random point
3 5 2 8 1 7 4 6
If (Fitness before < Fitness after )
copy
Generation
Subset M
Then Update individual
t
2 5 3 8 1 7 4 6
• Split generation into N groups of
random individuals from generation.
• For each group n:
• For each individual in the group
Apply local search to tn times with
meme n.
• Add the new individual to the
generation.
LocalsearchMultiMemeticlearning
2 5 4 8 1 7 3 6
Meme
1
Meme2
Meme3
….
………
………
………
……
……
Meme n (one of best solution in generation)
Random point
3 5 2 8 1 7 4 6
If (Fitness before < Fitness after )
copy
Generation
Subset 1
Then Update individual
tn
……
……
Subset n
……
…....
……
2 5 3 8 1 7 4 6
LocalsearchMultiMemeticlearning
Conclusion  A genetic algorithm promises convergence
but not optimality.
 But we are assured of exponential
convergence, possibly at different optimal
chromosomes.
 We can reach Optimal solution from
Memetic Learning (Genetic Algorithm with
Local Search).
 In MA we mast balance between the genetic
and the local search parts of memetic
algorithms .
 It enables us to deal with problems of high
change in performance and ambiguous
problems
Performance
Range of Problem
PerformanceofMethod
Problem tailored method
Pure Genetic Algorithm
Memetic Algorithm
References
 Ahmad, R., Jamaluddin, H., Hussain, M.A.: Application of memetic algorithm in
modelling
 discrete-time multivariable dynamics systems. Mech. Syst. Signal Process. 22,
 1595–1609 (2008)
 R. Dawkins, “The Selfish Gene – new edition”, Oxford University Press, 1989
pp 189-201
 David E. Goldberg, Genetic Algorithms in Search, Optimization and Machine
Learning, 1st edition, Addison-Wesley Longman Publishing Co., 1989 pp 170-
174
 B. Freisleben and P. Merz, New Genetic Local Search Operators for the Traveling
Salesman Problem. In H.-M. Voigt, W. Ebeling, I. Rechenberg, and H.-P.
Schwefel, editors, Proceedings of the 4th Conference on Parallel Problem
Solving from Nature - PPSN IV, pages 890--900. Springer, 1996
 S. Lin and B. W. Kemighan, An effective heuristic algorithm for the Traveling
Salesman problem, Operation Research 21 (1973) 498-516
 7.) Moscato, P. (1989). On Evolution, Search, Optimization, Genetic Algorithms
and Martial Arts:Towards Memetic Algorithms. Technical Report Caltech
Concurrent Computation Program,Report. 826, California Institute of Technology,
Pasadena, California, USA.
 Singh, S. P. and Sutton, R. S. (1996). Reinforcement learning with replacing
eligibility traces.Machine Learning, 22:123–158.
 Sutton, R. S. and Barto, A. G. (1998). Reinforcement Learning: An Introduction.
MIT Press.Yao, X. (1999). Evolutionary computation comes of age. Cognitive
Systems Research, 1:59–64.
‫الغزال‬ ‫محمد‬

Más contenido relacionado

La actualidad más candente

Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmgarima931
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithmsadil raja
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmszamakhan
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktimRaktim Halder
 
Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms Xin-She Yang
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHMHarsh Sinha
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic AlgorithmsDr. C.V. Suresh Babu
 
Deep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningDeep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningShubhmay Potdar
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligenceEslam Hamed
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithmsAkhil Kaushik
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 
Interpretable machine learning
Interpretable machine learningInterpretable machine learning
Interpretable machine learningSri Ambati
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligencelordmwesh
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithmHasan Gök
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data MiningAtul Khanna
 

La actualidad más candente (20)

Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHM
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Ga
GaGa
Ga
 
Deep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningDeep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter Tuning
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Interpretable machine learning
Interpretable machine learningInterpretable machine learning
Interpretable machine learning
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligence
 
Swarm intelligence algorithms
Swarm intelligence algorithmsSwarm intelligence algorithms
Swarm intelligence algorithms
 
Supervised learning
  Supervised learning  Supervised learning
Supervised learning
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 

Similar a Memetic algorithms

Explanation and example of genetic algorithm
Explanation and example of genetic algorithmExplanation and example of genetic algorithm
Explanation and example of genetic algorithmMarkKhan23
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.pptNipun85
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptHotTea
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptFitnessfreaksfam
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .pptneelamsanjeevkumar
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptneelamsanjeevkumar
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.pptssuser2e437f
 
Genetic algorithm fitness function
Genetic algorithm fitness functionGenetic algorithm fitness function
Genetic algorithm fitness functionProf Ansari
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmRespa Peter
 
generic optimization techniques lecture slides
generic optimization techniques  lecture slidesgeneric optimization techniques  lecture slides
generic optimization techniques lecture slidesSardarHamidullah
 
Genetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxGenetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxTAHANMKH
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paperPriti Punia
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.pptRamjiChaurasiya
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computingSakshiMahto1
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsDEEPIKA T
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4Nandhini S
 
CS464-SoftCom-2022-Lec1 GA-Intro .pptx
CS464-SoftCom-2022-Lec1 GA-Intro .pptxCS464-SoftCom-2022-Lec1 GA-Intro .pptx
CS464-SoftCom-2022-Lec1 GA-Intro .pptxtesttest888534
 

Similar a Memetic algorithms (20)

Explanation and example of genetic algorithm
Explanation and example of genetic algorithmExplanation and example of genetic algorithm
Explanation and example of genetic algorithm
 
SoftComputing4
SoftComputing4SoftComputing4
SoftComputing4
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.ppt
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.ppt
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
Genetic algorithm fitness function
Genetic algorithm fitness functionGenetic algorithm fitness function
Genetic algorithm fitness function
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
RM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lectureRM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lecture
 
generic optimization techniques lecture slides
generic optimization techniques  lecture slidesgeneric optimization techniques  lecture slides
generic optimization techniques lecture slides
 
algo presentation.pptx
algo presentation.pptxalgo presentation.pptx
algo presentation.pptx
 
Genetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxGenetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptx
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 
4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt4.Genetic-Algorithms.ppt
4.Genetic-Algorithms.ppt
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
 
CS464-SoftCom-2022-Lec1 GA-Intro .pptx
CS464-SoftCom-2022-Lec1 GA-Intro .pptxCS464-SoftCom-2022-Lec1 GA-Intro .pptx
CS464-SoftCom-2022-Lec1 GA-Intro .pptx
 

Último

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

Memetic algorithms

  • 2. Supervised by Dr. Fawzia R. Mosul University Computer Sciences Department Master Student 2018 - 2019 Mohammed Al-Kazal ADVANCE ARTIFICIAL INTELLIGENCE
  • 3. Overview  Philosophy Behind Memetics  Genetic Algorithm – Intuition and Structure  Memetic learning • meme  Memetic Algorithms • First generation MA • Second generation MA • Third generation MA  Solution of N Queens Problem with MA  Conclusion
  • 5. BiologicalEvolution • Use and Disuse • Inheritance of acquired characteristics Charles Robert Darwin 1809 –1882 • Natural Selection • Survival of The Fittest • Origin of New Species Jean-Baptiste Lamarck 1744 –1829
  • 6. Genes and biological Evolution  A gene is a unit of biological information transferred from one generation to another.  Genes determine our physical traits, what you look like, what you inherit from either one of your parents.
  • 7. Genetic Algorithm  solves (typically optimization) problems by combining features of complete solutions to create new populations of solutions.  applicable when it is hard or unreasonable to try to completely identify a sub problem hierarchical structure or to approach the problem via an exact approach.
  • 8. WhyGA Range of Problem PerformanceofMethod Problem tailored method Pure Genetic Algorithm Hill Clamping
  • 9. GeneticAlgorithm start Initialize population Selection Cross over Mutation Evaluation End Stop condition No Yes NewGeneration Return optimal solution
  • 12. Disadvantages&weaknessof GA • GAs are not ‘silver bullets’ for solving problems (Global Optimization Algorithm). • Must be able to assess the quality of each attempt at a solution.  can’t crack Pretty Good Privacy with a GA. • Computationally expensive.  some problems require many days or weeks to run.  often still faster than brute force, however. • Blind, undirected search.  difficult to direct a GA towards optimal solution area if known. • Can be sensitive to initial parameters.  parameters such as mutation can significantly influence the search. • Stochastic process.  not guaranteed to find an optimal solution, just highly likely to.
  • 13. Range of Problem PerformanceofMethod Problem tailored method Pure Genetic Algorithm Time
  • 14. But what we do in all our lives ? Is this the only way of evolution ?
  • 15. Memetic Learning R. Dawkins, The Selfish Gene “When you plant a fertile meme in my mind you literally parasitize my brain, turning it into a vehicle for the meme's propagation in just the way that a virus may parasitize the genetic mechanism of a host cell.”
  • 17. Meme “the basic unit of cultural transmission, or imitation” Richard Dawkins “an element of culture that may be considered to be passed on by non- genetic means” English Oxford Dictionary
  • 18. ExamplesofMeme Fashion Latest trends are ideas of fashion designers Science Scientists sharing their thoughts Literature Novel, poetry Music Even birds are found to imitate songs of other birds!!!
  • 19. Genes and Memes, where they are similar  Genes propagate biologically from chromosome to chromosome  Memes propagate from brain to brain via imitation  Survival of fittest in meme  Concept of Good is survived though no scientific evidence is present
  • 20. Genes and Memes, where they different  Genes are pre-decided  Genes are static through generations, memes can be changed!  Memes allow improvement  After learning language, we contribute to it through literature  New heuristics to 8-puzzle problem solved in class  We use this property to improve genetic algorithms
  • 21. Memeticlearning the idea of memetic learning. Memetic learning is directly inspired by Dawkins notion of the acquisition of memes through imitation.  Memetic learning is based on imitation—people learn, not only from their own direct experiences with the world, but also by following patterns, models, or examples they have observed.  This imitation is an active process by which people acquire the components of cultural knowledge.  This process provides a rich metaphor on which several related machine-learning methods can be based.  These methods will be known collectively as
  • 22. Memetic algorithms (MAs) now represent one of the recent growing areas of research in evolutionary computation. The term MA is now widely used as a synergy of evolutionary or any population-based approach with separate individual learning or local improvement procedures for problem search. Quite often, MAs are also referred to in the literature as Cultural algorithms, Hybrid Evolutionary Algorithms, Baldwinian evolutionary algorithms (EAs), Lamarckian EAs, or genetic local search. Memeticalgorithms (MAs) proposed by Moscato (1989)
  • 23. Memeticalgorithms (MAs) Moscato recognized that there are at least two great differences between biological evolution and cultural evolution: individuals cannot choose their own genes whereas memes can be acquired intentionally. Individuals may modify and improve upon the memes that they acquire, whereas they
  • 24. A Compact “Memetic” Algorithm by Merz (2003) Invariantsand Decorations
  • 27. So.. What Are Memetic Algorithms? MAs, one of the key methodologies behind successful discrete/continuous optimization, are: a carefully orchestrated interplay between (stochastic) global search and (stochastic)local search algorithms An MA is an EA that includes one or more local search phases within its evolutionary cycle
  • 28. MemeticAlgorithm NewGeneration Selection Cross over Evaluation End Stop condition No Yes star t Initialize population Mutation local search Return optimal solution local search local search Evaluate and Re-Generate population
  • 32. Memetic Learning A population of individuals with random alleles for each meme is constructed and tested on the task. Individuals observe their own overall fitness values and those of the other individuals in the population. Further they observe the partial fitness values of the partial candidate solutions that they are able to identify, both for themselves and for the others. They then replace their memes for those portions of the solution for which they have low fitness values, using imitation.
  • 33. DesignIssuesforMAs We mast balance between the genetic and the local search parts of memetic algorithms .This leads naturally to questions such as the following:  Where and when should local search be applied within the evolutionary cycle.  Which individuals in the population should be improved by local search, and how should they be chosen.  How much computational effort should be allocated to each local search.  How can the genetic operators best be integrated with local search in order to achieve a synergistic effect.
  • 34. “What is the best tradeoff between local search and the global search provided by evolution” DesignIssuesforMA  How often should individual learning be applied.  On which solutions should individual learning be used.  How long should individual learning be run.  What individual learning method or meme should be used for a particular problem or individual.
  • 35. Multi-meme, Hyper-heuristic and Meta-Lamarckian MA. MASecond Generation MA considering Multiple Individual Learning methods within an evolutionary system. In second generation MA
  • 36.  In Multi-meme MA, the memetic material is encoded as part of the genotype.  The decoded meme of each respective individual/chromosome is used to perform a local refinement.  The memetic material is transmitted through a simple inheritance mechanism from parent to offspring(s).  In Multi-meme MA the pool of candidate memes considered will compete, based on their past merits in generating local improvements through a reward mechanism, deciding on which meme to be selected to proceed for future local refinements. Memes with a higher reward have a greater chance of being replicated or copied. MASecondGeneration
  • 37. 3rd generation MA utilizes a rule-based local search to supplement candidate solutions within the evolutionary system, thus capturing regularly repeated features or patterns in the problem space. There'dGenerationMA In 2nd generation MA we assumes that the memes to be used are known a priori. individual can select his meme Individual can have more than one meme
  • 38.
  • 39. 1 2 3 4 5 6 7 8 2 7 3 4 6 5 8 1 1 2 3 4 5 6 7 8 3 5 2 8 1 7 4 6 Fitness = 22 Fitness = 28 NQueensProblem
  • 40. NQueensProblemGA Cross over every two parents to random point Sorting the generation from the highest value of fitness function to the lower one Duplicate the higher half of the generation and neglect the lowest Start Create initial population random Chromosome fond in solation Copy chromosome and all his symmetric to solution Yes YesNo Calculates fitness any = maximum fitness Q = 1 No Q = Q + 1 Mutation random gene in random children's Q < generation number Print solution array Yes No NewGeneration YesNo Yes No No
  • 41. One Point cross over Ex: random cross over point =3 CrossoverinGA
  • 42. MutationinGA Select a number of individuals randomly from the generation for mutation Mutation is Random change to break typical
  • 43. Mutation random gene in random children's NQueensProblemMA Cross over every two parents to random point Sorting by fitness & Duplicate the higher half Start Create initial population random Chromosome fond in solation Copy chromosome and all his symmetric to solution Yes YesNo Calculates fitness any = maximum fitness Q = 1 No Q = Q + 1 Q < generation number Print solution array Yes YesNo Yes No No Sorting by fitness Local Search (meme)
  • 44. • Select a subset M of random individuals from the generation. • For each individual in M Apply local search (generate neighbor) for t times. • Add the new individual to the generation . LocalsearchinMA
  • 45. LocalsearchinMA 2 4 5 8 1 7 3 6 Top ……… ……… ……… …… …… Random point 1 If (Fitness before < Fitness after ) copy Generation Subset M Then Update individual t 2 4 1 8 5 7 3 6 Random point 2
  • 46. • Select a subset M of random individuals from the generation. • For each individual in M Apply local search to t times with Meme . • Add the new individual to the generation . LocalsearchMemeticlearning
  • 47. Memeticlearning 2 4 4 8 1 7 3 6 Top ……… ……… ……… …… …… Meme (best solution in generation) Random point 3 5 2 8 1 7 4 6 If (Fitness before < Fitness after ) copy Generation Subset M Then Update individual t 2 5 3 8 1 7 4 6
  • 48. • Split generation into N groups of random individuals from generation. • For each group n: • For each individual in the group Apply local search to tn times with meme n. • Add the new individual to the generation. LocalsearchMultiMemeticlearning
  • 49. 2 5 4 8 1 7 3 6 Meme 1 Meme2 Meme3 …. ……… ……… ……… …… …… Meme n (one of best solution in generation) Random point 3 5 2 8 1 7 4 6 If (Fitness before < Fitness after ) copy Generation Subset 1 Then Update individual tn …… …… Subset n …… ….... …… 2 5 3 8 1 7 4 6 LocalsearchMultiMemeticlearning
  • 50. Conclusion  A genetic algorithm promises convergence but not optimality.  But we are assured of exponential convergence, possibly at different optimal chromosomes.  We can reach Optimal solution from Memetic Learning (Genetic Algorithm with Local Search).  In MA we mast balance between the genetic and the local search parts of memetic algorithms .  It enables us to deal with problems of high change in performance and ambiguous problems
  • 51. Performance Range of Problem PerformanceofMethod Problem tailored method Pure Genetic Algorithm Memetic Algorithm
  • 52. References  Ahmad, R., Jamaluddin, H., Hussain, M.A.: Application of memetic algorithm in modelling  discrete-time multivariable dynamics systems. Mech. Syst. Signal Process. 22,  1595–1609 (2008)  R. Dawkins, “The Selfish Gene – new edition”, Oxford University Press, 1989 pp 189-201  David E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, 1st edition, Addison-Wesley Longman Publishing Co., 1989 pp 170- 174  B. Freisleben and P. Merz, New Genetic Local Search Operators for the Traveling Salesman Problem. In H.-M. Voigt, W. Ebeling, I. Rechenberg, and H.-P. Schwefel, editors, Proceedings of the 4th Conference on Parallel Problem Solving from Nature - PPSN IV, pages 890--900. Springer, 1996  S. Lin and B. W. Kemighan, An effective heuristic algorithm for the Traveling Salesman problem, Operation Research 21 (1973) 498-516  7.) Moscato, P. (1989). On Evolution, Search, Optimization, Genetic Algorithms and Martial Arts:Towards Memetic Algorithms. Technical Report Caltech Concurrent Computation Program,Report. 826, California Institute of Technology, Pasadena, California, USA.  Singh, S. P. and Sutton, R. S. (1996). Reinforcement learning with replacing eligibility traces.Machine Learning, 22:123–158.  Sutton, R. S. and Barto, A. G. (1998). Reinforcement Learning: An Introduction. MIT Press.Yao, X. (1999). Evolutionary computation comes of age. Cognitive Systems Research, 1:59–64.
  • 53.