SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Algorithms for Graph Coloring Problem 
Wang Shengyi 
National University of Singapore 
November 6, 2014 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 1 / 24
Introduction Problem Description 
Problem Description 
• For a graph G = (V; E) and a color sequence c = (c0; c1; : : : ; cn), firstly 
choose a node v 2 V and populate with c0 
• Populate the rest of G in order of the rest of color sequence c such that only 
new nodes connected to a previously populated node may be populated. 
• Each populated G can be called a configuration, which can be seen as a 
function f mapping node to color. We can calculate a reward value for such 
a configuration f by the following formula: 
H = 
Σ 
All filled (i;j)2E 
1  (f(i); f(j)) where (x; y) = 
{ 
0 x̸= y 
1 x = y 
• For any G and c, develop an algorithm to generate a configuration that gives 
the maximum reward. 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 2 / 24
Introduction Data Set 
Data Set 
Set Number of Vertices Number of Edges Length of Color Sequences 
01 10 29 10 
02 153 5533 20 
03 153 5533 130 
04 590 658 400 
05 2969 3372 4000 
06 483 1358 400 
07 11748 34716 9000 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 3 / 24
Introduction Data Set 
Data Set 
We can explore more… 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 4 / 24
Introduction Data Set 
Graph Visualization: Graph 01 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 5 / 24
Introduction Data Set 
Graph Visualization: Graph 02  03 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 6 / 24
Introduction Data Set 
Graph Visualization: Graph 04 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 7 / 24
Introduction Data Set 
Graph Visualization: Graph 05 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 8 / 24
Introduction Data Set 
Graph Visualization: Graph 06 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 9 / 24
Introduction Data Set 
Graph Visualization: Graph 07 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 10 / 24
Introduction Data Set 
Color Sequence Visualization 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 11 / 24
Algorithms Representation 
States 
• Each state can be represented as a triple t = (
; p; ) 
• 
 is the subgraph which has not been populated. 
• p is the set of all permitted choices. 
•  is a sequence of nodes which have been populated chronologically. 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 12 / 24
Algorithms Representation 
State Transition Function: Transit 
• Input: An old state (
; p; ) and n 2 p 
• Output: An new state (
′; p′; ′) 
• 
′ = 
 removing n and related edges 
• p′ = p [ neighbors of n in 
  fng 
• ′ =  :: n 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 13 / 24
Algorithms Randomized Algorithms 
Search Component Generators: A Pentomino Style 
• A search component S 2 S is a stochastic algorithm. 
• Input: t = (
; p; ), Output: One or multiple final states t1; t2; : : : ; tm 
• Before running, S would check the budget. For each final state, S compares 
the reward with the best result so far and updates the budget. 
• A search component generator 	 :  ! S 
• Given a set of parameters  2 , 	() is a search component 
• Simulate, Repeat, LookAhead, Step and Select 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 14 / 24
Algorithms Randomized Algorithms 
Simulate 
Parameters: Policy simu, mapping 
from permitted set p to 
choice n. 
Algorithm: Repeatedly sampling 
nodes according to simu 
and performs transitions 
Transit until reaching 
the final state. 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 15 / 24
Algorithms Randomized Algorithms 
Repeat 
Parameters: A positive integer N  0, 
a search component S 
Algorithm: It repeats performing S 
for N times. 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 16 / 24
Algorithms Randomized Algorithms 
LookAhead 
Parameters: A search component S 
Algorithm: For each n 2 p, it 
performs S on 
Transit(t; n). 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 17 / 24
Algorithms Randomized Algorithms 
Step 
Parameters: A search component S 
Algorithm: For each remaining steps 
until the final state, it 
performs S first. Then it 
extracts the local best 
choice nl and performs 
transition 
Transit(tstep; nl). 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 18 / 24
Algorithms Randomized Algorithms 
Select 
Parameters: A selection policy sel, a 
search component S 
Algorithm: It looks like Step. But in 
each step, it chooses node 
according to sel. 
sel: UCB-1 
C 
s(t; c): Sum of rewards,from S 
with Transit(t; c) 
n(t; c): Number of times c was 
selected in state t 
n(t): Sum of n(t; c) 
arg max 
c2p 
s(t; c) 
n(t; c) 
√ 
ln n(t) 
n(t; c) 
+ C 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 19 / 24
Algorithms Randomized Algorithms 
Compisition 
• Is = Step(Repeat(N; Simulate(random))) 
• Nmc(0) = Simulate(random) 
Nmc(l) = Step(LookAhead(Nmc(l  1))) 
• Uct(C) = Step(Repeat(N; Select(UCB-1 
C ; Simulate(random)))) 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 20 / 24
Algorithms Greedy Algorithm 
Greedy Strategy 
arg max 
c2p 
Reward(fcg [ Neighbors(c; G)) 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 21 / 24
Result 
Results of Iterative Sampling (Is) 
N set01 set02 set03 set04 set05 set06 set07 
1 11 50 1981 129 1039 439 9721 
10 16 58 2091 159 1107 473 9777 
100 19 74 2127 167 1126 483 9878 
1000 19 79 2147 167 1158 489 9938 
4000 19 84 2181 175 1158 506 10006 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 22 / 24
Result 
Result of Different Algorithms for Budget 1000 
Algorithms set01 set02 set03 set04 set05 set06 set07 
Is 19 79 2147 167 1158 489 9938 
Nmc(2) 19 79 2171 171 1152 498 9953 
Nmc(3) 18 75 2158 173 1145 503 9912 
Uct(0:3) 19 98 2165 171 1141 504 9933 
Uct(0:5) 19 98 2165 171 1141 500 9933 
Greedy 19 156 2719 219 1473 737 16118 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 23 / 24
Thank you! 
Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 24 / 24

Contenu connexe

Tendances

Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix SortBhavik Vashi
 
hospital management
hospital managementhospital management
hospital managementguestbcbbb5c
 
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)Austin Benson
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptarunsingh660
 
MITCOE 2011-12 conm-submission
MITCOE 2011-12 conm-submissionMITCOE 2011-12 conm-submission
MITCOE 2011-12 conm-submissionAshutosh Katti
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest pathsowfi
 
Analyzing the behavior of instagram with graph theories
Analyzing the behavior of instagram with graph theoriesAnalyzing the behavior of instagram with graph theories
Analyzing the behavior of instagram with graph theoriesHessam Shafiei Moqaddam
 
[論文読み]Interpretable Coun.ng for Visual Ques.on Answering
[論文読み]Interpretable Coun.ng for Visual Ques.on Answering[論文読み]Interpretable Coun.ng for Visual Ques.on Answering
[論文読み]Interpretable Coun.ng for Visual Ques.on Answeringhirono kawashima
 
Graph applications chapter
Graph applications chapterGraph applications chapter
Graph applications chapterSavit Chandra
 
sin cos & tan (Plot using MATLAB)
sin cos  & tan (Plot using MATLAB)sin cos  & tan (Plot using MATLAB)
sin cos & tan (Plot using MATLAB)shivam choubey
 
A Sweepline Algorithm for Higher Order Voronoi Diagrams
A Sweepline Algorithm for Higher Order Voronoi DiagramsA Sweepline Algorithm for Higher Order Voronoi Diagrams
A Sweepline Algorithm for Higher Order Voronoi DiagramsMaksym Zavershynskyi
 
R Bootcamp Day 3 Part 1 - Statistics in R
R Bootcamp Day 3 Part 1 - Statistics in RR Bootcamp Day 3 Part 1 - Statistics in R
R Bootcamp Day 3 Part 1 - Statistics in ROlga Scrivner
 
Ch 7 tutoring notes quadratics
Ch 7 tutoring notes quadraticsCh 7 tutoring notes quadratics
Ch 7 tutoring notes quadraticssrobbins4
 

Tendances (20)

Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix Sort
 
Radix Sort
Radix SortRadix Sort
Radix Sort
 
hospital management
hospital managementhospital management
hospital management
 
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)
Tall-and-skinny Matrix Computations in MapReduce (ICME colloquium)
 
Geometry
GeometryGeometry
Geometry
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
 
CS6491Project4
CS6491Project4CS6491Project4
CS6491Project4
 
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
 
MITCOE 2011-12 conm-submission
MITCOE 2011-12 conm-submissionMITCOE 2011-12 conm-submission
MITCOE 2011-12 conm-submission
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest path
 
Analyzing the behavior of instagram with graph theories
Analyzing the behavior of instagram with graph theoriesAnalyzing the behavior of instagram with graph theories
Analyzing the behavior of instagram with graph theories
 
Lecture24
Lecture24Lecture24
Lecture24
 
[論文読み]Interpretable Coun.ng for Visual Ques.on Answering
[論文読み]Interpretable Coun.ng for Visual Ques.on Answering[論文読み]Interpretable Coun.ng for Visual Ques.on Answering
[論文読み]Interpretable Coun.ng for Visual Ques.on Answering
 
Graph applications chapter
Graph applications chapterGraph applications chapter
Graph applications chapter
 
sin cos & tan (Plot using MATLAB)
sin cos  & tan (Plot using MATLAB)sin cos  & tan (Plot using MATLAB)
sin cos & tan (Plot using MATLAB)
 
A Sweepline Algorithm for Higher Order Voronoi Diagrams
A Sweepline Algorithm for Higher Order Voronoi DiagramsA Sweepline Algorithm for Higher Order Voronoi Diagrams
A Sweepline Algorithm for Higher Order Voronoi Diagrams
 
R Bootcamp Day 3 Part 1 - Statistics in R
R Bootcamp Day 3 Part 1 - Statistics in RR Bootcamp Day 3 Part 1 - Statistics in R
R Bootcamp Day 3 Part 1 - Statistics in R
 
RBootcam Day 2
RBootcam Day 2RBootcam Day 2
RBootcam Day 2
 
JPC#8 Foundation of Computer Science
JPC#8 Foundation of Computer ScienceJPC#8 Foundation of Computer Science
JPC#8 Foundation of Computer Science
 
Ch 7 tutoring notes quadratics
Ch 7 tutoring notes quadraticsCh 7 tutoring notes quadratics
Ch 7 tutoring notes quadratics
 

En vedette

GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSManojit Chakraborty
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applicationsmohammad alkhalil
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Darwish Ahmad
 
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Graph Coloring : Greedy Algorithm & Welsh Powell AlgorithmGraph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Graph Coloring : Greedy Algorithm & Welsh Powell AlgorithmPriyank Jain
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringSaurabh Kaushik
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in PractiseDavid Simons
 
Design and Implementation of a Procedural Content Generation Web Application ...
Design and Implementation of a Procedural Content Generation Web Application ...Design and Implementation of a Procedural Content Generation Web Application ...
Design and Implementation of a Procedural Content Generation Web Application ...Juan Quiroz
 
From minimal feedback vertex set to democracy
From minimal feedback vertex set to democracyFrom minimal feedback vertex set to democracy
From minimal feedback vertex set to democracyMike Tian-Jian Jiang
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and lifeMilan Joshi
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug designReihaneh Safavi
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theoryUmang Aggarwal
 
Time-table Scheduling
Time-table SchedulingTime-table Scheduling
Time-table SchedulingEvren E
 

En vedette (20)

GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
 
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Graph Coloring : Greedy Algorithm & Welsh Powell AlgorithmGraph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
 
graph theory
graph theory graph theory
graph theory
 
Design and Implementation of a Procedural Content Generation Web Application ...
Design and Implementation of a Procedural Content Generation Web Application ...Design and Implementation of a Procedural Content Generation Web Application ...
Design and Implementation of a Procedural Content Generation Web Application ...
 
Coloring graphs
Coloring graphsColoring graphs
Coloring graphs
 
From minimal feedback vertex set to democracy
From minimal feedback vertex set to democracyFrom minimal feedback vertex set to democracy
From minimal feedback vertex set to democracy
 
Graph coloring Algorithm
Graph coloring AlgorithmGraph coloring Algorithm
Graph coloring Algorithm
 
Graph Theory and Databases
Graph Theory and DatabasesGraph Theory and Databases
Graph Theory and Databases
 
2 Graph Theory
2 Graph Theory2 Graph Theory
2 Graph Theory
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug design
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
 
Time-table Scheduling
Time-table SchedulingTime-table Scheduling
Time-table Scheduling
 

Similaire à Algorithms for Graph Coloring Problem

Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...NAVER Engineering
 
Bidirectional graph search techniques for finding shortest path in image base...
Bidirectional graph search techniques for finding shortest path in image base...Bidirectional graph search techniques for finding shortest path in image base...
Bidirectional graph search techniques for finding shortest path in image base...Navin Kumar
 
1 chayes
1 chayes1 chayes
1 chayesYandex
 
Csci101 lect03 algorithms_i
Csci101 lect03 algorithms_iCsci101 lect03 algorithms_i
Csci101 lect03 algorithms_iElsayed Hemayed
 
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)Austin Benson
 
Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Shiang-Yun Yang
 
Pagerank (from Google)
Pagerank (from Google)Pagerank (from Google)
Pagerank (from Google)Sri Prasanna
 
Lec5 pagerank
Lec5 pagerankLec5 pagerank
Lec5 pagerankCarlos
 
Lec5 Pagerank
Lec5 PagerankLec5 Pagerank
Lec5 Pagerankmobius.cn
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...IJMIT JOURNAL
 
International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)IJMIT JOURNAL
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...IJMIT JOURNAL
 
Robust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping AlgorithmsRobust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping AlgorithmsVincenzo De Florio
 
Learning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for GraphsLearning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for Graphspione30
 

Similaire à Algorithms for Graph Coloring Problem (20)

Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
 
Bidirectional graph search techniques for finding shortest path in image base...
Bidirectional graph search techniques for finding shortest path in image base...Bidirectional graph search techniques for finding shortest path in image base...
Bidirectional graph search techniques for finding shortest path in image base...
 
Goprez sg
Goprez  sgGoprez  sg
Goprez sg
 
1 chayes
1 chayes1 chayes
1 chayes
 
Csci101 lect03 algorithms_i
Csci101 lect03 algorithms_iCsci101 lect03 algorithms_i
Csci101 lect03 algorithms_i
 
analysis.ppt
analysis.pptanalysis.ppt
analysis.ppt
 
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)
Tall-and-skinny Matrix Computations in MapReduce (ICME MR 2013)
 
Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)
 
Backtracking
BacktrackingBacktracking
Backtracking
 
Pagerank (from Google)
Pagerank (from Google)Pagerank (from Google)
Pagerank (from Google)
 
Graph Coloring using Peer-to-Peer Networks
Graph Coloring using Peer-to-Peer NetworksGraph Coloring using Peer-to-Peer Networks
Graph Coloring using Peer-to-Peer Networks
 
Lec5 Pagerank
Lec5 PagerankLec5 Pagerank
Lec5 Pagerank
 
Lec5 pagerank
Lec5 pagerankLec5 pagerank
Lec5 pagerank
 
Lec5 Pagerank
Lec5 PagerankLec5 Pagerank
Lec5 Pagerank
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...
 
International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...
 
Robust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping AlgorithmsRobust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping Algorithms
 
Learning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for GraphsLearning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for Graphs
 

Dernier

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Dernier (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

Algorithms for Graph Coloring Problem

  • 1. Algorithms for Graph Coloring Problem Wang Shengyi National University of Singapore November 6, 2014 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 1 / 24
  • 2. Introduction Problem Description Problem Description • For a graph G = (V; E) and a color sequence c = (c0; c1; : : : ; cn), firstly choose a node v 2 V and populate with c0 • Populate the rest of G in order of the rest of color sequence c such that only new nodes connected to a previously populated node may be populated. • Each populated G can be called a configuration, which can be seen as a function f mapping node to color. We can calculate a reward value for such a configuration f by the following formula: H = Σ All filled (i;j)2E 1 (f(i); f(j)) where (x; y) = { 0 x̸= y 1 x = y • For any G and c, develop an algorithm to generate a configuration that gives the maximum reward. Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 2 / 24
  • 3. Introduction Data Set Data Set Set Number of Vertices Number of Edges Length of Color Sequences 01 10 29 10 02 153 5533 20 03 153 5533 130 04 590 658 400 05 2969 3372 4000 06 483 1358 400 07 11748 34716 9000 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 3 / 24
  • 4. Introduction Data Set Data Set We can explore more… Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 4 / 24
  • 5. Introduction Data Set Graph Visualization: Graph 01 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 5 / 24
  • 6. Introduction Data Set Graph Visualization: Graph 02 03 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 6 / 24
  • 7. Introduction Data Set Graph Visualization: Graph 04 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 7 / 24
  • 8. Introduction Data Set Graph Visualization: Graph 05 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 8 / 24
  • 9. Introduction Data Set Graph Visualization: Graph 06 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 9 / 24
  • 10. Introduction Data Set Graph Visualization: Graph 07 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 10 / 24
  • 11. Introduction Data Set Color Sequence Visualization Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 11 / 24
  • 12. Algorithms Representation States • Each state can be represented as a triple t = ( ; p; ) • is the subgraph which has not been populated. • p is the set of all permitted choices. • is a sequence of nodes which have been populated chronologically. Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 12 / 24
  • 13. Algorithms Representation State Transition Function: Transit • Input: An old state ( ; p; ) and n 2 p • Output: An new state ( ′; p′; ′) • ′ = removing n and related edges • p′ = p [ neighbors of n in fng • ′ = :: n Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 13 / 24
  • 14. Algorithms Randomized Algorithms Search Component Generators: A Pentomino Style • A search component S 2 S is a stochastic algorithm. • Input: t = ( ; p; ), Output: One or multiple final states t1; t2; : : : ; tm • Before running, S would check the budget. For each final state, S compares the reward with the best result so far and updates the budget. • A search component generator : ! S • Given a set of parameters 2 , () is a search component • Simulate, Repeat, LookAhead, Step and Select Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 14 / 24
  • 15. Algorithms Randomized Algorithms Simulate Parameters: Policy simu, mapping from permitted set p to choice n. Algorithm: Repeatedly sampling nodes according to simu and performs transitions Transit until reaching the final state. Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 15 / 24
  • 16. Algorithms Randomized Algorithms Repeat Parameters: A positive integer N 0, a search component S Algorithm: It repeats performing S for N times. Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 16 / 24
  • 17. Algorithms Randomized Algorithms LookAhead Parameters: A search component S Algorithm: For each n 2 p, it performs S on Transit(t; n). Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 17 / 24
  • 18. Algorithms Randomized Algorithms Step Parameters: A search component S Algorithm: For each remaining steps until the final state, it performs S first. Then it extracts the local best choice nl and performs transition Transit(tstep; nl). Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 18 / 24
  • 19. Algorithms Randomized Algorithms Select Parameters: A selection policy sel, a search component S Algorithm: It looks like Step. But in each step, it chooses node according to sel. sel: UCB-1 C s(t; c): Sum of rewards,from S with Transit(t; c) n(t; c): Number of times c was selected in state t n(t): Sum of n(t; c) arg max c2p s(t; c) n(t; c) √ ln n(t) n(t; c) + C Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 19 / 24
  • 20. Algorithms Randomized Algorithms Compisition • Is = Step(Repeat(N; Simulate(random))) • Nmc(0) = Simulate(random) Nmc(l) = Step(LookAhead(Nmc(l 1))) • Uct(C) = Step(Repeat(N; Select(UCB-1 C ; Simulate(random)))) Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 20 / 24
  • 21. Algorithms Greedy Algorithm Greedy Strategy arg max c2p Reward(fcg [ Neighbors(c; G)) Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 21 / 24
  • 22. Result Results of Iterative Sampling (Is) N set01 set02 set03 set04 set05 set06 set07 1 11 50 1981 129 1039 439 9721 10 16 58 2091 159 1107 473 9777 100 19 74 2127 167 1126 483 9878 1000 19 79 2147 167 1158 489 9938 4000 19 84 2181 175 1158 506 10006 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 22 / 24
  • 23. Result Result of Different Algorithms for Budget 1000 Algorithms set01 set02 set03 set04 set05 set06 set07 Is 19 79 2147 167 1158 489 9938 Nmc(2) 19 79 2171 171 1152 498 9953 Nmc(3) 18 75 2158 173 1145 503 9912 Uct(0:3) 19 98 2165 171 1141 504 9933 Uct(0:5) 19 98 2165 171 1141 500 9933 Greedy 19 156 2719 219 1473 737 16118 Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 23 / 24
  • 24. Thank you! Wang Shengyi (NUS) Algorithms for Graph Coloring Problem November 6, 2014 24 / 24