Robust Graph Coloring on Paths Ralf Ollig. ROBUST GRAPH COLORING PROBLEM Undirected Graph G =(V,E) Undirected Graph G =(V,E) Positive integer k ≥ χ(G)

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science
Advertisements

Covers, Dominations, Independent Sets and Matchings AmirHossein Bayegan Amirkabir University of Technology.
Graph-02.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
Discussion #33 Adjacency Matrices. Topics Adjacency matrix for a directed graph Reachability Algorithmic Complexity and Correctness –Big Oh –Proofs of.
Dynamic Wavelength Allocation in All-optical Ring Networks Ori Gerstel and Shay Kutten Proceedings of ICC'97.
1 Electronic ADM. 2 3 ADM (add-drop multiplexer)
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
Rectangular Drawing (continue) Harald Scheper. Overview algorithm (directions) algorithm in linear time outline of algorithm (placement) Rect. Drawings.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 8 May 4, 2005
Karger’s Min-Cut Algorithm Amihood Amir Bar-Ilan University, 2009.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
NP-Complete Problems Problems in Computer Science are classified into
Graph Colouring Lecture 20: Nov 25.
EXPANDER GRAPHS Properties & Applications. Things to cover ! Definitions Properties Combinatorial, Spectral properties Constructions “Explicit” constructions.
Time Complexity.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Coloring Algorithms and Networks. Coloring2 Graph coloring Vertex coloring: –Function f: V  C, such that for all {v,w}  E: f(v)  f(w) Chromatic number.
Complexity ©D.Moshkovitz 1 Paths On the Reasonability of Finding Paths in Graphs.
Maximal Independent Set Distributed Algorithms for Multi-Agent Networks Instructor: K. Sinan YILDIRIM.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
1 Joint work with Shmuel Safra. 2 Motivation 3 Motivation.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
The Art Gallery Problem
1 Distributed Computing Optical networks: switching cost and traffic grooming Shmuel Zaks ©
9.2 Graph Terminology and Special Types Graphs
Entropy Rate of a Markov Chain
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
7 -1 Chapter 7 Dynamic Programming Fibonacci sequence Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, … F i = i if i  1 F i = F i-1 + F i-2 if.
Example Question on Linear Program, Dual and NP-Complete Proof COT5405 Spring 11.
ساختمانهای گسسته دانشگاه صنعتی شاهرود – فروردین 1392.
1 Chapter 10 Extending the Limits of Tractability Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.
1 CS104 : Discrete Structures Chapter V Graph Theory.
CSC 413/513: Intro to Algorithms NP Completeness.
Greedy Algorithms and Matroids Andreas Klappenecker.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Markov Chains and Random Walks. Def: A stochastic process X={X(t),t ∈ T} is a collection of random variables. If T is a countable set, say T={0,1,2, …
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
1 Design and Analysis of Algorithms Yoram Moses Lecture 11 June 3, 2010
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
Data Reduction for Graph Coloring Problems Bart M. P. Jansen Joint work with Stefan Kratsch August 22 nd 2011, Oslo.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
NPC.
CSC317 1 Quicksort on average run time We’ll prove that average run time with random pivots for any input array is O(n log n) Randomness is in choosing.
Chapter 9: Graphs.
Great Theoretical Ideas in Computer Science for Some.
Chromatic Coloring with a Maximum Color Class Bor-Liang Chen Kuo-Ching Huang Chih-Hung Yen* 30 July, 2009.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
The Theory of NP-Completeness
Randomized Min-Cut Algorithm
Minimum Spanning Tree 8/7/2018 4:26 AM
Exact Algorithms via Monotone Local Search
Topological Sort CSE 373 Data Structures Lecture 19.
Discrete Math II Howon Kim
Richard Anderson Autumn 2016 Lecture 5
5.4 T-joins and Postman Problems
Richard Anderson Winter 2009 Lecture 6
The Theory of NP-Completeness
Richard Anderson Lecture 5 Graph Theory
Richard Anderson Winter 2019 Lecture 5
Presentation transcript:

Robust Graph Coloring on Paths Ralf Ollig

ROBUST GRAPH COLORING PROBLEM Undirected Graph G =(V,E) Undirected Graph G =(V,E) Positive integer k ≥ χ(G) Positive integer k ≥ χ(G) Cost c on edges on G Cost c on edges on G Find k-coloring of G with min. costs of edges in G whose ends have the same color Find k-coloring of G with min. costs of edges in G whose ends have the same color RGCP is NP-hard RGCP is NP-hard

MOTIVATION v0v0 v1v1 v2v2 v3v3 v4v4 TAX: $400 w0w0 w1w1 w2w2 w3w3 w4w4 Investors Government

WHY 3-COLORING ? k=2: Graph is bipartite k=2: Graph is bipartite k≥4: k-Coloring can be done in linear time k≥4: k-Coloring can be done in linear time Brook’s Theorem: If G is a connected and simple graph an is neither an odd cycle nor a complete graph, then the chromatic number of G is at most the max. degree of G

EXACT ALGORITHM c* = +∞, a 0 = 0 for 1≤ i ≤ n let c i ≥ 0 Alg color(k) if k<n then for a = 0 to 2 do if a != a k, then let a k+1 = a and call color(k+1) else Let c = 0 for i = 1 to n do if w i-1 and w i share color, let c = c +c i if c < c*, let c* = c End Alg Costs to infinity # of red edges Recursion on the other 2 colors Compute costs of violation

RUNNING TIME ? Due to the recursion on two colors, its running time is going to be exponential. Due to the recursion on two colors, its running time is going to be exponential. … for a = 0 to 2 do if a != a k, then let a k+1 = a and call color(k+1) …

COSTS ? If there exits a 3-coloring it is found and therefore the costs of an optimal solution are 0. This is because there is no violation on the coloring precondition. Method only acceptable for small instances

HOW BAD IS THIS 1 st ONE? Running Time: O(2 n ) Running Time: O(2 n ) Cost = 0 Cost = 0

RANDOMIZED ALGORITHM Alg randColor() Let a 0 = 0 and c = 0 For i = 1 to n do guess a i from {0,1,2,}\{a i-1 } For i = 1 to n do if w i-1 and w i share color, let c = c +c i End Alg # of red edges Coloring the nodes Costs for violating the 3-coloring

RUNNING TIME First for-loop takes linear time for choosing random coloring. First for-loop takes linear time for choosing random coloring. Second for loop takes linear time to calculate the costs of violating the prerequisites. Second for loop takes linear time to calculate the costs of violating the prerequisites.

COSTS We have 3 colors, but one is allocated We have 3 colors, but one is allocated Therefore probability for the others is ½. Therefore probability for the others is ½. That gives us: That gives us: p i = ½(1-p i-1 )≤1/2 By linearity the cost behave the same By linearity the cost behave the same

HOW BAD IS THIS 2 nd ONE ? Running Time: O(n) Running Time: O(n) Cost: at most half of the cost of the red edges Cost: at most half of the cost of the red edges

GREEDY ALGORITHM Alg greedyColor Let a 0 = 0 For i = 1 to n do Let Ai = {0,1,2} For each left neighbor v j of v i do: Let A i = A i \ {a j } Let a i be the smallest element of A i End Alg Use same algorithm for right neighbors respectively. Iff: j<i j = i-1 # of red edges

RUNNING TIME The outer for-loop takes linear time over the red edges. The outer for-loop takes linear time over the red edges. The inner for-loop takes constant time over the neighbors. The inner for-loop takes constant time over the neighbors.

COSTS Forward edge / backward edge Forward edge / backward edge (j<i) / (i<j) Vertex at most two neighbors Vertex at most two neighbors Therefore, Therefore, For each left neighbor v j of v i do: Let A i = A i \ {a j } deletes at most two colors All forward edges end in different colors, though at most backward edges have same color All forward edges end in different colors, though at most backward edges have same color

EXAMPLE v0v0 v1v1 v2v2 v3v3 v4v4 v5v5 v6v6 v7v7 v8v8 v0v0 v3v3 v6v6 v1v1 v4v4 v7v7 v2v2 v5v5 v8v8 v0v0 v1v1 v2v2 v3v3 v4v4 v5v5 v6v6 v7v7 v8v8 j i j’ i’ Forward edge: 3<6 Backward edge: 7 !< 2

HOW BAD IS THIS 3 rd ONE ? Running Time: O(n) Running Time: O(n) Cost: min{c L,c R } at most half of the cost of the red edges Cost: min{c L,c R } at most half of the cost of the red edges

REAL WORLD Crew assignment for an airline Crew assignment for an airline Tradeoffs between Costs & Speed Tradeoffs between Costs & Speed Deciding if there is a 3-col of the union of two paths is NPC Deciding if there is a 3-col of the union of two paths is NPC

QUESTIONS

LITERATURE R. L. Bracho, J. R. Rodriguez, and F. J. Z. Martinez. Algorithms for Robust Graph Coloring on Paths. In Proceedings of the 2nd international conference on Electrical and Electronics Engineering, pages 9-12,