SlideShare a Scribd company logo
3
Current area of research in
software testing
To devise methods to generate test data automatically, i.e. different
methods for developing test data/case generators.
Advantages of Automated test case generator

Significantly reduce the cost of developing software.

The test preparation can be done in advance.

The test runs would be considerably fast.

The confidence of the testing result can be increased.
Most read
5
A basic algorithm for a GA is as follows:
Initialize (population)
Evaluate (population)
While (stopping condition not satisfied) do
{
Selection (population)
Crossover (population)
Mutate (population)
Evaluate (population)
}
Most read
10
3. Reproduction (crossover):

In one-point (or single) crossover, two input data selected as potential
parents by selection process exchange substring information at a random
position in the data to produce two new data.
 Crossover happens according to a crossover probability pc
.

After that, the selected data are formatted randomly.

Each pair of parents generates two new paths, called offspring.
Most read
A Seminar on
Application of Genetic
Algorithm in
Software Testing
Presented By
Gaurav Singh CSE III yr
mmmut gkp
Software Testing
Software testing is an investigation conducted to
provide stakeholders with information about the quality of the
Product or service under test.
Properties evaluated in software testing process indicate the extent
to which the component or system under test:

meets design and development requirement.

Responds correctly to all kinds of inputs.

Performs functions within an acceptable time.

Can be installed and run in its intended environments.
Current area of research in
software testing
To devise methods to generate test data automatically, i.e. different
methods for developing test data/case generators.
Advantages of Automated test case generator

Significantly reduce the cost of developing software.

The test preparation can be done in advance.

The test runs would be considerably fast.

The confidence of the testing result can be increased.
Genetic Algorithm
A genetic algorithm starts with guesses and attempts to improve
the guesses by evolution.
A genetic algorithm will typically have five parts :-

A representation of a guess called a chromosome.

An initial pool of chromosomes.

A fitness function.

A selection function.

A crossover operator and a mutation operator.
A basic algorithm for a GA is as follows:
Initialize (population)
Evaluate (population)
While (stopping condition not satisfied) do
{
Selection (population)
Crossover (population)
Mutate (population)
Evaluate (population)
}
Aim of the algorithm
This Algorithms optimizes and select the software path clusters which are
weighted in accordance with the criticality of the path.
Why this approach to software testing:

Exhaustive software testing intractable for even medium sized software.

Typically only parts of a program can be tested, but these parts are not
necessarily the most error prone.

Therefore, we are developing a more selective approach to testing by focusing on
those parts that are most critical so that these paths can be tested first

By identifying the most critical paths, the testing efficiency can be increased.
Procedure of algorithm
1. Assigning weights to edges of CFG:

Assigning more edges to critical paths.

An initial credit is taken (100 or 10):

Dense

Sparse

At each node of CFG the incoming credit is divided and distributed to all the
outgoing edges of the node.
Distribution of weights is done as follows:

Take ‘n’ to be the number of outgoing edges.

We will considered an 80-20 rule..

If there is only one outgoing edge from a particular node than the incoming
weight is assigned to the outgoing edge.
Application of Genetic Algorithm in Software Testing
2. Selection: The selection of parents for reproduction is done according to a
Probability distribution based on the individual’s fitness values.
 Fitness Function:
 Probability of selection pj
for each path j :
 Cumulative probability ck
is calculated for each path k with equation:
F = Σi = 1 to n wi
pj = Fj / Σi = 1 to n Fi
ck = Σ j = 1 to k pj
3. Reproduction (crossover):

In one-point (or single) crossover, two input data selected as potential
parents by selection process exchange substring information at a random
position in the data to produce two new data.
 Crossover happens according to a crossover probability pc
.

After that, the selected data are formatted randomly.

Each pair of parents generates two new paths, called offspring.
4. Mutation :
 Mutation is performed on a bit-by-bit basis. Every bit of every
chromosome in the offspring has an equal chance to mutate (change from
‘0’ to ‘1’ or from ‘1’ to ‘0’).
 The mutation occurs according to a mutation probability pm
, which is
also an adjustable parameter. To perform mutation, for each
chromosome in the offspring and for each bit within the chromosome,
generate a random real number r in the range [0, 1]; if r < pm
then
mutate the bit.
Initial population: (n, m)
(12, 8), (2, 3), (6, 2), (15, 4)
First Iteration…
Second Iteration…
Third Iteration…
Conclusion

The Genetic Algorithm is a probabilistic search algorithm that iteratively
transforms a set (population) of mathematical objects (fixed length binary string),
each with an associated fitness value, that maps onto a new population of
offspring objects using crossover and mutation techniques.

genetic algorithm are used for finding the most critical paths based on artefact's
during testing in a software construct and can improve the software testing
efficiency.
Thanks For Your Attention !
QUERY?

More Related Content

What's hot (20)

Software testing
Software testingSoftware testing
Software testing
DIPEN SAINI
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Respa Peter
 
GENETIC ALGORITHM
GENETIC ALGORITHM GENETIC ALGORITHM
GENETIC ALGORITHM
Abhishek Sur
 
Introduction to Genetic Algorithm
Introduction to Genetic Algorithm Introduction to Genetic Algorithm
Introduction to Genetic Algorithm
ramyaravindran12
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
anas_elf
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
Akhil Kaushik
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
Fatemeh Karimi
 
Introduction to genetic programming
Introduction to genetic programmingIntroduction to genetic programming
Introduction to genetic programming
abhishek singh
 
genetic programming
genetic programminggenetic programming
genetic programming
Bassant Hassan
 
Introduction to Evolutionary Algorithms
Introduction to Evolutionary AlgorithmsIntroduction to Evolutionary Algorithms
Introduction to Evolutionary Algorithms
herbps10
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Shruti Railkar
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
Harshana Madusanka Jayamaha
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Jari Abbas
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Premsankar Chakkingal
 
Semantic Genetic Programming Tutorial
Semantic Genetic Programming TutorialSemantic Genetic Programming Tutorial
Semantic Genetic Programming Tutorial
AlbertoMoraglio
 
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
VIT University (Chennai Campus)
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
Nobal Niraula
 
Software testing
Software testingSoftware testing
Software testing
DIPEN SAINI
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Respa Peter
 
GENETIC ALGORITHM
GENETIC ALGORITHM GENETIC ALGORITHM
GENETIC ALGORITHM
Abhishek Sur
 
Introduction to Genetic Algorithm
Introduction to Genetic Algorithm Introduction to Genetic Algorithm
Introduction to Genetic Algorithm
ramyaravindran12
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
anas_elf
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
Akhil Kaushik
 
Introduction to genetic programming
Introduction to genetic programmingIntroduction to genetic programming
Introduction to genetic programming
abhishek singh
 
Introduction to Evolutionary Algorithms
Introduction to Evolutionary AlgorithmsIntroduction to Evolutionary Algorithms
Introduction to Evolutionary Algorithms
herbps10
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
Harshana Madusanka Jayamaha
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Jari Abbas
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
Semantic Genetic Programming Tutorial
Semantic Genetic Programming TutorialSemantic Genetic Programming Tutorial
Semantic Genetic Programming Tutorial
AlbertoMoraglio
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
Nobal Niraula
 

Viewers also liked (20)

Maximum power pont tracking
Maximum power pont trackingMaximum power pont tracking
Maximum power pont tracking
Adítýã Pâñïgrähï
 
Tracer1210rn Tracer1215rn manual from Ultisolar New Energy
Tracer1210rn Tracer1215rn manual from Ultisolar New EnergyTracer1210rn Tracer1215rn manual from Ultisolar New Energy
Tracer1210rn Tracer1215rn manual from Ultisolar New Energy
Shandong iSentrol Electronic Technology Co., Ltd
 
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE ...
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE                                   ...AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE                                   ...
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE ...
MAHESH294
 
Iitbombay report
Iitbombay reportIitbombay report
Iitbombay report
Gaurav Khandelwal
 
genetic algorithms-artificial intelligence
 genetic algorithms-artificial intelligence genetic algorithms-artificial intelligence
genetic algorithms-artificial intelligence
Karunakar Singh Thakur
 
Genetic Algorithms Made Easy
Genetic Algorithms Made EasyGenetic Algorithms Made Easy
Genetic Algorithms Made Easy
Prakash Pimpale
 
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural Networks
The Integral Worm
 
simulation of maximum power point tracking for photovoltaic systems
simulation of maximum power point tracking for photovoltaic systemssimulation of maximum power point tracking for photovoltaic systems
simulation of maximum power point tracking for photovoltaic systems
ST. MARTIN'S ENGINEERING COLLEGE
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
Nagarajan
 
MPPT
MPPTMPPT
MPPT
MANISH BARTHWAL
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Neural network
Neural networkNeural network
Neural network
Silicon
 
Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)
Piyumal Samarathunga
 
Solar Presentation.pptx
Solar Presentation.pptxSolar Presentation.pptx
Solar Presentation.pptx
Steve Martinez
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
BCSLeicester
 
Artificial intelligence NEURAL NETWORKS
Artificial intelligence NEURAL NETWORKSArtificial intelligence NEURAL NETWORKS
Artificial intelligence NEURAL NETWORKS
REHMAT ULLAH
 
maximum power point tracking (mppt)
maximum power point tracking (mppt)maximum power point tracking (mppt)
maximum power point tracking (mppt)
Shashikumar Jeevan
 
Solar tracker
Solar trackerSolar tracker
Solar tracker
MAHESH294
 
Neural network & its applications
Neural network & its applications Neural network & its applications
Neural network & its applications
Ahmed_hashmi
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
stellajoseph
 
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE ...
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE                                   ...AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE                                   ...
AUTOMATIC ACTIVE PHASE SELECTOR FOR SINGLE ...
MAHESH294
 
genetic algorithms-artificial intelligence
 genetic algorithms-artificial intelligence genetic algorithms-artificial intelligence
genetic algorithms-artificial intelligence
Karunakar Singh Thakur
 
Genetic Algorithms Made Easy
Genetic Algorithms Made EasyGenetic Algorithms Made Easy
Genetic Algorithms Made Easy
Prakash Pimpale
 
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural Networks
The Integral Worm
 
simulation of maximum power point tracking for photovoltaic systems
simulation of maximum power point tracking for photovoltaic systemssimulation of maximum power point tracking for photovoltaic systems
simulation of maximum power point tracking for photovoltaic systems
ST. MARTIN'S ENGINEERING COLLEGE
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
Nagarajan
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Neural network
Neural networkNeural network
Neural network
Silicon
 
Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)
Piyumal Samarathunga
 
Solar Presentation.pptx
Solar Presentation.pptxSolar Presentation.pptx
Solar Presentation.pptx
Steve Martinez
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
BCSLeicester
 
Artificial intelligence NEURAL NETWORKS
Artificial intelligence NEURAL NETWORKSArtificial intelligence NEURAL NETWORKS
Artificial intelligence NEURAL NETWORKS
REHMAT ULLAH
 
maximum power point tracking (mppt)
maximum power point tracking (mppt)maximum power point tracking (mppt)
maximum power point tracking (mppt)
Shashikumar Jeevan
 
Solar tracker
Solar trackerSolar tracker
Solar tracker
MAHESH294
 
Neural network & its applications
Neural network & its applications Neural network & its applications
Neural network & its applications
Ahmed_hashmi
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
stellajoseph
 
Ad

Similar to Application of Genetic Algorithm in Software Testing (20)

Da35573574
Da35573574Da35573574
Da35573574
IJERA Editor
 
Software Testing Using Genetic Algorithms
Software Testing Using Genetic AlgorithmsSoftware Testing Using Genetic Algorithms
Software Testing Using Genetic Algorithms
IJCSES Journal
 
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
cscpconf
 
Software testing using genetic algorithms
Software testing using genetic algorithmsSoftware testing using genetic algorithms
Software testing using genetic algorithms
Nurhussen Menza
 
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
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
garima931
 
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate ProblemsEvolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
IDES Editor
 
Genetic algorithm (local search problems)
Genetic algorithm (local search problems)Genetic algorithm (local search problems)
Genetic algorithm (local search problems)
MuhammadAamirGulzarA
 
GAs presentation with explain tool and uses python
GAs presentation with explain tool and uses pythonGAs presentation with explain tool and uses python
GAs presentation with explain tool and uses python
AdeChandra56
 
Genet algo.ppt
Genet algo.pptGenet algo.ppt
Genet algo.ppt
raj20072
 
pso.ppt
pso.pptpso.ppt
pso.ppt
raj20072
 
BGA.pptx
BGA.pptxBGA.pptx
BGA.pptx
ShubhamKamble942039
 
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
 
Genetic algorithm optimization technique.pptx
Genetic algorithm optimization technique.pptxGenetic algorithm optimization technique.pptx
Genetic algorithm optimization technique.pptx
sridharece1
 
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
ssuser8d8cfc1
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
Nandhini S
 
A Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its ApplicationsA Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its Applications
Karen Gomez
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
waqasjavaid26
 
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systemsTMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
Iosif Itkin
 
Software Testing Using Genetic Algorithms
Software Testing Using Genetic AlgorithmsSoftware Testing Using Genetic Algorithms
Software Testing Using Genetic Algorithms
IJCSES Journal
 
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
cscpconf
 
Software testing using genetic algorithms
Software testing using genetic algorithmsSoftware testing using genetic algorithms
Software testing using genetic algorithms
Nurhussen Menza
 
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
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
garima931
 
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate ProblemsEvolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
IDES Editor
 
Genetic algorithm (local search problems)
Genetic algorithm (local search problems)Genetic algorithm (local search problems)
Genetic algorithm (local search problems)
MuhammadAamirGulzarA
 
GAs presentation with explain tool and uses python
GAs presentation with explain tool and uses pythonGAs presentation with explain tool and uses python
GAs presentation with explain tool and uses python
AdeChandra56
 
Genet algo.ppt
Genet algo.pptGenet algo.ppt
Genet algo.ppt
raj20072
 
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
 
Genetic algorithm optimization technique.pptx
Genetic algorithm optimization technique.pptxGenetic algorithm optimization technique.pptx
Genetic algorithm optimization technique.pptx
sridharece1
 
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
ssuser8d8cfc1
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
Nandhini S
 
A Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its ApplicationsA Review On Genetic Algorithm And Its Applications
A Review On Genetic Algorithm And Its Applications
Karen Gomez
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
waqasjavaid26
 
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systemsTMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
Iosif Itkin
 
Ad

Recently uploaded (20)

LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowWhat is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
SMACT Works
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Dancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptxDancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptx
Elliott Richmond
 
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
Edge AI and Vision Alliance
 
7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Soulmaite review - Find Real AI soulmate review
Soulmaite review - Find Real AI soulmate reviewSoulmaite review - Find Real AI soulmate review
Soulmaite review - Find Real AI soulmate review
Soulmaite
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
FCF- Getting Started in Cybersecurity 3.0
FCF- Getting Started in Cybersecurity 3.0FCF- Getting Started in Cybersecurity 3.0
FCF- Getting Started in Cybersecurity 3.0
RodrigoMori7
 
LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowWhat is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
SMACT Works
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Dancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptxDancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptx
Elliott Richmond
 
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
“State-space Models vs. Transformers for Ultra-low-power Edge AI,” a Presenta...
Edge AI and Vision Alliance
 
7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Soulmaite review - Find Real AI soulmate review
Soulmaite review - Find Real AI soulmate reviewSoulmaite review - Find Real AI soulmate review
Soulmaite review - Find Real AI soulmate review
Soulmaite
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
FCF- Getting Started in Cybersecurity 3.0
FCF- Getting Started in Cybersecurity 3.0FCF- Getting Started in Cybersecurity 3.0
FCF- Getting Started in Cybersecurity 3.0
RodrigoMori7
 

Application of Genetic Algorithm in Software Testing

  • 1. A Seminar on Application of Genetic Algorithm in Software Testing Presented By Gaurav Singh CSE III yr mmmut gkp
  • 2. Software Testing Software testing is an investigation conducted to provide stakeholders with information about the quality of the Product or service under test. Properties evaluated in software testing process indicate the extent to which the component or system under test:  meets design and development requirement.  Responds correctly to all kinds of inputs.  Performs functions within an acceptable time.  Can be installed and run in its intended environments.
  • 3. Current area of research in software testing To devise methods to generate test data automatically, i.e. different methods for developing test data/case generators. Advantages of Automated test case generator  Significantly reduce the cost of developing software.  The test preparation can be done in advance.  The test runs would be considerably fast.  The confidence of the testing result can be increased.
  • 4. Genetic Algorithm A genetic algorithm starts with guesses and attempts to improve the guesses by evolution. A genetic algorithm will typically have five parts :-  A representation of a guess called a chromosome.  An initial pool of chromosomes.  A fitness function.  A selection function.  A crossover operator and a mutation operator.
  • 5. A basic algorithm for a GA is as follows: Initialize (population) Evaluate (population) While (stopping condition not satisfied) do { Selection (population) Crossover (population) Mutate (population) Evaluate (population) }
  • 6. Aim of the algorithm This Algorithms optimizes and select the software path clusters which are weighted in accordance with the criticality of the path. Why this approach to software testing:  Exhaustive software testing intractable for even medium sized software.  Typically only parts of a program can be tested, but these parts are not necessarily the most error prone.  Therefore, we are developing a more selective approach to testing by focusing on those parts that are most critical so that these paths can be tested first  By identifying the most critical paths, the testing efficiency can be increased.
  • 7. Procedure of algorithm 1. Assigning weights to edges of CFG:  Assigning more edges to critical paths.  An initial credit is taken (100 or 10):  Dense  Sparse  At each node of CFG the incoming credit is divided and distributed to all the outgoing edges of the node. Distribution of weights is done as follows:  Take ‘n’ to be the number of outgoing edges.  We will considered an 80-20 rule..  If there is only one outgoing edge from a particular node than the incoming weight is assigned to the outgoing edge.
  • 9. 2. Selection: The selection of parents for reproduction is done according to a Probability distribution based on the individual’s fitness values.  Fitness Function:  Probability of selection pj for each path j :  Cumulative probability ck is calculated for each path k with equation: F = Σi = 1 to n wi pj = Fj / Σi = 1 to n Fi ck = Σ j = 1 to k pj
  • 10. 3. Reproduction (crossover):  In one-point (or single) crossover, two input data selected as potential parents by selection process exchange substring information at a random position in the data to produce two new data.  Crossover happens according to a crossover probability pc .  After that, the selected data are formatted randomly.  Each pair of parents generates two new paths, called offspring.
  • 11. 4. Mutation :  Mutation is performed on a bit-by-bit basis. Every bit of every chromosome in the offspring has an equal chance to mutate (change from ‘0’ to ‘1’ or from ‘1’ to ‘0’).  The mutation occurs according to a mutation probability pm , which is also an adjustable parameter. To perform mutation, for each chromosome in the offspring and for each bit within the chromosome, generate a random real number r in the range [0, 1]; if r < pm then mutate the bit.
  • 12. Initial population: (n, m) (12, 8), (2, 3), (6, 2), (15, 4)
  • 16. Conclusion  The Genetic Algorithm is a probabilistic search algorithm that iteratively transforms a set (population) of mathematical objects (fixed length binary string), each with an associated fitness value, that maps onto a new population of offspring objects using crossover and mutation techniques.  genetic algorithm are used for finding the most critical paths based on artefact's during testing in a software construct and can improve the software testing efficiency.
  • 17. Thanks For Your Attention ! QUERY?