尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
ASSIGNMENT2
Question2
a. Explain Genetic Algorithms (GAs) by using a flowchart with annotations.
 ProposedbyJohnHollandin1975
 Imitating“Natural Selection”processof creatures
-> Geneticinformation(Gene)codedinthe cell of creaturescombines withothergene at
breedingandparents’characteristicsare transferredtothe offspring
 Geneticinformationischangedbyseveralfactors
Basic Structure of Genetic Algorithms (GAs)
Genetic Operator of GA
 Genetic operator is the operator for generating new gene based on fitness of each
individual
1. Selection (Selectthe individualsaccordingtotheirfitness)
2. Crossover (Exchange genetic information (0,1) of each parent using crossover
probability)
 One Point Crossover
 Several Points Crossover
 Uniform Crossover
3. Mutation (Change genetic information of the individual using mutation probability)
Flow Chart of GA
b. Describe “Roulette Wheel Selection”. Use a diagram to illustrate its use.
- Selectionof the fittest
The basic part of the selectionprocessistostochasticallyselectfromone generationtocreate the
basisof the nextgeneration.The requirementisthatthe fittestindividualshave agreaterchance
of survival thanweakerones.Thisreplicatesnature inthatfitterindividualswilltendtohave a
betterprobabilityof survival andwill goforwardtoformthe mating pool forthe nextgeneration.
Weakerindividuals are notwithoutachance.In nature suchindividualsmayhave geneticcoding
that may prove useful tofuture generations.
- Example
The normal methodusedisthe roulette wheel (asshowninFigure 2above).The followingtable
listsa sample populationof 5 individuals(atypical populationof 400 wouldbe difficultto
illustrate).
These individualsconsistof 10 bitchromosomesandare beingusedtooptimise asimple
mathematical function(wecanassume fromthisexample we are tryingtofind the maximum).If
the inputrange for x isbetween0and 10, thenwe can map the binarychromosomestobase 10
valuesandthento an inputvalue between0and10.
The fitnessvaluesare thentakenasthe functionof x. We can see fromthe table (column Fitness
f(x)) thatindividualNo.3is the fittestandNo.2 isthe weakest.Summingthesefitnessvalueswe
can apportiona percentage total of fitness.Thisgivesthe strongestindividualavalue of 38% and
the weakest5%.
These percentage fitnessvalues canthenbe usedtoconfigure the roulette wheel.Figure 2
highlightsthatindividual No.3has a segmentequal to38% of the area.
The numberof timesthe roulette wheelisspunisequal tosize of the population.Ascanbe seen
fromthe waythe wheel is nowdivided,eachtime the wheel stopsthisgivesthe fitterindividuals
the greatestchance of beingselectedforthe nextgenerationandsubsequent matingpool.
What ispossiblymore interestingfromthisexampleisthatas the generationsprogressandthe
populationgetsfitterthe gene patternforindividual No.3: 01000001012 will become more
prevalentinthe general populationbecause itisfitter,more apt tothe environmentwe have put
it in- inthiscase the functionwe are tryingto optimise.
c. What is the use of Fitness Functions in GAs?
A fitnessfunctionisaparticulartype of objectivefunction thatisusedtosummarise,asasingle figure
of merit, how close a given design solution is to achieving the set aims.
In particular, in the fields of genetic programming and genetic algorithms, each design solution is
commonly represented as a string of numbers (referred to as a chromosome). After each round of
testing, or simulation, the idea is to delete the 'n' worst design solutions, and to breed 'n' new ones
fromthe bestdesignsolutions.Eachdesignsolution,therefore,needstobe awardedafigure of merit,
to indicate how close it came to meeting the overall specification, and this is generated by applying
the fitness function to the test, or simulation, results obtained from that solution.
The reasonthat geneticalgorithmscannotbe consideredtobe a lazyway of performingdesignwork
is precisely because of the effort involved in designing a workable fitness function.Even though it is
no longerthe humandesigner,butthe computer,thatcomesupwiththe final design,itisthe human
designer who has to design the fitness function. If this is designed badly, the algorithm will either
converge on an inappropriate solution, or will have difficulty converging at all.
Moreover,the fitnessfunctionmustnotonlycorrelate closelywiththe designer'sgoal,itmustalsobe
computed quickly. Speed of execution is very important, as a typical genetic algorithm must be
iterated many times in order to produce a usable result for a non-trivial problem.
Fitness approximation may be appropriate, especially in the following cases:
 Fitness computation time of a single solution is extremely high
 Precise model for fitness computation is missing
 The fitness function is uncertain or noisy.
Two main classes of fitness functions exist: one where the fitness function does not change, as in
optimizingafixedfunctionortestingwithafixedsetof testcases;andone where the fitnessfunction
is mutable, as in niche differentiation or co-evolving the set of test cases.
Anotherwayof lookingat fitnessfunctionsisintermsof a fitnesslandscape,whichshowsthe fitness
for each possible chromosome.
Definition of the fitness function is not straightforward in many cases and often is performed
iterativelyif the fittestsolutionsproducedbyGA are notwhatisdesired.Insome cases,itisveryhard
or impossible to come up even witha guess of what fitness functiondefinition might be. Interactive
genetic algorithms address this difficulty by outsourcing evaluation to external agents (normally
humans).

More Related Content

Similar to Artificial Intelligence - 2

IRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic AlorithmIRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic Alorithm
IRJET Journal
 
IRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic AlorithmIRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic Alorithm
IRJET Journal
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
cscpconf
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
butest
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
butest
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
butest
 
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
AI Publications
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
Biology-Derived Algorithms in Engineering Optimization
Biology-Derived Algorithms in Engineering OptimizationBiology-Derived Algorithms in Engineering Optimization
Biology-Derived Algorithms in Engineering Optimization
Xin-She Yang
 
I045046066
I045046066I045046066
I045046066
IJERA Editor
 
call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...
International Journal of Engineering Inventions www.ijeijournal.com
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Respa Peter
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
IOSR Journals
 
M017127578
M017127578M017127578
M017127578
IOSR Journals
 
Software Testing Using Genetic Algorithms
Software Testing Using Genetic AlgorithmsSoftware Testing Using Genetic Algorithms
Software Testing Using Genetic Algorithms
IJCSES Journal
 
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning SystemAnalysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Harshal Jain
 
Optimazation
OptimazationOptimazation
Optimazation
Ahmed M. Elkholy
 
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
ijcsa
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
AbhilashJain25
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
Valerie Felton
 

Similar to Artificial Intelligence - 2 (20)

IRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic AlorithmIRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic Alorithm
 
IRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic AlorithmIRJET- Optimization of Riser through Genetic Alorithm
IRJET- Optimization of Riser through Genetic Alorithm
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
 
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
 
Biology-Derived Algorithms in Engineering Optimization
Biology-Derived Algorithms in Engineering OptimizationBiology-Derived Algorithms in Engineering Optimization
Biology-Derived Algorithms in Engineering Optimization
 
I045046066
I045046066I045046066
I045046066
 
call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
 
M017127578
M017127578M017127578
M017127578
 
Software Testing Using Genetic Algorithms
Software Testing Using Genetic AlgorithmsSoftware Testing Using Genetic Algorithms
Software Testing Using Genetic Algorithms
 
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning SystemAnalysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
Analysis of Parameter using Fuzzy Genetic Algorithm in E-learning System
 
Optimazation
OptimazationOptimazation
Optimazation
 
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
A Non-Revisiting Genetic Algorithm for Optimizing Numeric Multi-Dimensional F...
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
 

More from Muhd Mu'izuddin

CCNA 3 - Troubleshooting the network
CCNA 3 - Troubleshooting the networkCCNA 3 - Troubleshooting the network
CCNA 3 - Troubleshooting the network
Muhd Mu'izuddin
 
Visualization of Computer Forensics Analysis on Digital Evidence
Visualization of Computer Forensics Analysis on Digital EvidenceVisualization of Computer Forensics Analysis on Digital Evidence
Visualization of Computer Forensics Analysis on Digital Evidence
Muhd Mu'izuddin
 
Lab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingLab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routing
Muhd Mu'izuddin
 
Final Year Project Report Example
Final Year Project Report ExampleFinal Year Project Report Example
Final Year Project Report Example
Muhd Mu'izuddin
 
Design Scenario Network Analysis & Design
Design Scenario Network Analysis & Design   Design Scenario Network Analysis & Design
Design Scenario Network Analysis & Design
Muhd Mu'izuddin
 
Layer 2 & layer 3 switching
Layer 2 & layer 3 switchingLayer 2 & layer 3 switching
Layer 2 & layer 3 switching
Muhd Mu'izuddin
 
Artificial Intelligence - 1
Artificial Intelligence - 1Artificial Intelligence - 1
Artificial Intelligence - 1
Muhd Mu'izuddin
 
Itcb213 short essay
Itcb213   short essayItcb213   short essay
Itcb213 short essay
Muhd Mu'izuddin
 
ITCB312
ITCB312ITCB312
Hubungan Etnik
Hubungan EtnikHubungan Etnik
Hubungan Etnik
Muhd Mu'izuddin
 
Ethics & Philosophy
Ethics & PhilosophyEthics & Philosophy
Ethics & Philosophy
Muhd Mu'izuddin
 
Report Storage
Report StorageReport Storage
Report Storage
Muhd Mu'izuddin
 
Strorage Technologies
Strorage TechnologiesStrorage Technologies
Strorage Technologies
Muhd Mu'izuddin
 
Project
ProjectProject
Outline long report
Outline long reportOutline long report
Outline long report
Muhd Mu'izuddin
 
Windows 7 installation
Windows 7 installationWindows 7 installation
Windows 7 installation
Muhd Mu'izuddin
 
CSNB244 Lab5
CSNB244 Lab5CSNB244 Lab5
CSNB244 Lab5
Muhd Mu'izuddin
 
Nota dakwah
Nota dakwahNota dakwah
Nota dakwah
Muhd Mu'izuddin
 
Database lab1
Database lab1   Database lab1
Database lab1
Muhd Mu'izuddin
 
Fyp slide presentation muiz
Fyp slide presentation muizFyp slide presentation muiz
Fyp slide presentation muiz
Muhd Mu'izuddin
 

More from Muhd Mu'izuddin (20)

CCNA 3 - Troubleshooting the network
CCNA 3 - Troubleshooting the networkCCNA 3 - Troubleshooting the network
CCNA 3 - Troubleshooting the network
 
Visualization of Computer Forensics Analysis on Digital Evidence
Visualization of Computer Forensics Analysis on Digital EvidenceVisualization of Computer Forensics Analysis on Digital Evidence
Visualization of Computer Forensics Analysis on Digital Evidence
 
Lab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingLab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routing
 
Final Year Project Report Example
Final Year Project Report ExampleFinal Year Project Report Example
Final Year Project Report Example
 
Design Scenario Network Analysis & Design
Design Scenario Network Analysis & Design   Design Scenario Network Analysis & Design
Design Scenario Network Analysis & Design
 
Layer 2 & layer 3 switching
Layer 2 & layer 3 switchingLayer 2 & layer 3 switching
Layer 2 & layer 3 switching
 
Artificial Intelligence - 1
Artificial Intelligence - 1Artificial Intelligence - 1
Artificial Intelligence - 1
 
Itcb213 short essay
Itcb213   short essayItcb213   short essay
Itcb213 short essay
 
ITCB312
ITCB312ITCB312
ITCB312
 
Hubungan Etnik
Hubungan EtnikHubungan Etnik
Hubungan Etnik
 
Ethics & Philosophy
Ethics & PhilosophyEthics & Philosophy
Ethics & Philosophy
 
Report Storage
Report StorageReport Storage
Report Storage
 
Strorage Technologies
Strorage TechnologiesStrorage Technologies
Strorage Technologies
 
Project
ProjectProject
Project
 
Outline long report
Outline long reportOutline long report
Outline long report
 
Windows 7 installation
Windows 7 installationWindows 7 installation
Windows 7 installation
 
CSNB244 Lab5
CSNB244 Lab5CSNB244 Lab5
CSNB244 Lab5
 
Nota dakwah
Nota dakwahNota dakwah
Nota dakwah
 
Database lab1
Database lab1   Database lab1
Database lab1
 
Fyp slide presentation muiz
Fyp slide presentation muizFyp slide presentation muiz
Fyp slide presentation muiz
 

Recently uploaded

Multivendor cloud production with VSF TR-11 - there and back again
Multivendor cloud production with VSF TR-11 - there and back againMultivendor cloud production with VSF TR-11 - there and back again
Multivendor cloud production with VSF TR-11 - there and back again
Kieran Kunhya
 
Cyber Recovery Wargame
Cyber Recovery WargameCyber Recovery Wargame
Cyber Recovery Wargame
Databarracks
 
Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2
DianaGray10
 
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
SOFTTECHHUB
 
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
anilsa9823
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
ThousandEyes
 
The "Zen" of Python Exemplars - OTel Community Day
The "Zen" of Python Exemplars - OTel Community DayThe "Zen" of Python Exemplars - OTel Community Day
The "Zen" of Python Exemplars - OTel Community Day
Paige Cruz
 
Move Auth, Policy, and Resilience to the Platform
Move Auth, Policy, and Resilience to the PlatformMove Auth, Policy, and Resilience to the Platform
Move Auth, Policy, and Resilience to the Platform
Christian Posta
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
Neeraj Kumar Singh
 
Corporate Open Source Anti-Patterns: A Decade Later
Corporate Open Source Anti-Patterns: A Decade LaterCorporate Open Source Anti-Patterns: A Decade Later
Corporate Open Source Anti-Patterns: A Decade Later
ScyllaDB
 
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google CloudRadically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
ScyllaDB
 
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
manji sharman06
 
Getting Started Using the National Research Platform
Getting Started Using the National Research PlatformGetting Started Using the National Research Platform
Getting Started Using the National Research Platform
Larry Smarr
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
AlexanderRichford
 
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to SuccessDynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
ScyllaDB
 
How to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
How to Optimize Call Monitoring: Automate QA and Elevate Customer ExperienceHow to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
How to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
Aggregage
 
Day 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data ManipulationDay 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data Manipulation
UiPathCommunity
 
Supplier Sourcing Presentation - Gay De La Cruz.pdf
Supplier Sourcing Presentation - Gay De La Cruz.pdfSupplier Sourcing Presentation - Gay De La Cruz.pdf
Supplier Sourcing Presentation - Gay De La Cruz.pdf
gaydlc2513
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
Brightwell ILC Futures workshop David Sinclair presentation
Brightwell ILC Futures workshop David Sinclair presentationBrightwell ILC Futures workshop David Sinclair presentation
Brightwell ILC Futures workshop David Sinclair presentation
ILC- UK
 

Recently uploaded (20)

Multivendor cloud production with VSF TR-11 - there and back again
Multivendor cloud production with VSF TR-11 - there and back againMultivendor cloud production with VSF TR-11 - there and back again
Multivendor cloud production with VSF TR-11 - there and back again
 
Cyber Recovery Wargame
Cyber Recovery WargameCyber Recovery Wargame
Cyber Recovery Wargame
 
Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2
 
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
EverHost AI Review: Empowering Websites with Limitless Possibilities through ...
 
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
 
The "Zen" of Python Exemplars - OTel Community Day
The "Zen" of Python Exemplars - OTel Community DayThe "Zen" of Python Exemplars - OTel Community Day
The "Zen" of Python Exemplars - OTel Community Day
 
Move Auth, Policy, and Resilience to the Platform
Move Auth, Policy, and Resilience to the PlatformMove Auth, Policy, and Resilience to the Platform
Move Auth, Policy, and Resilience to the Platform
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
 
Corporate Open Source Anti-Patterns: A Decade Later
Corporate Open Source Anti-Patterns: A Decade LaterCorporate Open Source Anti-Patterns: A Decade Later
Corporate Open Source Anti-Patterns: A Decade Later
 
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google CloudRadically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
Radically Outperforming DynamoDB @ Digital Turbine with SADA and Google Cloud
 
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
 
Getting Started Using the National Research Platform
Getting Started Using the National Research PlatformGetting Started Using the National Research Platform
Getting Started Using the National Research Platform
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
 
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to SuccessDynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
 
How to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
How to Optimize Call Monitoring: Automate QA and Elevate Customer ExperienceHow to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
How to Optimize Call Monitoring: Automate QA and Elevate Customer Experience
 
Day 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data ManipulationDay 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data Manipulation
 
Supplier Sourcing Presentation - Gay De La Cruz.pdf
Supplier Sourcing Presentation - Gay De La Cruz.pdfSupplier Sourcing Presentation - Gay De La Cruz.pdf
Supplier Sourcing Presentation - Gay De La Cruz.pdf
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
 
Brightwell ILC Futures workshop David Sinclair presentation
Brightwell ILC Futures workshop David Sinclair presentationBrightwell ILC Futures workshop David Sinclair presentation
Brightwell ILC Futures workshop David Sinclair presentation
 

Artificial Intelligence - 2

  • 1. ASSIGNMENT2 Question2 a. Explain Genetic Algorithms (GAs) by using a flowchart with annotations.  ProposedbyJohnHollandin1975  Imitating“Natural Selection”processof creatures -> Geneticinformation(Gene)codedinthe cell of creaturescombines withothergene at breedingandparents’characteristicsare transferredtothe offspring  Geneticinformationischangedbyseveralfactors Basic Structure of Genetic Algorithms (GAs)
  • 2. Genetic Operator of GA  Genetic operator is the operator for generating new gene based on fitness of each individual 1. Selection (Selectthe individualsaccordingtotheirfitness) 2. Crossover (Exchange genetic information (0,1) of each parent using crossover probability)  One Point Crossover  Several Points Crossover  Uniform Crossover
  • 3. 3. Mutation (Change genetic information of the individual using mutation probability) Flow Chart of GA
  • 4. b. Describe “Roulette Wheel Selection”. Use a diagram to illustrate its use. - Selectionof the fittest The basic part of the selectionprocessistostochasticallyselectfromone generationtocreate the basisof the nextgeneration.The requirementisthatthe fittestindividualshave agreaterchance of survival thanweakerones.Thisreplicatesnature inthatfitterindividualswilltendtohave a betterprobabilityof survival andwill goforwardtoformthe mating pool forthe nextgeneration. Weakerindividuals are notwithoutachance.In nature suchindividualsmayhave geneticcoding that may prove useful tofuture generations.
  • 5. - Example The normal methodusedisthe roulette wheel (asshowninFigure 2above).The followingtable listsa sample populationof 5 individuals(atypical populationof 400 wouldbe difficultto illustrate). These individualsconsistof 10 bitchromosomesandare beingusedtooptimise asimple mathematical function(wecanassume fromthisexample we are tryingtofind the maximum).If the inputrange for x isbetween0and 10, thenwe can map the binarychromosomestobase 10 valuesandthento an inputvalue between0and10. The fitnessvaluesare thentakenasthe functionof x. We can see fromthe table (column Fitness f(x)) thatindividualNo.3is the fittestandNo.2 isthe weakest.Summingthesefitnessvalueswe can apportiona percentage total of fitness.Thisgivesthe strongestindividualavalue of 38% and the weakest5%. These percentage fitnessvalues canthenbe usedtoconfigure the roulette wheel.Figure 2 highlightsthatindividual No.3has a segmentequal to38% of the area. The numberof timesthe roulette wheelisspunisequal tosize of the population.Ascanbe seen fromthe waythe wheel is nowdivided,eachtime the wheel stopsthisgivesthe fitterindividuals the greatestchance of beingselectedforthe nextgenerationandsubsequent matingpool. What ispossiblymore interestingfromthisexampleisthatas the generationsprogressandthe populationgetsfitterthe gene patternforindividual No.3: 01000001012 will become more prevalentinthe general populationbecause itisfitter,more apt tothe environmentwe have put it in- inthiscase the functionwe are tryingto optimise.
  • 6. c. What is the use of Fitness Functions in GAs? A fitnessfunctionisaparticulartype of objectivefunction thatisusedtosummarise,asasingle figure of merit, how close a given design solution is to achieving the set aims. In particular, in the fields of genetic programming and genetic algorithms, each design solution is commonly represented as a string of numbers (referred to as a chromosome). After each round of testing, or simulation, the idea is to delete the 'n' worst design solutions, and to breed 'n' new ones fromthe bestdesignsolutions.Eachdesignsolution,therefore,needstobe awardedafigure of merit, to indicate how close it came to meeting the overall specification, and this is generated by applying the fitness function to the test, or simulation, results obtained from that solution. The reasonthat geneticalgorithmscannotbe consideredtobe a lazyway of performingdesignwork is precisely because of the effort involved in designing a workable fitness function.Even though it is no longerthe humandesigner,butthe computer,thatcomesupwiththe final design,itisthe human designer who has to design the fitness function. If this is designed badly, the algorithm will either converge on an inappropriate solution, or will have difficulty converging at all. Moreover,the fitnessfunctionmustnotonlycorrelate closelywiththe designer'sgoal,itmustalsobe computed quickly. Speed of execution is very important, as a typical genetic algorithm must be iterated many times in order to produce a usable result for a non-trivial problem. Fitness approximation may be appropriate, especially in the following cases:  Fitness computation time of a single solution is extremely high  Precise model for fitness computation is missing  The fitness function is uncertain or noisy. Two main classes of fitness functions exist: one where the fitness function does not change, as in optimizingafixedfunctionortestingwithafixedsetof testcases;andone where the fitnessfunction is mutable, as in niche differentiation or co-evolving the set of test cases. Anotherwayof lookingat fitnessfunctionsisintermsof a fitnesslandscape,whichshowsthe fitness for each possible chromosome. Definition of the fitness function is not straightforward in many cases and often is performed iterativelyif the fittestsolutionsproducedbyGA are notwhatisdesired.Insome cases,itisveryhard or impossible to come up even witha guess of what fitness functiondefinition might be. Interactive genetic algorithms address this difficulty by outsourcing evaluation to external agents (normally humans).
  翻译: