SlideShare a Scribd company logo
1 of 24
Download to read offline
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

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

Recently uploaded

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
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, ...apidays
 
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...DianaGray10
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
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 businesspanagenda
 
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 SavingEdi Saputra
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Recently uploaded (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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, ...
 
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...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
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
 
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
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

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