SlideShare a Scribd company logo
Graph Partition
Rohit Talwar
201001003
Project Mentor
Dr. Suresh Purini
Contents
• Recap
• Problems Addressed
• K-L Algorithm
• Pseudo Code
•What’s Next
Recap
• The Problem – K Way Partitioning
• Required – A Parallel Solution
• Basis of Comparison - Sequential Approach
• Most Popular : K-L Algorithm : used in most Implementations
Problem Addressed
• Implemented K – L algorithm
• Ran on variety of test cases – from 200 to 40,000 vertices
• Test cases adhere to Metis format obtained from DIMACS website
• Key Observations :
• Slower than Multilevel Partition – Metis
• Space Considerations - O(V*V)
• Might exceed memory for bigger sized graphs (> 50,000) 9 GB!
Kernighan Lin Algorithm
• Complexity – O(n2 logn )
• Heuristic Technique
• V divided into two equal subsets
• Assumes weight of all vertices to be equal
• Modifications applied : to get K way partition with unequal weights of
vertices
Rationale
• Required - Equal disjoint subsets ( let A & B)
• Swap 2 vertices(a ϵ A, b ϵ B) <- Maintains equal partitions
• Ea = sum of crossing or external edges from a into B
• Ia = sum of internal edges from a into A
• Snew = Sold + Ia + Ib – Ea – Eb + 2*c(a,b)
• Da = Ea - Ia & Db = Eb - Ib
• Sold – Snew = Da + Db - 2*c(a,b)
• Maximize Da + Db - 2*c(a,b) as each swap should minimize Snew
Pseudo Code – 2 way partition
1. Initial Partition the nodes into 2 sets A and B
2. Calculate D for A & B
3. Sort A and B on basis of D values
4. Check pairwise and calculate G
For (each a in A) {
For (each b in B) {
if (Da + Db < G){ Break }
else if (Da + Db -2*Cab > G) {
G = Da + Db -2*Cab;
Nexta = a; Nextb = b
}
}
}
5. Put G, NextA & NextB into queue and mark them as visited
6. Update D values in A and B
Da = Da + 2*CaNexta – 2*CaNextb; Db = Db + 2*CbNextb – 2*CbNexta
7. If all nodes visited goto step 8 else step 3.
8. Find Gsum > 0 having maximum i such that – Gsum = 1
𝑖
𝐺
9. If I = 0 i.e Gsum cant be a positive quantity then stop else goto 3.
What’s Next
● Graph Partition is NP Hard – there is no right solution
● Need to find a measure of correctness/viability to compare results
● Need to find and set approximations for algorithm to converge
● Need to address the space complexity
Thanks
Q & A

More Related Content

What's hot

층류 익형의 설계 최적화
층류 익형의 설계 최적화층류 익형의 설계 최적화
층류 익형의 설계 최적화HyunJoon Kim
 
R kmethod
R kmethodR kmethod
R kmethod
AbhishekGHatti
 
Course Note_Satellite Image Analysis and Applications_Week14
Course Note_Satellite Image Analysis and Applications_Week14Course Note_Satellite Image Analysis and Applications_Week14
Course Note_Satellite Image Analysis and Applications_Week14Lorie Lin
 
Bode plot
Bode plotBode plot
Projectile motion calculations
Projectile motion calculationsProjectile motion calculations
Projectile motion calculations
Angela Stott
 
Bode
BodeBode
Bode
saru062
 
Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...
University of Science and Technology Chitttagong
 
Image Segmentation Chain
Image Segmentation ChainImage Segmentation Chain
Image Segmentation Chain
RMwebsite
 
Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS
Ping Hung Lee
 
Seminar @ U of Tokyo: 2014.04.14
Seminar @ U of Tokyo: 2014.04.14Seminar @ U of Tokyo: 2014.04.14
Seminar @ U of Tokyo: 2014.04.14
Yoshitaro Takaesu
 
Pid tuninig with exact gain and phase margin
Pid tuninig with  exact gain and  phase marginPid tuninig with  exact gain and  phase margin
Pid tuninig with exact gain and phase margin
Muhammad Younas
 
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Mumbai B.Sc.IT Study
 
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
Paper_An Efficient Garbage Collection in Java Virtual  Machine via Swap I/O O...Paper_An Efficient Garbage Collection in Java Virtual  Machine via Swap I/O O...
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
Hyo jeong Lee
 
A* - Astar - A-Star
A* - Astar - A-StarA* - Astar - A-Star
A* - Astar - A-Star
Dr. Maamoun Ahmed
 
ORN architecture DBMS
ORN architecture DBMSORN architecture DBMS
ORN architecture DBMSdgbjdjg
 
ETA Prediction with Graph Neural Networks in Google Maps
ETA Prediction with Graph Neural Networks in Google MapsETA Prediction with Graph Neural Networks in Google Maps
ETA Prediction with Graph Neural Networks in Google Maps
ivaderivader
 
Truck loading problem
Truck loading problemTruck loading problem
Truck loading problem
harsha_jois
 
Wre11
Wre11Wre11
1 bode plot
1 bode plot1 bode plot
1 bode plot
Vani Adiga
 

What's hot (20)

층류 익형의 설계 최적화
층류 익형의 설계 최적화층류 익형의 설계 최적화
층류 익형의 설계 최적화
 
R kmethod
R kmethodR kmethod
R kmethod
 
Course Note_Satellite Image Analysis and Applications_Week14
Course Note_Satellite Image Analysis and Applications_Week14Course Note_Satellite Image Analysis and Applications_Week14
Course Note_Satellite Image Analysis and Applications_Week14
 
Bode plot
Bode plotBode plot
Bode plot
 
Projectile motion calculations
Projectile motion calculationsProjectile motion calculations
Projectile motion calculations
 
Bode
BodeBode
Bode
 
Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...
 
Image Segmentation Chain
Image Segmentation ChainImage Segmentation Chain
Image Segmentation Chain
 
Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS Guided Wave Propagation Simulation by ANSYS
Guided Wave Propagation Simulation by ANSYS
 
Seminar @ U of Tokyo: 2014.04.14
Seminar @ U of Tokyo: 2014.04.14Seminar @ U of Tokyo: 2014.04.14
Seminar @ U of Tokyo: 2014.04.14
 
Pid tuninig with exact gain and phase margin
Pid tuninig with  exact gain and  phase marginPid tuninig with  exact gain and  phase margin
Pid tuninig with exact gain and phase margin
 
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Internet Technologies (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
 
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
Paper_An Efficient Garbage Collection in Java Virtual  Machine via Swap I/O O...Paper_An Efficient Garbage Collection in Java Virtual  Machine via Swap I/O O...
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
 
A* - Astar - A-Star
A* - Astar - A-StarA* - Astar - A-Star
A* - Astar - A-Star
 
ORN architecture DBMS
ORN architecture DBMSORN architecture DBMS
ORN architecture DBMS
 
Fp12_Efficient_SCM
Fp12_Efficient_SCMFp12_Efficient_SCM
Fp12_Efficient_SCM
 
ETA Prediction with Graph Neural Networks in Google Maps
ETA Prediction with Graph Neural Networks in Google MapsETA Prediction with Graph Neural Networks in Google Maps
ETA Prediction with Graph Neural Networks in Google Maps
 
Truck loading problem
Truck loading problemTruck loading problem
Truck loading problem
 
Wre11
Wre11Wre11
Wre11
 
1 bode plot
1 bode plot1 bode plot
1 bode plot
 

Similar to Graph partition 2

Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
iftakhar8
 
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Brendan Eich
 
Parking space detect
Parking space detectParking space detect
Parking space detect
Amanullah Tariq
 
Dsoop (co 221) 1
Dsoop (co 221) 1Dsoop (co 221) 1
Dsoop (co 221) 1
Puja Koch
 
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Hemant Jha
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
sambhenilesh
 
20130523 05 - Cyclomatic complexity
20130523 05 - Cyclomatic complexity20130523 05 - Cyclomatic complexity
20130523 05 - Cyclomatic complexity
LeClubQualiteLogicielle
 
Design and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesDesign and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture Notes
Sreedhar Chowdam
 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Hsien-Hsin Sean Lee, Ph.D.
 
Mmclass3
Mmclass3Mmclass3
Mmclass3
Hassan Dar
 
815.07 machine learning using python.pdf
815.07 machine learning using python.pdf815.07 machine learning using python.pdf
815.07 machine learning using python.pdf
SairaAtta5
 
Handout_fft_see_this.pdf Fast forrier transform
Handout_fft_see_this.pdf Fast forrier transformHandout_fft_see_this.pdf Fast forrier transform
Handout_fft_see_this.pdf Fast forrier transform
atharmarajah
 
Code generation in Compiler Design
Code generation in Compiler DesignCode generation in Compiler Design
Code generation in Compiler Design
Kuppusamy P
 
Shortest path algorithm
Shortest  path algorithmShortest  path algorithm
Shortest path algorithm
Subrata Kumer Paul
 
Homomorphic Encryption
Homomorphic EncryptionHomomorphic Encryption
Homomorphic Encryption
Victor Pereira
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsKasun Ranga Wijeweera
 

Similar to Graph partition 2 (20)

Cryptography
CryptographyCryptography
Cryptography
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
 
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
 
distance_matrix_ch
distance_matrix_chdistance_matrix_ch
distance_matrix_ch
 
Parking space detect
Parking space detectParking space detect
Parking space detect
 
Dsoop (co 221) 1
Dsoop (co 221) 1Dsoop (co 221) 1
Dsoop (co 221) 1
 
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
 
2.ppt
2.ppt2.ppt
2.ppt
 
Lecture24
Lecture24Lecture24
Lecture24
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
20130523 05 - Cyclomatic complexity
20130523 05 - Cyclomatic complexity20130523 05 - Cyclomatic complexity
20130523 05 - Cyclomatic complexity
 
Design and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesDesign and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture Notes
 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
 
Mmclass3
Mmclass3Mmclass3
Mmclass3
 
815.07 machine learning using python.pdf
815.07 machine learning using python.pdf815.07 machine learning using python.pdf
815.07 machine learning using python.pdf
 
Handout_fft_see_this.pdf Fast forrier transform
Handout_fft_see_this.pdf Fast forrier transformHandout_fft_see_this.pdf Fast forrier transform
Handout_fft_see_this.pdf Fast forrier transform
 
Code generation in Compiler Design
Code generation in Compiler DesignCode generation in Compiler Design
Code generation in Compiler Design
 
Shortest path algorithm
Shortest  path algorithmShortest  path algorithm
Shortest path algorithm
 
Homomorphic Encryption
Homomorphic EncryptionHomomorphic Encryption
Homomorphic Encryption
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of Points
 

Recently uploaded

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 

Recently uploaded (20)

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 

Graph partition 2

  • 2. Contents • Recap • Problems Addressed • K-L Algorithm • Pseudo Code •What’s Next
  • 3. Recap • The Problem – K Way Partitioning • Required – A Parallel Solution • Basis of Comparison - Sequential Approach • Most Popular : K-L Algorithm : used in most Implementations
  • 4. Problem Addressed • Implemented K – L algorithm • Ran on variety of test cases – from 200 to 40,000 vertices • Test cases adhere to Metis format obtained from DIMACS website • Key Observations : • Slower than Multilevel Partition – Metis • Space Considerations - O(V*V) • Might exceed memory for bigger sized graphs (> 50,000) 9 GB!
  • 5. Kernighan Lin Algorithm • Complexity – O(n2 logn ) • Heuristic Technique • V divided into two equal subsets • Assumes weight of all vertices to be equal • Modifications applied : to get K way partition with unequal weights of vertices
  • 6. Rationale • Required - Equal disjoint subsets ( let A & B) • Swap 2 vertices(a ϵ A, b ϵ B) <- Maintains equal partitions • Ea = sum of crossing or external edges from a into B • Ia = sum of internal edges from a into A • Snew = Sold + Ia + Ib – Ea – Eb + 2*c(a,b) • Da = Ea - Ia & Db = Eb - Ib • Sold – Snew = Da + Db - 2*c(a,b) • Maximize Da + Db - 2*c(a,b) as each swap should minimize Snew
  • 7. Pseudo Code – 2 way partition 1. Initial Partition the nodes into 2 sets A and B 2. Calculate D for A & B 3. Sort A and B on basis of D values 4. Check pairwise and calculate G For (each a in A) { For (each b in B) { if (Da + Db < G){ Break } else if (Da + Db -2*Cab > G) { G = Da + Db -2*Cab; Nexta = a; Nextb = b } } }
  • 8. 5. Put G, NextA & NextB into queue and mark them as visited 6. Update D values in A and B Da = Da + 2*CaNexta – 2*CaNextb; Db = Db + 2*CbNextb – 2*CbNexta 7. If all nodes visited goto step 8 else step 3. 8. Find Gsum > 0 having maximum i such that – Gsum = 1 𝑖 𝐺 9. If I = 0 i.e Gsum cant be a positive quantity then stop else goto 3.
  • 9. What’s Next ● Graph Partition is NP Hard – there is no right solution ● Need to find a measure of correctness/viability to compare results ● Need to find and set approximations for algorithm to converge ● Need to address the space complexity