SlideShare a Scribd company logo
2
Most read
4
Most read
9
Most read
Mrs.G.Chandraprabha,M.Sc.,M.Phil.,
Assistant Professor
Department of IT
V.V.Vanniaperumal College for Women
Virudhunagar
Graph Coloring problem
Using Backtracking
 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.
SGVf )(:
 Definition: A graph is planar if it can be drawn in a plane
without edge-crossings.
 The four color theorem: For every planar graph, the
chromatic number is ≤ 4.
 The four color theorem states that any planar map can
be colored with at most four colors.
 In graph terminology, this means that using at most
four colors, any planar graph can have its nodes colored
such that no two adjacent nodes have the same color.
 Four-color conjecture – Francis Guthrie, 1852 (F.G.)
 Many incomplete proofs (Kempe).
 5-color theorem proved in 1890 (Heawood)
 4-color theorem finally proved in 1977 (Appel, Haken)
◦ First major computer-based proof
 A vertex coloring is an assignment of labels or colors
to each vertex of a graph such that no edge connects
two identically colored vertices
 Similar to vertex coloring, except edges are color.
 Adjacent edges have different colors.
 Every edge-coloring problem can be transformed into a
vertex-coloring problem
 Coloring the edges of graph G is the same as coloring
the vertices in L(G)
 Not every vertex-coloring problem can be transformed
to an edge-coloring problem
 Every graph has a line graph, but not every graph is a
line graph of some other graph
 K-Coloring
◦ A k-coloring of a graph G is a mapping of V(G) onto
the integers 1..k such that adjacent vertices map into
different integers.
◦ A k-coloring partitions V(G) into k disjoint subsets
such that vertices from different subsets have
different colors.
 K-colorable
◦ A graph G is k-colorable if it has a k-coloring.
 Chromatic Number
◦ The smallest integer k for which G is k-colorable is
called the chromatic number of G, is denoted by the
χ(G).
The idea is to assign colors one by one to different
vertices, starting from the vertex 0. Before assigning a
color, we check for safety by considering already
assigned colors to the adjacent vertices.
If we find a color assignment which is safe, we mark
the color assignment as part of solution.
If we do not a find color due to clashes then we
backtrack and return false.
Backtracking Algorithm
NP: the class of decision problems that are solvable in
polynomial time on a nondeterministic machine (or with a
nondeterministic algorithm)
 (A deterministic computer is what we know)
 A nondeterministic computer is one that can “guess” the right
answer or solution think of a nondeterministic computer as a
parallel machine that can freely spawn an infinite number of
processes
 Thus NP can also be thought of as the class of problems
whose solutions can be verified in polynomial time
 Note that NP stands for “Nondeterministic Polynomial-time”
 Fractional Knapsack
 Sorting
 Others?
◦ Graph Coloring
◦ Satisfiability (SAT)
 the problem of deciding whether a given
Boolean formula is satisfiable.
 Many problems can be formulated as a graph coloring
problem including Time Tabling, Scheduling, Register
Allocation, Channel Assignment.
 A lot of research has been done in this area so much is
already known about the problem space.
Thank You

More Related Content

PPTX
Graph coloring using backtracking
PPTX
Graph coloring
PPT
Graph colouring
PPTX
Graph coloring
PPT
Introduction to Design Algorithm And Analysis.ppt
PPTX
Graph coloring problem(DAA).pptx
PPTX
knapsack problem
PPTX
Branch and Bound.pptx
Graph coloring using backtracking
Graph coloring
Graph colouring
Graph coloring
Introduction to Design Algorithm And Analysis.ppt
Graph coloring problem(DAA).pptx
knapsack problem
Branch and Bound.pptx

What's hot (20)

PPTX
The n Queen Problem
PPTX
Backtracking
PPTX
Hamiltonian path
PPT
Coloring graphs
PPTX
Dijkstra’S Algorithm
PPTX
daa-unit-3-greedy method
PPTX
Strassen's matrix multiplication
PPTX
sum of subset problem using Backtracking
PPTX
Dijkstra's algorithm presentation
PPT
Backtracking
PPT
BackTracking Algorithm: Technique and Examples
PPT
DESIGN AND ANALYSIS OF ALGORITHMS
PPT
GRAPH COLORING AND ITS APPLICATIONS
PPT
Sum of subsets problem by backtracking 
PPT
Greedy Algorihm
PPTX
Dijkstra s algorithm
PPTX
Single source Shortest path algorithm with example
PPTX
Greedy Algorithm - Knapsack Problem
PPT
Graph coloring
PPTX
Topological Sorting
The n Queen Problem
Backtracking
Hamiltonian path
Coloring graphs
Dijkstra’S Algorithm
daa-unit-3-greedy method
Strassen's matrix multiplication
sum of subset problem using Backtracking
Dijkstra's algorithm presentation
Backtracking
BackTracking Algorithm: Technique and Examples
DESIGN AND ANALYSIS OF ALGORITHMS
GRAPH COLORING AND ITS APPLICATIONS
Sum of subsets problem by backtracking 
Greedy Algorihm
Dijkstra s algorithm
Single source Shortest path algorithm with example
Greedy Algorithm - Knapsack Problem
Graph coloring
Topological Sorting
Ad

Similar to Graph coloring problem (20)

PPTX
graph coloring back tracking and applications in realA time.pptx
PPT
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
PPTX
Module 5 - GraphColoring hoeyo colr grafh.pptx
PPTX
Module 5 - GraphColo blhyhfhuufring.pptx
PDF
Graph Coloring
PPTX
Graph coloring Algorithm
PDF
A study-of-vertex-edge-coloring-techniques-with-application
PDF
Graph Coloring and Its Implementation
PPT
Exact coloring of real-life graphs is easy
PPT
Farhna shaikh webinar_graphcoloring
PPTX
Graph coloring and_applications
PDF
An analysis between different algorithms for the graph vertex coloring problem
PPTX
Graph Coloring
PPTX
Chapter Five remadenChapter 3&5event it theory programming.pptx.pptx
PDF
An FPT Algorithm for Maximum Edge Coloring
PPTX
On sum edge coloring of regular, bipartite and split graphs
PPTX
Graphic colouring
PPTX
Graph Theory
PPT
Graph coloring with back tracking aoa.ppt
graph coloring back tracking and applications in realA time.pptx
Graph Coloring : Greedy Algorithm & Welsh Powell Algorithm
Module 5 - GraphColoring hoeyo colr grafh.pptx
Module 5 - GraphColo blhyhfhuufring.pptx
Graph Coloring
Graph coloring Algorithm
A study-of-vertex-edge-coloring-techniques-with-application
Graph Coloring and Its Implementation
Exact coloring of real-life graphs is easy
Farhna shaikh webinar_graphcoloring
Graph coloring and_applications
An analysis between different algorithms for the graph vertex coloring problem
Graph Coloring
Chapter Five remadenChapter 3&5event it theory programming.pptx.pptx
An FPT Algorithm for Maximum Edge Coloring
On sum edge coloring of regular, bipartite and split graphs
Graphic colouring
Graph Theory
Graph coloring with back tracking aoa.ppt
Ad

More from V.V.Vanniaperumal College for Women (20)

PPTX
inheritance in Java with sample program.pptx
PPTX
System testing in software engineering.pptx
PPTX
static analysis and unit testing in SE.pptx
PPTX
software cost estimation techniques ppt.pptx
PPTX
Software cost factors in software engineering.pptx
PPTX
Planning the development Process in SE.pptx
PPTX
Quality and Productivity Factors in Software Engineering
PPTX
Some Size factors in software engineering
PPTX
PPTX
PPTX
Data_Transfer&Manupulation Instructions.pptx
PPTX
PPTX
PPTX
Instruction Codes.pptx
PPTX
PPTX
Constructors in JAva.pptx
PPTX
PPTX
IS-Delibrate software attacks.pptx
inheritance in Java with sample program.pptx
System testing in software engineering.pptx
static analysis and unit testing in SE.pptx
software cost estimation techniques ppt.pptx
Software cost factors in software engineering.pptx
Planning the development Process in SE.pptx
Quality and Productivity Factors in Software Engineering
Some Size factors in software engineering
Data_Transfer&Manupulation Instructions.pptx
Instruction Codes.pptx
Constructors in JAva.pptx
IS-Delibrate software attacks.pptx

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
1. Introduction to Computer Programming.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
A Presentation on Artificial Intelligence
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Mushroom cultivation and it's methods.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Encapsulation_ Review paper, used for researhc scholars
Spectroscopy.pptx food analysis technology
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
1. Introduction to Computer Programming.pptx
Machine learning based COVID-19 study performance prediction
SOPHOS-XG Firewall Administrator PPT.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A Presentation on Artificial Intelligence
Per capita expenditure prediction using model stacking based on satellite ima...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Mushroom cultivation and it's methods.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Assigned Numbers - 2025 - Bluetooth® Document
A comparative study of natural language inference in Swahili using monolingua...
Encapsulation_ Review paper, used for researhc scholars

Graph coloring problem

  • 1. Mrs.G.Chandraprabha,M.Sc.,M.Phil., Assistant Professor Department of IT V.V.Vanniaperumal College for Women Virudhunagar Graph Coloring problem Using Backtracking
  • 2.  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. SGVf )(:
  • 3.  Definition: A graph is planar if it can be drawn in a plane without edge-crossings.  The four color theorem: For every planar graph, the chromatic number is ≤ 4.
  • 4.  The four color theorem states that any planar map can be colored with at most four colors.  In graph terminology, this means that using at most four colors, any planar graph can have its nodes colored such that no two adjacent nodes have the same color.  Four-color conjecture – Francis Guthrie, 1852 (F.G.)  Many incomplete proofs (Kempe).  5-color theorem proved in 1890 (Heawood)  4-color theorem finally proved in 1977 (Appel, Haken) ◦ First major computer-based proof
  • 5.  A vertex coloring is an assignment of labels or colors to each vertex of a graph such that no edge connects two identically colored vertices
  • 6.  Similar to vertex coloring, except edges are color.  Adjacent edges have different colors.
  • 7.  Every edge-coloring problem can be transformed into a vertex-coloring problem  Coloring the edges of graph G is the same as coloring the vertices in L(G)  Not every vertex-coloring problem can be transformed to an edge-coloring problem  Every graph has a line graph, but not every graph is a line graph of some other graph
  • 8.  K-Coloring ◦ A k-coloring of a graph G is a mapping of V(G) onto the integers 1..k such that adjacent vertices map into different integers. ◦ A k-coloring partitions V(G) into k disjoint subsets such that vertices from different subsets have different colors.
  • 9.  K-colorable ◦ A graph G is k-colorable if it has a k-coloring.  Chromatic Number ◦ The smallest integer k for which G is k-colorable is called the chromatic number of G, is denoted by the χ(G).
  • 10. The idea is to assign colors one by one to different vertices, starting from the vertex 0. Before assigning a color, we check for safety by considering already assigned colors to the adjacent vertices. If we find a color assignment which is safe, we mark the color assignment as part of solution. If we do not a find color due to clashes then we backtrack and return false. Backtracking Algorithm
  • 11. NP: the class of decision problems that are solvable in polynomial time on a nondeterministic machine (or with a nondeterministic algorithm)  (A deterministic computer is what we know)  A nondeterministic computer is one that can “guess” the right answer or solution think of a nondeterministic computer as a parallel machine that can freely spawn an infinite number of processes  Thus NP can also be thought of as the class of problems whose solutions can be verified in polynomial time  Note that NP stands for “Nondeterministic Polynomial-time”
  • 12.  Fractional Knapsack  Sorting  Others? ◦ Graph Coloring ◦ Satisfiability (SAT)  the problem of deciding whether a given Boolean formula is satisfiable.
  • 13.  Many problems can be formulated as a graph coloring problem including Time Tabling, Scheduling, Register Allocation, Channel Assignment.  A lot of research has been done in this area so much is already known about the problem space.