SlideShare a Scribd company logo
Group no: 09 
NAME :Tarafder,Md. Shakibuzzaman Id:13-23384-1 
Feroz,Adnan Ahmed 13-22916-1
In graph theory, graph coloring is a 
special case of graph labeling. 
It is an assignment of labels traditionally 
called "colors" to elements of a graph 
subject to certain constraints.
Graph Coloring is an assignment of colors (or 
any distinct marks) to the vertices of a graph. 
Strictly speaking, a coloring is a proper coloring 
if no two adjacent vertices have the same color.
Coloring theory started with the problem of 
coloring the countries of a map in such a way 
that no two countries that have a common 
border receive the same color. 
If we denote the countries by points in the plane 
and connect each pair of points that correspond 
to countries with a common border by a curve, 
we obtain a planar graph.
Graph coloring Algorithm
Graph coloring Algorithm
Graphs are used to depict ”what is in conflict 
with what”, and colors are used to denote the 
state of a vertex. 
So, more precisely, coloring theory is the 
theory of ”partitioning the sets having 
Internal unreconcilable conflicts.
Vertex Coloring: It is a way of coloring the vertices of a 
graph such that no two adjacent vertices share the 
same color. 
Edge Coloring: An edge coloring assigns a color to 
each edge so that no two adjacent edges share the 
same color.
Face Coloring : A face coloring of a planar 
graph assigns a color to each face or region 
so that no two faces that share a boundary 
have the same color.
Chromatic Number: The chromatic number 
of a graph is the minimum number of 
colors in a proper coloring of that graph. If 
chromatic number is r then the graph is r-chromatic. 
Chromatic number: 4
Polynomial which gives the number of ways of proper coloring 
a graph using a given number of colors 
Ci = no. of ways to properly color a graph using exactly i 
colors 
 λ = total no of colors 
 λ C= selecting I colors out of λ colors 
i  ΣCλ C= total number of ways a graph canbe properly 
i 
i colored using λ or lesser no. of colors 
Pn(λ) of G = ΣCi 
λ Ci
 P4 (λ) of G = C1(λ) + C2(λ) (λ-1)/2! + C3(λ) (λ-1) (λ-2) /3! + C4(λ) (λ-1) (λ-2) (λ- 3)/4!
Let G be a simple graph, and let PG(k) be the number of ways 
of coloring the verticles of G with k colors in such a way that 
no two adjacent vertices are assigned the same color. The 
function PG(k) is called the chromatic polynomial of G. 
As an example, consider complete graph K3 as shown in the 
following figure.
Then the top vertex can be assigned any of the k colors, the 
left vertex can be assigned any k-1 colors, and right vertex 
can be assigned any of the k-2 colors. 
The chromatic polynomial of K3 is therefore K(K -1)(K -2). 
The extension of this immediately gives us the following 
result. 
If G is the complete graph Kn, then Pn(K) = K(K - 1)(K 
- 2) . . . (K - n +1).
 Every non-trivial graph is atleast 2-chromatic. 
 If a graph has a triangle in it , then it is atleast 3-chromatic. 
 Chromatic Polynomial for a tree : 
Pn(λ) of Tn = (λ) (λ-1)n-1 (tree is 2-chromatic) 
This can be proved by Mathematical Induction. 
 Tree is 2-chromatic.
Theorem - the vertices of every finite planar 
graph can be coloured properly with five 
colours. 
Proof-the proof is based on induction on 
vertices of a planar graph, since the vertices 
of all planar graph G with 1,2,3,4,5 can be 
properly coloured by 5 or less colours. 
Let us assume that every planar graph with 
n-1 vertices is properly colourable with 5 
colours or fewer. So we have to show that 
there is no graph of n-vertices which require 
more than 5-colours for proper colouring.
Graph coloring Algorithm
Scheduling 
Mobile radio frequency assignment 
Sudoku 
Pattern matching 
Register Allocation
Scheduling 
 Vertex coloring models to a number of scheduling problems .In the 
cleanest form, a given set of jobs need to be assigned to time slots, 
each job requires one such slot. Jobs can be scheduled in any order, 
but pairs of jobs may be in conflict in the sense that they may not be 
assigned to the same time slot, for example because they both rely on 
a shared resource. The corresponding graph contains a vertex for every 
job and an edge for every conflicting pair of jobs. The chromatic number 
of the graph is exactly the minimum make span, the optimal time to 
finish all jobs without conflicts.
 When frequencies are assigned to towers, 
frequencies assigned to all towers at the same 
location must be different. How to assign frequencies 
with this constraint? What is the minimum number of 
frequencies needed? This problem is also an instance 
of graph coloring problem where every tower 
represents a vertex and an edge between two towers 
represents that they are in range of each other.
 GSM (Global System for Mobile Communications, 
originally Group Special Mobile), was created in 1982 to 
provide a standard for a mobile telephone system.. Today, 
GSM is the most popular standard for mobile phones in the 
world, used by over 2 billion people across more than 212 
countries. 
GSM is a cellular network with its entire geographical range 
divided into hexagonal cells. 
Each cell has a communication tower which connects with 
mobile phones within the cell.
Graph coloring Algorithm
 All mobile phones connect to the GSM network by 
searching for cells in the immediate vicinity. 
GSM networks operate in only four different 
frequency ranges. The reason why only four different 
frequencies suffice is clear: the map of the cellular 
regions can be properly colored by using only four 
different colors! So, the vertex coloring algorithm may 
be used for assigning at most four different 
frequencies for any GSM mobile phone network
 Solving Sudoku puzzles can be expressed as a graph coloring problem. Consider the 
4 × 4 = 22 × 22 case. The aim of the puzzle in its standard form is to construct a proper 
9-coloring of a particular graph, given a partial 4-coloring. The graph in question has 
16 vertices, one vertex for each cell of the grid. The vertices can be labeled with the 
ordered pairs (x, y), where x and y are integers between 1 and 4. In this case, two 
distinct vertices labeled by (x, y) and (x′, y′) are joined by an edge if and only if: 
 x = x′ (same column) or, 
 y = y′ (same row) or, 
 ⌈ x/2 ⌉ = ⌈ x′/2 ⌉ and ⌈ y/2 ⌉ = ⌈ y′/2 ⌉ (same 2 × 2 cell) 
 The puzzle is then completed by assigning an integer between 1 and 4 to each vertex, 
in such a way that vertices that are joined by an edge do not have the same integer 
assigned to them
Graph coloring Algorithm

More Related Content

What's hot (20)

PPT
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Priyank Jain
 
PPT
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
PPTX
Graph coloring
Rashika Ahuja
 
PPTX
Graph coloring problem(DAA).pptx
Home
 
PPT
Dfa basics
ankitamakin
 
PPTX
Dbms schemas for decision support
rameswara reddy venkat
 
PPTX
Congestion control
Krishna Ranjan
 
PDF
UNIT-V.pdf daa unit material 5 th unit ppt
JyoReddy9
 
PPTX
data structures- back tracking
Abinaya B
 
PPTX
sum of subset problem using Backtracking
Abhishek Singh
 
PPT
5.1 greedy
Krish_ver2
 
PPTX
The n Queen Problem
Sukrit Gupta
 
PPTX
Knowledge based agents
Dr. C.V. Suresh Babu
 
PPTX
Water jug problem ai part 6
Kirti Verma
 
PPTX
DAA-Floyd Warshall Algorithm.pptx
ArbabMaalik
 
PPTX
Turing machine-TOC
Maulik Togadiya
 
PPTX
Daa unit 1
Abhimanyu Mishra
 
PDF
The Design and Analysis of Algorithms.pdf
Saqib Raza
 
PPTX
NLP_KASHK:Minimum Edit Distance
Hemantha Kulathilake
 
PPTX
Daa unit 5
Abhimanyu Mishra
 
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Priyank Jain
 
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
Graph coloring
Rashika Ahuja
 
Graph coloring problem(DAA).pptx
Home
 
Dfa basics
ankitamakin
 
Dbms schemas for decision support
rameswara reddy venkat
 
Congestion control
Krishna Ranjan
 
UNIT-V.pdf daa unit material 5 th unit ppt
JyoReddy9
 
data structures- back tracking
Abinaya B
 
sum of subset problem using Backtracking
Abhishek Singh
 
5.1 greedy
Krish_ver2
 
The n Queen Problem
Sukrit Gupta
 
Knowledge based agents
Dr. C.V. Suresh Babu
 
Water jug problem ai part 6
Kirti Verma
 
DAA-Floyd Warshall Algorithm.pptx
ArbabMaalik
 
Turing machine-TOC
Maulik Togadiya
 
Daa unit 1
Abhimanyu Mishra
 
The Design and Analysis of Algorithms.pdf
Saqib Raza
 
NLP_KASHK:Minimum Edit Distance
Hemantha Kulathilake
 
Daa unit 5
Abhimanyu Mishra
 

Viewers also liked (20)

PDF
Chromatic graph theory
jotasmall
 
PDF
Graph theory in Practise
David Simons
 
PDF
Algorithms for Graph Coloring Problem
Shengyi Wang
 
PPTX
Graph coloring algorithm
Sanjana Urmy
 
PPT
Critical Thinking Advantages And Disadvantages Krizia GóMez
Logos Academy
 
PPT
Intro to Social Network AnalysisSession
Sheila MacNeill
 
PPTX
Class scheduling
Niaz Mohammad
 
PPT
3 Total Internal Reflection
Hamsiah Dahalan
 
PPTX
Application in graph theory
sulaiman alfahad
 
PDF
Graph
ssnetvnr
 
PPTX
Functional sudoku
Cesar Tron-Lozai
 
PPTX
final presentation of sudoku solver project
Arafat Bin Reza
 
PPTX
Graph theory and life
Milan Joshi
 
PPTX
Graph theory 1
Tech_MX
 
PPTX
Application of graph theory in drug design
Reihaneh Safavi
 
PPT
Applications of graphs
Tech_MX
 
PPTX
Football and graph theory
Umang Aggarwal
 
PDF
Graph theory
Kumar
 
PDF
CS6702 graph theory and applications notes pdf book
appasami
 
PPTX
Interesting applications of graph theory
Tech_MX
 
Chromatic graph theory
jotasmall
 
Graph theory in Practise
David Simons
 
Algorithms for Graph Coloring Problem
Shengyi Wang
 
Graph coloring algorithm
Sanjana Urmy
 
Critical Thinking Advantages And Disadvantages Krizia GóMez
Logos Academy
 
Intro to Social Network AnalysisSession
Sheila MacNeill
 
Class scheduling
Niaz Mohammad
 
3 Total Internal Reflection
Hamsiah Dahalan
 
Application in graph theory
sulaiman alfahad
 
Graph
ssnetvnr
 
Functional sudoku
Cesar Tron-Lozai
 
final presentation of sudoku solver project
Arafat Bin Reza
 
Graph theory and life
Milan Joshi
 
Graph theory 1
Tech_MX
 
Application of graph theory in drug design
Reihaneh Safavi
 
Applications of graphs
Tech_MX
 
Football and graph theory
Umang Aggarwal
 
Graph theory
Kumar
 
CS6702 graph theory and applications notes pdf book
appasami
 
Interesting applications of graph theory
Tech_MX
 
Ad

Similar to Graph coloring Algorithm (20)

PPTX
Graph Coloring
Dr. Abdul Ahad Abro
 
PPT
CS6702 Unit III coloring ppt
Abilaasha Ganesan
 
PDF
Graph Coloring and Its Implementation
IJARIIT
 
PPTX
Module 5 - GraphColoring hoeyo colr grafh.pptx
lomic31750
 
PPTX
Module 5 - GraphColo blhyhfhuufring.pptx
lomic31750
 
PDF
Greedy Edge Colouring for Lower Bound of an Achromatic Index of Simple Graphs
inventionjournals
 
PPTX
Bipartite graph
Arafat Hossan
 
PDF
Distributed coloring with O(sqrt. log n) bits
Subhajit Sahu
 
PDF
Abeer graph
Abeer Naskar
 
PPTX
graph coloring back tracking and applications in realA time.pptx
jhansirani64003
 
PDF
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
cseiitgn
 
PDF
Extended online graph edge coloring
ijcsa
 
PDF
Graph Dynamical System on Graph Colouring
Clyde Shen
 
PPTX
List Coloring.pptx
amitkrinbox
 
PPTX
Chromatic Number of a graph in Graph Theory
babysree726
 
PDF
SATISFIABILITY METHODS FOR COLOURING GRAPHS
cscpconf
 
PDF
A study-of-vertex-edge-coloring-techniques-with-application
Ijcem Journal
 
PDF
transplantation-isospectral-poster
Feynman Liang
 
PPT
Multimedia color in image and video
Mazin Alwaaly
 
PDF
05 Scalar Visualization
Valerii Klymchuk
 
Graph Coloring
Dr. Abdul Ahad Abro
 
CS6702 Unit III coloring ppt
Abilaasha Ganesan
 
Graph Coloring and Its Implementation
IJARIIT
 
Module 5 - GraphColoring hoeyo colr grafh.pptx
lomic31750
 
Module 5 - GraphColo blhyhfhuufring.pptx
lomic31750
 
Greedy Edge Colouring for Lower Bound of an Achromatic Index of Simple Graphs
inventionjournals
 
Bipartite graph
Arafat Hossan
 
Distributed coloring with O(sqrt. log n) bits
Subhajit Sahu
 
Abeer graph
Abeer Naskar
 
graph coloring back tracking and applications in realA time.pptx
jhansirani64003
 
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
cseiitgn
 
Extended online graph edge coloring
ijcsa
 
Graph Dynamical System on Graph Colouring
Clyde Shen
 
List Coloring.pptx
amitkrinbox
 
Chromatic Number of a graph in Graph Theory
babysree726
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
cscpconf
 
A study-of-vertex-edge-coloring-techniques-with-application
Ijcem Journal
 
transplantation-isospectral-poster
Feynman Liang
 
Multimedia color in image and video
Mazin Alwaaly
 
05 Scalar Visualization
Valerii Klymchuk
 
Ad

Recently uploaded (20)

PPTX
Different formulation of fungicides.pptx
MrRABIRANJAN
 
PPTX
Microbiome_Engineering_Poster_Fixed.pptx
SupriyaPolisetty1
 
PDF
NRRM 330 Dynamic Equlibrium Presentation
RowanSales
 
PDF
soil and environmental microbiology.pdf
Divyaprabha67
 
DOCX
Critical Book Review (CBR) - "Hate Speech: Linguistic Perspectives"
Sahmiral Amri Rajagukguk
 
PDF
Unit-3 ppt.pdf organic chemistry unit 3 heterocyclic
visionshukla007
 
PPTX
Qualification of DISSOLUTION TEST APPARATUS.pptx
shrutipandit17
 
PPTX
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
PPTX
Bacillus thuringiensis.crops & golden rice
priyadharshini87125
 
PDF
The ALMA-CRISTAL survey: Gas, dust, and stars in star-forming galaxies when t...
Sérgio Sacani
 
PPT
Experimental Design by Cary Willard v3.ppt
MohammadRezaNirooman1
 
PDF
Plant growth promoting bacterial non symbiotic
psuvethapalani
 
PDF
2025-06-10 TWDB Agency Updates & Legislative Outcomes
tagdpa
 
PPTX
abdominal compartment syndrome presentation and treatment.pptx
LakshmiMounicaGrandh
 
PPTX
LESSON 2 PSYCHOSOCIAL DEVELOPMENT.pptx L
JeanCarolColico1
 
PDF
Service innovation with AI: Transformation of value proposition and market se...
Selcen Ozturkcan
 
PDF
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
PDF
Pharmakon of algorithmic alchemy: Marketing in the age of AI
Selcen Ozturkcan
 
PPTX
Q1_Science 8_Week3-Day 1.pptx science lesson
AizaRazonado
 
PDF
A High-Caliber View of the Bullet Cluster through JWST Strong and Weak Lensin...
Sérgio Sacani
 
Different formulation of fungicides.pptx
MrRABIRANJAN
 
Microbiome_Engineering_Poster_Fixed.pptx
SupriyaPolisetty1
 
NRRM 330 Dynamic Equlibrium Presentation
RowanSales
 
soil and environmental microbiology.pdf
Divyaprabha67
 
Critical Book Review (CBR) - "Hate Speech: Linguistic Perspectives"
Sahmiral Amri Rajagukguk
 
Unit-3 ppt.pdf organic chemistry unit 3 heterocyclic
visionshukla007
 
Qualification of DISSOLUTION TEST APPARATUS.pptx
shrutipandit17
 
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
Bacillus thuringiensis.crops & golden rice
priyadharshini87125
 
The ALMA-CRISTAL survey: Gas, dust, and stars in star-forming galaxies when t...
Sérgio Sacani
 
Experimental Design by Cary Willard v3.ppt
MohammadRezaNirooman1
 
Plant growth promoting bacterial non symbiotic
psuvethapalani
 
2025-06-10 TWDB Agency Updates & Legislative Outcomes
tagdpa
 
abdominal compartment syndrome presentation and treatment.pptx
LakshmiMounicaGrandh
 
LESSON 2 PSYCHOSOCIAL DEVELOPMENT.pptx L
JeanCarolColico1
 
Service innovation with AI: Transformation of value proposition and market se...
Selcen Ozturkcan
 
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
Pharmakon of algorithmic alchemy: Marketing in the age of AI
Selcen Ozturkcan
 
Q1_Science 8_Week3-Day 1.pptx science lesson
AizaRazonado
 
A High-Caliber View of the Bullet Cluster through JWST Strong and Weak Lensin...
Sérgio Sacani
 

Graph coloring Algorithm

  • 1. Group no: 09 NAME :Tarafder,Md. Shakibuzzaman Id:13-23384-1 Feroz,Adnan Ahmed 13-22916-1
  • 2. In graph theory, graph coloring is a special case of graph labeling. It is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints.
  • 3. Graph Coloring is an assignment of colors (or any distinct marks) to the vertices of a graph. Strictly speaking, a coloring is a proper coloring if no two adjacent vertices have the same color.
  • 4. Coloring theory started with the problem of coloring the countries of a map in such a way that no two countries that have a common border receive the same color. If we denote the countries by points in the plane and connect each pair of points that correspond to countries with a common border by a curve, we obtain a planar graph.
  • 7. Graphs are used to depict ”what is in conflict with what”, and colors are used to denote the state of a vertex. So, more precisely, coloring theory is the theory of ”partitioning the sets having Internal unreconcilable conflicts.
  • 8. Vertex Coloring: It is a way of coloring the vertices of a graph such that no two adjacent vertices share the same color. Edge Coloring: An edge coloring assigns a color to each edge so that no two adjacent edges share the same color.
  • 9. Face Coloring : A face coloring of a planar graph assigns a color to each face or region so that no two faces that share a boundary have the same color.
  • 10. Chromatic Number: The chromatic number of a graph is the minimum number of colors in a proper coloring of that graph. If chromatic number is r then the graph is r-chromatic. Chromatic number: 4
  • 11. Polynomial which gives the number of ways of proper coloring a graph using a given number of colors Ci = no. of ways to properly color a graph using exactly i colors  λ = total no of colors  λ C= selecting I colors out of λ colors i  ΣCλ C= total number of ways a graph canbe properly i i colored using λ or lesser no. of colors Pn(λ) of G = ΣCi λ Ci
  • 12.  P4 (λ) of G = C1(λ) + C2(λ) (λ-1)/2! + C3(λ) (λ-1) (λ-2) /3! + C4(λ) (λ-1) (λ-2) (λ- 3)/4!
  • 13. Let G be a simple graph, and let PG(k) be the number of ways of coloring the verticles of G with k colors in such a way that no two adjacent vertices are assigned the same color. The function PG(k) is called the chromatic polynomial of G. As an example, consider complete graph K3 as shown in the following figure.
  • 14. Then the top vertex can be assigned any of the k colors, the left vertex can be assigned any k-1 colors, and right vertex can be assigned any of the k-2 colors. The chromatic polynomial of K3 is therefore K(K -1)(K -2). The extension of this immediately gives us the following result. If G is the complete graph Kn, then Pn(K) = K(K - 1)(K - 2) . . . (K - n +1).
  • 15.  Every non-trivial graph is atleast 2-chromatic.  If a graph has a triangle in it , then it is atleast 3-chromatic.  Chromatic Polynomial for a tree : Pn(λ) of Tn = (λ) (λ-1)n-1 (tree is 2-chromatic) This can be proved by Mathematical Induction.  Tree is 2-chromatic.
  • 16. Theorem - the vertices of every finite planar graph can be coloured properly with five colours. Proof-the proof is based on induction on vertices of a planar graph, since the vertices of all planar graph G with 1,2,3,4,5 can be properly coloured by 5 or less colours. Let us assume that every planar graph with n-1 vertices is properly colourable with 5 colours or fewer. So we have to show that there is no graph of n-vertices which require more than 5-colours for proper colouring.
  • 18. Scheduling Mobile radio frequency assignment Sudoku Pattern matching Register Allocation
  • 19. Scheduling  Vertex coloring models to a number of scheduling problems .In the cleanest form, a given set of jobs need to be assigned to time slots, each job requires one such slot. Jobs can be scheduled in any order, but pairs of jobs may be in conflict in the sense that they may not be assigned to the same time slot, for example because they both rely on a shared resource. The corresponding graph contains a vertex for every job and an edge for every conflicting pair of jobs. The chromatic number of the graph is exactly the minimum make span, the optimal time to finish all jobs without conflicts.
  • 20.  When frequencies are assigned to towers, frequencies assigned to all towers at the same location must be different. How to assign frequencies with this constraint? What is the minimum number of frequencies needed? This problem is also an instance of graph coloring problem where every tower represents a vertex and an edge between two towers represents that they are in range of each other.
  • 21.  GSM (Global System for Mobile Communications, originally Group Special Mobile), was created in 1982 to provide a standard for a mobile telephone system.. Today, GSM is the most popular standard for mobile phones in the world, used by over 2 billion people across more than 212 countries. GSM is a cellular network with its entire geographical range divided into hexagonal cells. Each cell has a communication tower which connects with mobile phones within the cell.
  • 23.  All mobile phones connect to the GSM network by searching for cells in the immediate vicinity. GSM networks operate in only four different frequency ranges. The reason why only four different frequencies suffice is clear: the map of the cellular regions can be properly colored by using only four different colors! So, the vertex coloring algorithm may be used for assigning at most four different frequencies for any GSM mobile phone network
  • 24.  Solving Sudoku puzzles can be expressed as a graph coloring problem. Consider the 4 × 4 = 22 × 22 case. The aim of the puzzle in its standard form is to construct a proper 9-coloring of a particular graph, given a partial 4-coloring. The graph in question has 16 vertices, one vertex for each cell of the grid. The vertices can be labeled with the ordered pairs (x, y), where x and y are integers between 1 and 4. In this case, two distinct vertices labeled by (x, y) and (x′, y′) are joined by an edge if and only if:  x = x′ (same column) or,  y = y′ (same row) or,  ⌈ x/2 ⌉ = ⌈ x′/2 ⌉ and ⌈ y/2 ⌉ = ⌈ y′/2 ⌉ (same 2 × 2 cell)  The puzzle is then completed by assigning an integer between 1 and 4 to each vertex, in such a way that vertices that are joined by an edge do not have the same integer assigned to them