SlideShare a Scribd company logo
1 of 12
GENETIC ALGORITHMS
&
GRAPH PARTITIONING PROBLEMS
By Shrinivas Vasala
1
GRAPH PARTITION PROBLEM
 Input: G = (V, E, Ω1, Ω2, m) where
Z+
Z+
Ω1 :
Ω2:
m :
Notations:
 Partition: π :
E —>
V —>
: weights on edges
: weights on nodes
number of subsets of G
V --> { π1, π2, π3,..., πm}
where
π = {v ε V |π(v)= πi,} i|1≤ i ≤ mi
such that πi n πj = for i = j
2
NOTATIONS CONT…..
o Size of subset πi :
S(π i) = ΣΩ2(v) for all v in πi
W(π) = ∑|S(π i) – S(π j)| i,j| 1≤ i <j≤ m
(Imbalance weight)
o Cut size :
1. Ci = ΣΩ1(u,v) for all (u,v) ε E| u ε πi and v ε πjj
2. Cut(π) = ΣCi for all i,j| 1≤ i <j≤ m
(Cut Size Of π )
j
Objective: To find a partition of the nodes of G into m
disjoint, equal-sized subsets such that the sum
Cost = ω1*Cut(π)+ ω2*W(π)
is minimized
o It’s NP Complete problem 3
GENETIC ALGORITHM
 Requirements
 1. Np:
 2.Ng :
Population Size at each iteration
Number of generations(iterations ) required
Cross Over rate (Pc% chromosomes undergo
cross over at each iteration)
mutationrate (Pm% of genes undergo
mutation)
 3. Pc :
 4. Pm:
 5.
 6.
α(alpha) : Scaling parameter
ω1 & ω2 : weights for cutcost & imbalance weight
4
DONE 5
Convergence Check
Mutation
Mating
Select Mates
Find Cost for each
chromosome
Generate Initial Population
Define Cost function &
Various Parameters
INTIAL POPULATION
 (Pro)i = Ω2(vi) * Random(0,1) * N;
 ȵ = μ = Maxi{(Pro)i}/
Where α is known as scaling factor
o (Pr )i = (Pro)i + Uniform(-ȵ, μ)
o Form Matrix X of above elements
as shown below
6
SAMPLE INITIAL POPULATION
7
COST ,MATES & CROSS OVER
 For each chromosome form a partitioned graph & find the
corresponding Cut cost & fitness cost (Draw)
MATES Selection
 Select a randomnumberr in (0,1) & select corresponding
chromosome for Mutation if r < Pc for cross over.
Cross Over
 Select a number randomly from {1,2,3,…….ColX} & do
the cross over in the selected chromosomes
 Replace old chromosomeswith their offsprings.
8
MUTATION
Let Pm* RowX = # of genes undergo mutation = K
Generate K random numbers from {1,2,3 ………RowX}
Also K random numbers from {1,2,3 …….ColX}
For each element at intersectionreplaceit by a random number
generated between {MinX, , , , , , MaxX}
This way we get a new matrix X for next generation
computation.
Store the minimum value of cost at each iterations
At the end of finite number of iterations(Ng) find the





minimum among the stored cost values & corresponding
partition gives suboptimalpartition of G
9
PARAMETER TUNNING
 If we consider Np between 150 to 200
 Ng between 80 to 100, Pc= 0.06 & Pm= 0.001
 Above
GPP.
are sufficient to arrive at good solution to
10
APPLICATIONS
 VLSI circuits
 Routing in distributed systems
 Mapping parallel programming
 Image segmentation in the field of computer
visions
 Approximately computing suboptimal answers
most of the NP complete problems
to
11
THANKS
12

More Related Content

What's hot

car rental management system project
car rental management system project car rental management system project
car rental management system project
Mubashar Hussain
 

What's hot (20)

Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture DesignTowards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
 
JUSTCABS - an Online Cab Reservation System (Final Year Project)
JUSTCABS - an Online Cab Reservation System (Final Year Project)JUSTCABS - an Online Cab Reservation System (Final Year Project)
JUSTCABS - an Online Cab Reservation System (Final Year Project)
 
FOTA Upgrade on Automotive and IoT Industry
FOTA Upgrade on Automotive and IoT IndustryFOTA Upgrade on Automotive and IoT Industry
FOTA Upgrade on Automotive and IoT Industry
 
astricon2018
astricon2018astricon2018
astricon2018
 
car rental management system project
car rental management system project car rental management system project
car rental management system project
 
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...
 
Introduction to Apache Synapse
Introduction to Apache SynapseIntroduction to Apache Synapse
Introduction to Apache Synapse
 
RENT IT: To Rent Your Ride
RENT IT: To Rent Your RideRENT IT: To Rent Your Ride
RENT IT: To Rent Your Ride
 
Online TAXI RESERVATION
Online TAXI RESERVATIONOnline TAXI RESERVATION
Online TAXI RESERVATION
 
Real-Time Streaming Protocol
Real-Time Streaming Protocol Real-Time Streaming Protocol
Real-Time Streaming Protocol
 
Eye OS
Eye OSEye OS
Eye OS
 
Tourist management system using .NET
Tourist management system using .NETTourist management system using .NET
Tourist management system using .NET
 
Horovod: Uber’s Open Source Distributed Deep Learning Framework for TensorFlow
Horovod: Uber’s Open Source Distributed Deep Learning Framework for TensorFlowHorovod: Uber’s Open Source Distributed Deep Learning Framework for TensorFlow
Horovod: Uber’s Open Source Distributed Deep Learning Framework for TensorFlow
 
Build and run embedded apps faster from qt creator with docker
Build and run embedded apps faster from qt creator with dockerBuild and run embedded apps faster from qt creator with docker
Build and run embedded apps faster from qt creator with docker
 
HTTPS
HTTPSHTTPS
HTTPS
 
Synopsis gor online Tourism.
Synopsis gor online Tourism.Synopsis gor online Tourism.
Synopsis gor online Tourism.
 
Cnn backpropagation derivation
Cnn backpropagation derivationCnn backpropagation derivation
Cnn backpropagation derivation
 
Event management system for final year project
Event management system for final year project Event management system for final year project
Event management system for final year project
 
Web 3.0 & IoT
Web 3.0 & IoTWeb 3.0 & IoT
Web 3.0 & IoT
 
Zone.js
Zone.jsZone.js
Zone.js
 

Similar to Genetic algorithm and graph partitioning problem

2_1 Edit Distance.pptx
2_1 Edit Distance.pptx2_1 Edit Distance.pptx
2_1 Edit Distance.pptx
tanishamahajan11
 
Csr2011 june15 11_00_sima
Csr2011 june15 11_00_simaCsr2011 june15 11_00_sima
Csr2011 june15 11_00_sima
CSR2011
 
sublabel accurate convex relaxation of vectorial multilabel energies
sublabel accurate convex relaxation of vectorial multilabel energiessublabel accurate convex relaxation of vectorial multilabel energies
sublabel accurate convex relaxation of vectorial multilabel energies
Fujimoto Keisuke
 
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov VyacheslavSeminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
Vyacheslav Arbuzov
 
Runtime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary AlgorithmsRuntime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary Algorithms
Per Kristian Lehre
 
Runtime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary AlgorithmsRuntime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary Algorithms
PK Lehre
 
Optimizing the parameters of wavelets for pattern matching using ga no restri...
Optimizing the parameters of wavelets for pattern matching using ga no restri...Optimizing the parameters of wavelets for pattern matching using ga no restri...
Optimizing the parameters of wavelets for pattern matching using ga no restri...
iaemedu
 
Optimizing the parameters of wavelets for pattern matching using ga
Optimizing the parameters of wavelets for pattern matching using gaOptimizing the parameters of wavelets for pattern matching using ga
Optimizing the parameters of wavelets for pattern matching using ga
iaemedu
 

Similar to Genetic algorithm and graph partitioning problem (20)

PCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdfPCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdf
 
2_1 Edit Distance.pptx
2_1 Edit Distance.pptx2_1 Edit Distance.pptx
2_1 Edit Distance.pptx
 
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
 
2_EditDistance_Jan_08_2020.pptx
2_EditDistance_Jan_08_2020.pptx2_EditDistance_Jan_08_2020.pptx
2_EditDistance_Jan_08_2020.pptx
 
Csr2011 june15 11_00_sima
Csr2011 june15 11_00_simaCsr2011 june15 11_00_sima
Csr2011 june15 11_00_sima
 
Ijmet 10 01_046
Ijmet 10 01_046Ijmet 10 01_046
Ijmet 10 01_046
 
Multilinear Twisted Paraproducts
Multilinear Twisted ParaproductsMultilinear Twisted Paraproducts
Multilinear Twisted Paraproducts
 
Mid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer GraphicsMid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer Graphics
 
Project2
Project2Project2
Project2
 
kactl.pdf
kactl.pdfkactl.pdf
kactl.pdf
 
Error control coding bch, reed-solomon etc..
Error control coding   bch, reed-solomon etc..Error control coding   bch, reed-solomon etc..
Error control coding bch, reed-solomon etc..
 
sublabel accurate convex relaxation of vectorial multilabel energies
sublabel accurate convex relaxation of vectorial multilabel energiessublabel accurate convex relaxation of vectorial multilabel energies
sublabel accurate convex relaxation of vectorial multilabel energies
 
Chap05alg
Chap05algChap05alg
Chap05alg
 
Chap05alg
Chap05algChap05alg
Chap05alg
 
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov VyacheslavSeminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
Seminar PSU 09.04.2013 - 10.04.2013 MiFIT, Arbuzov Vyacheslav
 
Runtime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary AlgorithmsRuntime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary Algorithms
 
Runtime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary AlgorithmsRuntime Analysis of Population-based Evolutionary Algorithms
Runtime Analysis of Population-based Evolutionary Algorithms
 
Lecture9 xing
Lecture9 xingLecture9 xing
Lecture9 xing
 
Optimizing the parameters of wavelets for pattern matching using ga no restri...
Optimizing the parameters of wavelets for pattern matching using ga no restri...Optimizing the parameters of wavelets for pattern matching using ga no restri...
Optimizing the parameters of wavelets for pattern matching using ga no restri...
 
Optimizing the parameters of wavelets for pattern matching using ga
Optimizing the parameters of wavelets for pattern matching using gaOptimizing the parameters of wavelets for pattern matching using ga
Optimizing the parameters of wavelets for pattern matching using ga
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Genetic algorithm and graph partitioning problem

  • 1. GENETIC ALGORITHMS & GRAPH PARTITIONING PROBLEMS By Shrinivas Vasala 1
  • 2. GRAPH PARTITION PROBLEM  Input: G = (V, E, Ω1, Ω2, m) where Z+ Z+ Ω1 : Ω2: m : Notations:  Partition: π : E —> V —> : weights on edges : weights on nodes number of subsets of G V --> { π1, π2, π3,..., πm} where π = {v ε V |π(v)= πi,} i|1≤ i ≤ mi such that πi n πj = for i = j 2
  • 3. NOTATIONS CONT….. o Size of subset πi : S(π i) = ΣΩ2(v) for all v in πi W(π) = ∑|S(π i) – S(π j)| i,j| 1≤ i <j≤ m (Imbalance weight) o Cut size : 1. Ci = ΣΩ1(u,v) for all (u,v) ε E| u ε πi and v ε πjj 2. Cut(π) = ΣCi for all i,j| 1≤ i <j≤ m (Cut Size Of π ) j Objective: To find a partition of the nodes of G into m disjoint, equal-sized subsets such that the sum Cost = ω1*Cut(π)+ ω2*W(π) is minimized o It’s NP Complete problem 3
  • 4. GENETIC ALGORITHM  Requirements  1. Np:  2.Ng : Population Size at each iteration Number of generations(iterations ) required Cross Over rate (Pc% chromosomes undergo cross over at each iteration) mutationrate (Pm% of genes undergo mutation)  3. Pc :  4. Pm:  5.  6. α(alpha) : Scaling parameter ω1 & ω2 : weights for cutcost & imbalance weight 4
  • 5. DONE 5 Convergence Check Mutation Mating Select Mates Find Cost for each chromosome Generate Initial Population Define Cost function & Various Parameters
  • 6. INTIAL POPULATION  (Pro)i = Ω2(vi) * Random(0,1) * N;  ȵ = μ = Maxi{(Pro)i}/ Where α is known as scaling factor o (Pr )i = (Pro)i + Uniform(-ȵ, μ) o Form Matrix X of above elements as shown below 6
  • 8. COST ,MATES & CROSS OVER  For each chromosome form a partitioned graph & find the corresponding Cut cost & fitness cost (Draw) MATES Selection  Select a randomnumberr in (0,1) & select corresponding chromosome for Mutation if r < Pc for cross over. Cross Over  Select a number randomly from {1,2,3,…….ColX} & do the cross over in the selected chromosomes  Replace old chromosomeswith their offsprings. 8
  • 9. MUTATION Let Pm* RowX = # of genes undergo mutation = K Generate K random numbers from {1,2,3 ………RowX} Also K random numbers from {1,2,3 …….ColX} For each element at intersectionreplaceit by a random number generated between {MinX, , , , , , MaxX} This way we get a new matrix X for next generation computation. Store the minimum value of cost at each iterations At the end of finite number of iterations(Ng) find the      minimum among the stored cost values & corresponding partition gives suboptimalpartition of G 9
  • 10. PARAMETER TUNNING  If we consider Np between 150 to 200  Ng between 80 to 100, Pc= 0.06 & Pm= 0.001  Above GPP. are sufficient to arrive at good solution to 10
  • 11. APPLICATIONS  VLSI circuits  Routing in distributed systems  Mapping parallel programming  Image segmentation in the field of computer visions  Approximately computing suboptimal answers most of the NP complete problems to 11