Graph Coloring Algorithms

Size: px
Start display at page:

Download "Graph Coloring Algorithms"

Transcription

1 Graph Coloring Algorithms Course Notes Extension COMP5408 Advanced Algorithms Lucas Rioux-Maldague November 10 th Introduction Note: in this text, unless otherwise noted, a graph is always simple. A coloring of a graph is an assignment of labels to certain elements of a graph. More commonly, elements are either vertices (vertex coloring), edges (edge coloring), or both edges and vertices (total colorings). The most common form asks to color the vertices of a graph such that no two adjacent vertices share the same color (label). This is called a proper vertex coloring. For a graph G, the minimum number of colors such that G has a proper vertex coloring is denoted χ(g), the chromatic number of G. For example, for any path P n on n vertices, χ(p n ) = 2. Observe that this bound also applies to any bipartite graph: we can assign color 1 to vertices of the first partition, and color 2 to vertices of the second, there will be no two adjacent vertices that share the same color since vertices of the same class are never adjacent to each other by definition of a bipartite graph. The lower bound on χ is obviously the clique number ω, but what about an upper bound? One would think about V, but other than the complete graph, this bound is never tight. With further thought, we can see that χ(g) (G) + 1 (the proof is left to the reader). A result by Brooks states the following: Theorem 1.1 (Brooks Theorem [3]). If G is a connected graph that is not a complete graph or an odd cycle, then χ(g) (G). 2 Problem Complexity One could ask if we can find an optimal algorithm to find an optimal proper coloring of any graph. However, computing the chromatic number for a general graph is NP-hard [9]. The problem to decide if, given any integer k 3, a graph admits a k-coloring, is also NP-complete. Note that for k = 2, the problem is equivalent to checking if the graph is bipartite, this can be done in linear time using an algorithm such as breadth first search. As we will see later, there also exist polynomial time algorithms for specific families of graphs, such as planar or perfect graphs. We will also look at some heuristics that can speed up the process; however, their oputput will not be optimal in most cases. Even if the problem is NP-hard for the general problem, there are still interesting exponential time solutions to solve the problem. We will now look at such an algorithm, which is based on the idea of contracting edges. Edge contraction For a given graph G and two vertices u, v V (G), a contraction G/uv consists of removing u and v from the graph, and replacing them by a vertex w that is adjacent to all the vertices previously adjacent to at least one of u, v. If u and v are non adjacent vertices, then we can see that in a coloring of G, u and v will either share the same color or have distinct colors. Thus, we can analyse both cases, which are respectively equivalent to finding a coloring of G in which u and v are contracted (forces the same color), and a coloring in which there is an edge (u, v) (forces different colors). This gives 1

2 rise to the following recurrence relation, which is due to Zykov [30] (G + (u, v) denotes the graph G with the edge (u, v) added): χ(g) = min{χ(g + (u, v)), χ(g/uv)} for (u, v) / E(G) (1) Using this recurrence relation, we can build this algorithm which recursively computes each case, building a Zykov tree. Algorithm 1 Coloring number of a graph using Equation 1. Input: A graph G in adjacency list form. Output: The exact value of χ(g). 1: procedure FindColoring(Graph G) 2: if G is a complete graph then 3: return V (G) 4: else 5: Let u, v be a pair of vertices such that (u, v) / E(G) 6: return min{findcoloring(g + (u, v)), FindColoring(G/uv)} 7: end if 8: end procedure 9: return FindColoring(G) This algorithm runs in exponential time, the exact time will vary depending on the heuristic that is used to select u and v. We can see that every leaf of the Zykov tree will be a complete graph. Thus, we want every branch to converge into a complete graph in the fewest number of steps. Thus, we want G + (u, v) to have many edges, and G/uv to have as few as possible. To do this, we could select u and v that have a high number of common neighbors, which will eliminate many edges. Another application of edge contractions that also result in a recurrence relation is for the chromatic polynomial. This polynomial P (G, t) counts the number of different proper colorings on t colors of G. Note that since finding the chromatic number of a graph is NP-complete, finding the chromatic polynomial is also NP-complete, as given P (G, t) we can find the exact value of χ(g) by trying every value of k starting at 1, and stopping when P (G, t) > 0. This verification can be done in polynomial time. For this polynomial, suppose we want to find the number of possible colorings in a graph with no edge (u, v). We can distinguish two cases: if u and v have the same color, or if u and v have different colors. Hence, the total number of colorings in the original problem is the sum of the number of colorings in each of those cases. This gives the following recurrence relation: P (G (u, v), k) = P (G/uv, k) + P (G, k) for (u, v) E(G) P (G, k) = P (G (u, v), k) P (G/uv, k) (2) This gives rise to a procedure called the deletion-contraction algorithm, which can be used not only to compute the chromatic polynomial and number, but also various other graph invariants such as the number of spanning trees, the number of acyclic colorings and others. In the next section, we will look at various heuristics and near-optimal solutions. 3 Heuristics and Greedy Algorithms We now present a greedy type of algorithm that can color any graph in linear time. The downside is that this algorithm is sometimes far from the optimal. This algorithm is based on an ordering of the vertices. The ordering can be chosen in a specific way, or it can be random. We will see how different orderings can produce different results. Claim 3.1. Algorithm 2 executes in O( V + E ) time. 2

3 Algorithm 2 Greedy algorithm for coloring a graph G Input: An ordering v 1 < v 2 < < v n of the vertices of a graph G. Output: A coloring c of the vertices of G 1: c(v 1 ) 1 2: c(v i ) 0 for 2 i n 3: m 1 4: for i = 2 to n do 5: if k, 1 k m such that c(v) k for all neighbors v of v i and k is the smallest such color then 6: c(v i ) k 7: else 8: c(v i ) m + 1 9: m m : end if 11: end for Proof. The initialization part takes O( V ) time. The loop is executed O( V ) time, each iteration taking deg(v) time where v is the vertex considered during the iteration. Since v V (G) deg(v) = 2 E, the running time must be O( V + E ). The coloring produced by Algorithm 2 is clearly valid, but it may not be optimal. In fact, it may be arbitrarily far from the optimal chromatic number, one such example is with a bad ordering of a crown graph, which is a complete bipartite graph with the edges of a perfect matching removed [29]. Figure 1 shows the result of two different orderings of the same graph; one is optimal, while the other uses n/2 colors. This shows how much the output of the algorithm depends on the ordering. Thus, it would be interesting to find a method that gives an optimal coloring; that is, an ordering for which the greedy algorithm produces an optimal coloring. It is known that an optimal optimal exists for every graph [7]. However, it follows from the NP completeness of the optimal coloring problem that finding an optimal coloring is also NP-complete. Figure 1: Two different orderings of the same graphs for the greedy ordering. The number inside each vertex represents its position in the ordering. Figure from [29] Since finding an optimal ordering is usually infeasible, many heuristics that attempt to give better results have been proposed. One very common strategy for selecting the next vertex to be colored is to select the vertex of smallest degree that is not already colored. This way, the number of colors used by the algorithm will be at most + 1, where is the maximum degree of the graph. An improvement over this heuristic can improve the upper by one for all graphs that have chromatic index at most : select as the two first vertices of the ordering two vertices not adjacent to each other, and adjacent to the last vertex, and each subsequent vertex must be adjacent to at least one earlier vertex. This condition is the same as in a part of Brooks s Theorem, which is where the bound of comes from. 3

4 Similar to the idea of selecting a vertex of low degree, there is also the idea of selecting a vertex of high degree: at each step, we select the vertex of highest degree. Again, the upper bound on the number of colors required by this algorithm is + 1, but this ordering can result in a better coloring for some graphs. Other degree based heuristics include the saturation degree ordering, where the saturation degree is the number of distinct colors on adjacent neighbors of a vertex, and incidence degree ordering, where the incidence degree is the number of colored neighbors adjacent to a vertex. Other heuristics also exist that are based on the independent set of a graph. 3.1 Outerplanar Graphs For some classes of graphs, it is fast to find a near optimal ordering. One easy example is outerplanar graphs, which are graphs that can be embedded in the plane such that no two edges cross and all the vertices are adjacent to the unbounded region (see Figure 2). The key for this ordering is in the following theorem: Theorem 3.2. Let G be an outerplanar graph. Then, G contains at least one vertex of degree 2. We find the algorithm as follows: Let G be an outerplanar graph and S = s i,, s V (G) be a sequence of vertices such that each s 1 has degree 2 or less in G and s i has degree 2 in V {s 1,, s i 1 } for 1 < i V (G). The ordering is the reverse of S. This produces a three coloring: each time a vertex is colored, it is adjacent to at most two vertices, so at least one color is available. Note that this coloring is optimal for any outerplanar graph that has at least one face of odd degree (the degree of a face is the number of vertices it is adjacent to), such as a triangulation of an outerplanar graph, as any odd cycle requires three colors. This result is the base of the short proof of the Art Gallery theorem by Fisk [8]. (a) A planar graph (b) An outerplanar graph Figure 2: Planar and outerplanar graphs 3.2 Chordal graphs A chordal graph is a graph that contains a chord on each cycle of four or more vertices, where a chord is an edge disjoint from the cycle that connect two vertices of the cycle (see Figure 3). Chordal graphs are a subset of the perfect graph, for which perfect orderings can be found in polynomial time. For chordal graphs, the perfect ordering can be found efficiently in linear time, using the lexicographic breadth-first search algorithm of Rose, Lueker and Tarjan [23]. The algorithm finds a perfect elimination ordering, which is an ordering of the vertices of the graph such that for each vertex v, v and its neighbors that occur after v in the ordering form a clique in the graph. For chordal graphs, the reverse of the perfect elimination ordering is an optimal ordering for the greedy coloring algorithm [16]. We will not further discuss the topic of lexicographic breadth-first search here, as it has so many variants and applications that it warrants a chapter of its own. 4 Planar Graphs Planar graphs, graphs that can be embedded in the plane such that no two edges cross (see Figure 2), are one of the families of graphs for which a near-optimal coloring (at most one from the optimal), can 4

5 Figure 3: A section of a chordal graph. Chords are drawn in green. Note that if any of the chords is removed, the resulting graph will not be chordal, as there will be a chordless cycle on four vertices. Figure from [28]. be found in polynomial time. We previously saw that this was also true for outerplanar graphs, a family of planar graphs. The very famous Four Color Theorem [1] states that any graph can be colored with four colors, and its proof leads to a polynomial time algorithm. The quest for a proof of this theorem also leads to many other results in various areas of Graph theory, one of them is a linear time algorithm to five color planar graphs. A very famous incorrect proof by Kempe in 1879 [15] put the problem back into active research, and provided many constructions which were used in the first correct proof in Kempe s mistake was discovered in 1890 by Percy J. Heawood, who found that Kempe s proof, while incorrect for four-coloring, did prove that five colors were sufficient, and due to its constructive nature, lead to a five coloring algorithm. In the next section, we will look at a variation of this algorithm, and present a quadratic time algorithm for four coloring. 4.1 Five Coloring In his 1879 paper, as a building block for his proof, Kempe showed that every planar graph contains a vertex of degree five or less. Many refinements of this results have been published, we make use a version by Wernicke. This result is the basis of a simple linear time five coloring algorithm that was proposed by Robertson, Sanders, Seymour and Thomas [22]. Theorem 4.1 (Wernicke s Theorem [27]). Let G be a planar simple graph with minimum degree 5. Then, G has a vertex of degree 5 that is adjacent to another vertex of degree at most 6. The algorithm is recursive, in each step, a vertex of degree five or less is found and the procedure recurses on the smaller graph. 5

6 Algorithm 3 Algorithm to 5-color a planar graph in O( V ) time. Input: A planar graph G in adjacency list form. Output: A coloring c of G on five colors. 1: procedure Color(Graph G) 2: if V (G) = 1 then 3: Let x be the only vertex of G 4: Set c(x) any color in {1, 2, 3, 4, 5} 5: else 6: Let x be a vertex of degree 5 or less. 7: S = 8: if x has degree 5 then 9: Let v 1, v 2,, v 5 be vertices around x in clockwise order, with deg(v 1 ) 6 10: if v 1 is not adjacent to v 3 then 11: S = {v 1, v 3 } 12: else v 1 is adjacent to v 3 so, by planarity, v 2 is not adjacent to v 4 13: S = {v 2, v 4 } 14: end if 15: end if 16: Merge all vertices of S in G and let w be the resulting vertex. 17: c = Color(G x) 18: v V (S {x}), set c(v) = c (v). 19: v S, set c(v) = c (w). 20: c(x) any color in {1, 2, 3, 4, 5} not used by any of its neighbors. 21: end if 22: return c 23: end procedure 24: return Color(G) 6

7 Claim 4.2. Algorithm 3 returns a valid five coloring of any planar graph G. Proof. We can use induction on the number of vertices in the graph. Let n = V (G). Induction base: n = 1. In this case, the algorithm assigns any color in {1, 2, 3, 4, 5} to the only vertex of the graph. Induction step: suppose this is true for any graph on less than n vertices. The algorithm selects a vertex x with degree five or less. If the vertex has degree five, then it selects two non-adjacent vertices that are adjacent to x, and merges them together. We can see that this always exists: if v 1, v 2, v 3, v 4, v 5 are the vertices in order around x, then if v 1 and v 3 are adjacent together, then by planarity, v 2 and v 4 must not be, otherwise the (v 2, v 4 ) edge would cross the (v 1, v 3 ) edge. Then, the graph G resulting from the merger of vertices in S (if any), and the removal of x is colored with five vertices. By induction hypothesis, this is a valid five coloring of G. Back to the original graph G, all vertices get the same coloring as in G, with some new colors added for vertices in S and x. Note that since the vertices in S are non adjacent, having the same color is valid. Furthermore, since they were merged together in G, their color is valid with regard to their other neighbors. For x, if its degree is less than five, then at most four of {1, 2, 3, 4, 5} are used by its neighbors, so affecting one of the remaining colors is valid. Otherwise, if it has degree five, then at least two of its neighbors, vertices in S, have the same color. Thus, at most four colors are used by its neighbors so a valid color is available for x. We only used colors in {1, 2, 3, 4, 5}, so this completes the proof. Claim 4.3. Algorithm 3 runs in O( V ) time. Proof. All the operations in each iteration of the procedure Color can be done in constant time (S has size at most 2, and the coloring does not have to be recopied at line 14, it can be the same data structure to which we remove w and add every vertex in S), with the exception of finding x, but this can be implemented in amortized linear time by maintaining a stack of vertices of degree at most five. Each time the algorithm recurses, there is one less vertex in the input. Therefore the total running time is O( V ). 4.2 Four Coloring The proof of the Four Color Theorem by Appel and Haken also provides an algorithm that runs in O(n 4 ). The proof was simplified by Robertson, Sanders, Seymour and Thomas [21], and the authors also gave a new algorithm that uses the improvements of the new proof. The algorithm is simpler and runs in O(n 2 ) time [22]. Note that some parts of the algorithm color a triangulation of the graph (see below), but such a triangulation can always be created by adding edges to the graph, and the coloring of this triangulation will clearly be valid for the non-triangulated graph. We now look at some key definitions that are crucial in the understanding of the algorithm. Definition 4.4. A plane triangulation is a triangulation where each face has degree 3. Definition 4.5. A plane near-triangulation is a triangulation where each finite face has degree 3. Definition 4.6. A k-ring is a cycle on k edges with at least one vertex in each of its interior and exterior. Definition 4.7. A non-trivial k-ring is a cycle on k edges with at least two vertices in each of its interior and exterior. Definition 4.8. A bending k-ring is a cycle C on k edges with at least four vertices in each of its interior and exterior and a vertex not on C that is adjacent to three consecutive vertices of C. Definition 4.9. A plane triangulation G is nearly 7-connected if 1. G has no k-ring for k {2, 3, 4}, 2. G has no non-trivial 5-ring, 7

8 (a) A plane triangulation (b) A plane near-triangulation Figure 4: Triangulations u (a) A 5-ring. The cycle consists of the vertices in red, the exterior is blue and the interior is orange. (b) A non-trivial 5-ring. There is at least two vertices in each of the outside and inside of the cycle. Figure 5: Rings (c) A bending 5-ring. u is adjacent to three consecutive vertices of the cycle. 3. G has no bending 6-ring A graph is 5-connected if it satisfies condition 1, and is internally 6-connected if it satisfies conditions 1 and 2. Definition K is a configuration if K is a near-triangulation G(K) together with a function γ K : V (G(K)) N such that the three following conditions hold: 1. For every v V (G(K)), G(K) v has at most two components, and if there are exactly two, γ K (v) = deg(v) + 2, 2. For every v V (G(K)), if v is not incident with the outside face, then γ K (v) = deg(v) and otherwise, γ K (v) > deg(v). In either case, γ K (v) The ring size of K is at least 2. When drawing configurations (see Figure 6), a common convention is to use specific shapes for the vertices depending on the value of γ K : 1. γ K (v) = 5 Solid dot 2. γ K (v) = 6 No shape 3. γ K (v) = 7 Circle 4. γ K (v) = 8 Square 8

9 5. γ K (v) = 9 Triangle 6. γ K (v) = 10 Pentagon Definition The ring-size of a configuration K is v V γ K(v) deg(v) 1 where V = {v V (G(K)) v is adjacent to the outer face }. (a) A configuration of ring size 14 (b) A configuration of ring size 9 Figure 6: Configurations We need two more definitions that describe how configurations are embedded into a graph. Definition A configuration K is weakly contained in a plane graph G if there is a function f from V (G(K)) to V (G) such that: 1. For every v V (G(K)), deg(f(v)) = γ K (v) 2. For every v V (G(K)) such that G(K) v is connected, if the cyclic neighborhood of v is (u 1,, u j ) such that for every 1 i < j, u i u i+1 v is a triangle of G(K), then the cyclic neighborhood of f(v) is (f(u 1 ),, f(u j )) if deg(f(v)) = γ K (v), or else, (f(u 1 ),, f(u j ), w 1,, w m ) for some m {1, 2, 3}. 3. For every v V (G(K)) such that G(K) v is not connected, if the cyclic neighborhood of v is (u 1,, u j, v 1,, v k ) such that for every 1 i < j, u i u i+1 v is a triangle of G(K) and for every 1 i < k, v i v i+1 v is a triangle of G(K), then the cyclic neighborhood of f(v) is (f(u 1 ),, f(u j ), w, f(v 1 ),, f(v k ), x). Definition A configuration K is strongly contained in a plane graph G if K is weakly contained in G by a function f that also satisfies the following: 1. For every v, w V (G(K)), if f(v) = f(w), then v = w. 2. For every v, w V (G(K)), if f(v) is adjacent to f(w) in G, then v is adjacent to w in G(K). Parts of the incorrect proof of the Four Color Theorem given by Kempe [15] are still found in the proof of the Four Color Theorem by Appel and Haken. One such part is to find a vertex of low degree, then to analyse the various cases. The case where the degree is four is correct, but the degree five case is incorrect, which is where his proof failed. The degree three or two are trivial, but looking at the degree four case will be a helpful introduction to the actual algorithm. First, we need to define the concept of a Kempe chain (see Figure 8 for an illustration). Definition Given a planar graph G, two colors a, b and a vertex v V (G) with c(v) = a, a Kempe chain is a maximal connected subset of G that contains v and whose vertices all have color a or b. Kempe s proof finds a vertex u of low degree, in this case, u has degree 4. We remove u from the graph, which can be colored with four colors by induction hypothesis (Kempe uses strong induction on the number of vertices, note that this leads to a recursive algorithm). If the four vertices adjacent to u are colored with less than four different colors, then there is one color available for u. Otherwise, all 9

10 Figure 7: The configuration in Figure 6a is strongly contained in the left graph and weakly contained in the right graph. Why? Here is a hint: look at the bottom two vertices of the configuration in the right graph: they are adjacent in the right graph, but not in the configuration, which contradicts the second condition of a strongly contained configuration. Figure from [22]. Figure 8: {a, b, c, d, e} is a Kempe chain. No other adjacent vertices can be added to the chain without contradicting the definition. four colors are used. Let a, b, c, d be the vertices in order around u. Without loss of generality, suppose a is colored with red and c with green. Find a Kempe chain from a on red and green. If the chain does not contain c (Figure 9a), then we can recolor each vertex of the chain that has color green to red, and red to green (Figure 9b). The coloring will stay valid and this will free the color red which can be used for u. Otherwise, the chain contains c (Figure 9c). Then we can simply use a Kempe chain on the two other colors, blue and orange, from b, and apply the same reasoning. The existence of a cycle from a to c prevents the Kempe chain from containing b and d by planarity of the graph. Along with Kempe chains, it is also crucial to understand how the proof of the Four Color Theorem works. The proof uses the concept of reducible configurations. To understand this, we can look at a simple example. As we mentioned earlier, every graph must contain a vertex of degree five or less. If we have a set A that contains all the vertices of degree less than six, then A is an unavoidable set in any planar graph, as any planar graph cannot avoid A. Now suppose the Four Color Theorem is false. Thus, there exist graphs that require five colors. Let G be the smallest of all such graphs. Since G is the smallest, then any graph on less than V (G) vertices must be colorable with four colors. A reducible configuration is any arrangement of vertices that cannot be contained in G. Such an example is vertices with degree four or less: if G contains such a vertex u, then let G = G u. V (G ) < V (G), so we can color G with four colors as G is the smallest graph that requires five colors. Then, if the four vertices adjacent to u have four different colors, the coloring can be rearranged using a Kempe chain so that only three are used. There is then a color available for u and G can be four-colored. Thus, G cannot contain 10

11 vertices of degree four or less. The proof of the Four Color Theorem shows that any planar graph contains one of 633 reducible configurations. Since this covers all planar graphs, then five colors are never required. This set of 633 reducible configurations is denoted U. The exact composition of this set can be found in the paper by Robertson et al. [21]. Note that the original proof of the theorem by Appel and Haken [1] used 1936 configurations, but this was reduced a few times after redundancies were discovered: to 1834, then 1482, then to the current 633. In their improved proof, Robertson et al. prove the following theorem: Theorem Every plane triangulation of minimum degree 5 weakly contains a configuration from U. (a) The Kempe chain does not contains c (b) We switch the color of every vertex in the chain, this frees a color. (c) The Kempe chain contains c, we switch to the other chain b. Figure 9: Degree 4 analysis in Kempe s proof With this, we can now look at the algorithm. Note that to Kempe the vertices refers to flipping colors in a Kempe chain. 11

12 Algorithm 4 Algorithm to color a planar graph using four colors Input: A plane graph G in adjacency list form on n vertices. Output: A coloring c of G on four colors. 1: procedure RingAnalysis(Ring R, Graph G) 2: Let E, I be the subgraphs of G with E on the exterior of R and I on the interior 3: Let H 1 = G E 4: Triangulate H 1 5: c 2 Color(H 1 ) V (H 1 ) < V (G) 6: Let H 2 = G I 7: Triangulate H 2 8: c 2 Color(H 2 ) V (H 1 ) < V (G) 9: Kempe c 1 and c 2 to match on R and let c be the resulting coloring 10: V (H 1 ) + V (H 1 ) V (G) : return c 12: end procedure 13: procedure Color(Graph G) 14: if n 4 then 15: Assign each vertex a different color, and return c. 16: end if 17: if G has a face F of degree at least 4 then 18: Let x, y be two non-adjacent vertices on F. They exist by planarity 19: Let H be a graph formed by merging x and y into a vertex z in G 20: c = Color(H) 21: c(x), c(y) c(z) 22: return c 23: else if G has a vertex x with deg(x) 4 then 24: Then, the cycle C surrounding x is a k-ring. 25: return RingAnalysis(C, G) 26: else G has minimum degree 5, so by Theorem 4.15, it contains a configuration in U 27: Let K be a configuration of U weakly contained in G. 28: if K is not strongly contained in G then 29: Let C be a k-ring for k 4 or a non-trivial 5-ring on G. 30: return RingAnalysis(C, G) 31: else K is strongly contained in G 32: Let r be the ring size of K r 14 since this is true of any configuration of U 33: Let H = G V (G) 34: Let T E(H) be a set of edges according to the definition of reducibility 35: Let J be the graph obtained by contracting T in H. 36: c Color(J) c is a coloring of J 37: Kempe the vertices of V (H) until we find a coloring c that extends into K. 38: end if 39: end if 40: end procedure 41: return Color(G) 12

13 Claim Let G be any subgraph of a graph G. If Color(G ) returns a valid coloring of G, then the procedure RingAnalysis(R, G) for a ring R of G returns a valid coloring of G. Proof. By our hypothesis, c 1 and c 2 are valid colorings of H 1 and H 2. Birkhoff [2], to whom this procedure is due, proved that it is possible to Kempe the vertices so that the colorings match on R. Thus, the resulting coloring c is valid. Claim Algorithm 4 computes a valid four-coloring of any planar graph G. Proof. We can prove this using strong induction on the number of vertices n in the graph. Case n 4: Clearly, the coloring returned is proper as each vertex gets its own color. Induction step: suppose this is true for any graph on less than n vertices. We can enumerate all cases: 1. If G contains a face of degree at least 4, then by planarity, there exists two non adjacent vertices x, y, so we can force them to have the same color. By induction, the coloring of the smaller graph is valid, and assigning the same color to x, y will result in a valid coloring. 2. If G has a vertex of degree less than five, then by Claim 4.16, the coloring produced by RingAnalysis(C, G) is valid. 3. Otherwise, by Theorem 4.15, G contains a configuration K in U. If the configuration is not strongly contained in G, then we can find a k-ring C, and Claim 4.16 completes the proof. Otherwise, since K is reducible, a coloring of H can be found [22]. This completes the proof. Claim Algorithm 4 runs in O( V 2 ) time. Proof. Each of the operations done in Color can be done in O( V ) time. Linear time algorithms can be used to find a configuration in U, since each vertex in such a configuration has degree at most 11. For RingAnalysis, all the operations can also be done in linear time: finding E and I takes linear time, so does triangulating them and kemping the colorings. Also, notice that each time the algorithm recurses, the number of vertices is reduced at least by 1. Thus, at most O( V ) recursive calls are made, which implies the algorithm takes O( V 2 ) time. By Claims 4.18 and 4.17, we get the following result: Theorem Algorithm 4 computes a valid four-coloring of any planar graph G in O( V 2 ) time. 4.3 Three Coloring What about three coloring planar graphs, as not all planar graphs require three colors? It turns out this problem is NP-hard, even if we restrict the problem to graphs where the maximum degree is 4 [9]. For two coloring, it is, as mentioned earlier, equivalent to testing if a graph is bipartite, which can be done in linear time. Thus, we can always find a coloring that uses at most one extra color than the optimal in polynomial time. 5 Edge Coloring The edge coloring problem is a variant on graph colorings where we want to assign a color to each edge such that no two adjacent (incident to the same vertex) edges share the same color. This parameter is denoted χ (G), the coloring index, which is the minimum number of colors required such that there exists a proper edge coloring of a graph G. While the coloring number can vary from a small constant to + 1, the coloring index is quite stable. We have the following: Theorem 5.1 (Vizing s Theorem [25]). Let G be a graph with maximum degree. Then, χ (G)

14 v u Figure 10: The color of (u, v), red, is free on u. v x 1 x2 x 3 Figure 11: A fan F = [x 1, x 2, x 3] of v (dashed edges are uncolored), (v, x 1), (v, x 2), (v, x 3) are the fan edges. Note that F = [x 1, x 2] is also a fan of v, but it is not maximal. Similarely to vertex coloring, deciding if χ(g) is (G) or (G)+1 for a graph G is also NP-complete. However, there are polynomial algorithms that can find a + 1 coloring in polynomial time. In the following section, a relatively simple such algorithm that is due to Misra and Gries [20] is presented. As will be proved later, this algorithm computes the coloring in O(mn) time where m = E, n = V. Before presenting the algorithm, we need to define the concept of a fan. Definition 5.2. The color x of an edge (u, v) is free on u if c(u, z) x for all (u, z) E(G) : z v. Definition 5.3. A fan of a vertex u is a sequence of vertices F [1 : k] that satisfies the following conditions: 1. F [1 : k] is a non-empty sequence of distinct neighbors of u 2. (F [1], u) E(G) is uncolored 3. The color of F [i + 1] is free on F [i] for 1 i < k Definition 5.4. Given a fan F, any edge (F [i], X) for 1 i k is a fan edge. Let c, d be colors. A cd X -path is an edge path that goes through vertex X, only contains edges colored c and d and is maximal (we cannot add any other edge as it would include edges with a color not in c e a g f b d Figure 12: Examples of cd x paths: ac, cg, gd is a red-green c path, bd, dg is a red-orange d path, ac is a red-orange a path. 14

15 {c, d}). Note that only one such path exists for a vertex X, as at most one edge of each color can be adjacent to a given vertex. The operation invert the cd-path switches every edge on the path colored c to d and every edge colored d to c. Inverting a path can be useful to free a color on X if X is one of the endpoints of the path: if X was only adjacent to c, it will now be adjacent to d, freeing c for another edge adjacent to X. Also, the flipping operation will not alter the validity of the coloring since for the endpoints, only one of {c, d} can be adjacent to the vertex, and for other members of the path, the operation only switches the color of edges, no new color is added. Given a fan F [1 : k] of a vertex X, the rotate fan operation does the following (in parallel): 1. c(f [i], X) = c(f [i + 1], X) 2. Uncolor F [k] This operation leaves the coloring valid (why? this is left to the reader as an exercice). c e c e a g f a g f b d b d Figure 13: Inverting a cd x path: in this example, inverting the red-green a path from the graph on the left results in the graph on the right. v v x 1 x2 x 3 x 1 x2 x 3 Figure 14: Rotating a fan: in this example, rotating the fan F = [x 1, x 2, x 3] on the left results in the fan on the right. Algorithm 5 Edge-coloring algorithm Input: A graph G. Output: A coloring c of the edges of G 1: Let U E(G) 2: while U do 3: Let (u, v) be any edge in U. 4: Let F [1 : k] be a maximal fan of u starting at F [1] = v. 5: Let c be a color that is free on u and d be a color that is free on F [k]. 6: Invert the cd u path 7: Let w V (G) be such that w F, F = [F [1]...w] is a fan and d is free on w. 8: Rotate F and set c(u, w) = d. 9: U U {(u, v)} 10: end while 15

16 Claim 5.5. The inversion of the cd path guarantees a vertex w such that w F, F = [F [1]...w] is a fan and d is free on w. Proof. Prior to the inversion, there are two cases: 1. The fan has no edge colored d. Since F is a maximal fan and d is free on F [k], then there is no edge with color d adjacent to u, otherwise if there was, it would be after F [k], as d is free on f[k], but F was maximal, which is a contradiction. Thus, d is free on u, and since c is also free on u, the cd u path is empty and the inversion has no effect on the graph. We can set w = F [k]. 2. The fan has one edge colored d. Let F [x + 1] be this edge. Note that x since F [1] is uncolored. Thus, d is free on F [x]. Also, x k since the fan has length k but there exists a F [x + 1]. We can now show that after the inversion, for each y {1,, x 1, x + 1,, k}, the color of (F [y + 1], u) is free on y (1). Note that prior to the inversion, the color of (u, F [y + 1]) is not c or d, since c is free on u and (u, F [x + 1]) has color d and the coloring is valid. The inversion only affects edges that are colored c or d, so (1) holds. F [x] can either be in the cd u path or not. If it is not, then the inversion will not affect the set of free colors on F [x], and d will remain free on it. We can set w = F [x]. Otherwise, we can show that F is still a fan and d remains free on F [k]. Since d was free on F [x] before the inversion and F [x] is on the path, F [x] is an endpoint of the cd u path and c will be free on F [x] after the inversion. The inversion will change the color of (u, F [x + 1]) from d to c, so since c is now free on F [x] and (1) holds, F remains a fan. We also have that d remains free on F [k], since F [k] is not on the cd u path (suppose that it is; since d is free on F [k], then it would have to be an endpoint of the path, but u and F [x] are the endpoints). Select w = F [k]. Note that in any case, the fan F is a prefix of F, which implies F is also a fan. This completes the proof. Claim 5.6. The coloring produced by Algorithm 5 is proper. Proof. By induction on the number of colored edges. Base case: no edge is colored, this is valid. Induction step: suppose this was true at the end of the previous iteration. In the current iteration, after inverting the path, d will be free on u, and by Claim 5.5, it will also be free on w. Rotating F does not compromise the validity of the coloring. Thus, after setting c(u, w) = d, the coloring is still valid. Claim 5.7. Algorithm 5 requires at most + 1 colors. Proof. In a given step, we need to find colors c and d. Since u is adjacent to at least one uncolored edge and its degree is bounded by, at least one color in {1,, } is available for c. For d, F [k] may have degree and no uncolored adjacent edge. Thus, a color + 1 may be required. Theorem 5.8. Algorithm 5 computes a proper edge coloring on using + 1 colors in O( E V ) time. Proof. At each step, the rotation uncolors (u, w) and colors (u, v) which was previously uncolored. Thus, one additional edge gets colored. Hence, the loop will run O( E ) times. Finding the maximal fan, the colors c and d and invert the cd u path can be done in O( V ) time. Finding w and rotating F takes O(deg(u)) O( V ) time. Finding and removing the edge (u, v) can be done using a stack in constant time (pop the last element) and this stack can be populated in O( E ) time. Thus, each iteration of the loop takes O( V ) time, and the total running time is O( E + E V ) = O( E V ). The rest follows by Claims 5.6 and Exercices 1. Prove that for a graph G, χ(g) (G)

17 2. Give a linear time algorithm to check if a graph is bipartite, and show that this is equivalent to checking if a graph is 2-colorable. 3. Give a procedure based on deletion-contraction that computes the number of spanning trees in a graph. 4. Prove that every planar graph contains a vertex of degree five or less. Hint: use Euler s Formula. 5. Give a linear time algorithm to 6-color any planar graph. 6. Give examples of two distinct configurations of ring size Let G be a graph that has a partial (proper) edge coloring c. Show that, if F is a fan of u V (G), rotating F results in a edge coloring c that is still proper. References [1] Kenneth Appel and Wolfgang Haken. The solution of the four-color-map problem. Scientific American, 237: , [2] George D Birkhoff. The reducibility of maps. American Journal of Mathematics, pages , [3] Rowland Leonard Brooks. On colouring the nodes of a network. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 37, pages Cambridge Univ Press, [4] Norishige Chiba, Takao Nishizeki, and Nobuji Saito. A linear 5-coloring algorithm of planar graphs. Journal of Algorithms, 2(4): , [5] Maria Chudnovsky, Gérard Cornuéjols, Xinming Liu, Paul Seymour, and Kristina Vušković. Recognizing berge graphs. Combinatorica, 25(2): , [6] Maria Chudnovsky, Neil Robertson, Paul Seymour, and Robin Thomas. The strong perfect graph theorem. Annals of Mathematics, pages , [7] Vašek Chvátal. Perfectly ordered graphs. North-Holland mathematics studies, 88:63 65, [8] Steve Fisk. A short proof of Chvátal s watchman theorem. Journal of Combinatorial Theory, Series B, 24(3):374, [9] Michael R Garey, David S Johnson, and Larry Stockmeyer. Some simplified np-complete problems. In Proceedings of the sixth annual ACM symposium on Theory of computing, pages ACM, [10] Martin Grötschel, Laszlo Lovász, and Alexander Schrijver. Polynomial algorithms for perfect graphs. North-Holland mathematics studies, 88: , [11] Percy J Heawood. Map-Colour Theorem. Quarterly Journal of Pure and Applied Mathematics, 24: , [12] Ian Holyer. The np-completeness of edge-coloring. SIAM Journal on Computing, 10(4): , [13] David S Johnson. Worst case behavior of graph coloring algorithms. In Proc. 5th SE Conf. on Combinatorics, Graph Theory and Computing, pages , [14] RM Karp. Reducibility among combinatorial problems. Complexity of Computer Computations, pages ,

18 [15] Alfred B Kempe. On the geographical problem of the four colours. American Journal of Mathematics, 2(3): , [16] Frédéric Maffray. On the coloration of perfect graphs. In Recent Advances in Algorithms and Combinatorics, pages Springer, [17] David W Matula. A min-max theorem for graphs with application to graph coloring. In SIAM Rev. 10, number 4, pages , [18] David W Matula and Leland L Beck. Smallest-last ordering and clustering and graph coloring algorithms. Journal of the ACM (JACM), 30(3): , [19] Matthias Middendorf and Frank Pfeiffer. On the complexity of recognizing perfectly orderable graphs. Discrete Mathematics, 80(3): , [20] Jayadev Misra and David Gries. A constructive proof of vizing s theorem. Information Processing Letters, 41(3): , [21] Neil Robertson, Daniel Sanders, Paul Seymour, and Robin Thomas. The four-colour theorem. Journal of Combinatorial Theory, Series B, 70(1):2 44, [22] Neil Robertson, Daniel P Sanders, Paul Seymour, and Robin Thomas. Efficiently four-coloring planar graphs. In Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, pages ACM, [23] Donald J Rose, R Endre Tarjan, and George S Lueker. Algorithmic aspects of vertex elimination on graphs. SIAM Journal on computing, 5(2): , [24] Carsten Thomassen. Every planar graph is 5-choosable. Journal of Combinatorial Theory, Series B, 62(1): , [25] Vadim G Vizing. On an estimate of the chromatic class of a p-graph. Diskret. Analiz, 3(7):25 30, [26] Dominic JA Welsh and Martin B Powell. An upper bound for the chromatic number of a graph and its application to timetabling problems. The Computer Journal, 10(1):85 86, [27] Paul Wernicke. Über den kartographischen vierfarbensatz. Mathematische Annalen, 58(3): , [28] Wikipedia. Chordal graph wikipedia, the free encyclopedia, [Online; accessed 4-November- 2014]. [29] Wikipedia. Greedy coloring Wikipedia, the free encyclopedia, [Online; accessed November 3, 2014]. [30] Alexander Aleksandrovich Zykov. On some properties of linear complexes. Matematicheskii sbornik, 66(2): ,

Graphs and Discrete Structures

Graphs and Discrete Structures Graphs and Discrete Structures Nicolas Bousquet Louis Esperet Fall 2018 Abstract Brief summary of the first and second course. É 1 Chromatic number, independence number and clique number The chromatic

More information

List Coloring Graphs

List Coloring Graphs List Coloring Graphs January 29, 2004 CHROMATIC NUMBER Defn 1 A k coloring of a graph G is a function c : V (G) {1, 2,... k}. A proper k coloring of a graph G is a coloring of G with k colors so that no

More information

arxiv: v1 [math.ho] 7 Nov 2017

arxiv: v1 [math.ho] 7 Nov 2017 An Introduction to the Discharging Method HAOZE WU Davidson College 1 Introduction arxiv:1711.03004v1 [math.ho] 7 Nov 017 The discharging method is an important proof technique in structural graph theory.

More information

DSATUR. Tsai-Chen Du. December 2, 2013

DSATUR. Tsai-Chen Du. December 2, 2013 DSATUR Tsai-Chen Du December 2, 2013 Abstract The Graph Coloring Problem (GCP) is a well-known NP-complete problem that has been studied extensively. Heuristics have been widely used for the GCP. The well-known

More information

How many colors are needed to color a map?

How many colors are needed to color a map? How many colors are needed to color a map? Is 4 always enough? Two relevant concepts How many colors do we need to color a map so neighboring countries get different colors? Simplifying assumption (not

More information

Interval Graphs. Joyce C. Yang. Nicholas Pippenger, Advisor. Arthur T. Benjamin, Reader. Department of Mathematics

Interval Graphs. Joyce C. Yang. Nicholas Pippenger, Advisor. Arthur T. Benjamin, Reader. Department of Mathematics Interval Graphs Joyce C. Yang Nicholas Pippenger, Advisor Arthur T. Benjamin, Reader Department of Mathematics May, 2016 Copyright c 2016 Joyce C. Yang. The author grants Harvey Mudd College and the Claremont

More information

arxiv: v1 [math.co] 4 Apr 2011

arxiv: v1 [math.co] 4 Apr 2011 arxiv:1104.0510v1 [math.co] 4 Apr 2011 Minimal non-extensible precolorings and implicit-relations José Antonio Martín H. Abstract. In this paper I study a variant of the general vertex coloring problem

More information

Jordan Curves. A curve is a subset of IR 2 of the form

Jordan Curves. A curve is a subset of IR 2 of the form Jordan Curves A curve is a subset of IR 2 of the form α = {γ(x) : x [0, 1]}, where γ : [0, 1] IR 2 is a continuous mapping from the closed interval [0, 1] to the plane. γ(0) and γ(1) are called the endpoints

More information

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

MATH 350 GRAPH THEORY & COMBINATORICS. Contents MATH 350 GRAPH THEORY & COMBINATORICS PROF. SERGEY NORIN, FALL 2013 Contents 1. Basic definitions 1 2. Connectivity 2 3. Trees 3 4. Spanning Trees 3 5. Shortest paths 4 6. Eulerian & Hamiltonian cycles

More information

Every planar graph is 4-colourable and 5-choosable a joint proof

Every planar graph is 4-colourable and 5-choosable a joint proof Peter Dörre Fachhochschule Südwestfalen (University of Applied Sciences) Frauenstuhlweg, D-58644 Iserlohn, Germany doerre@fh-swf.de Mathematics Subject Classification: 05C5 Abstract A new straightforward

More information

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009 Problem Set 3 MATH 776, Fall 009, Mohr November 30, 009 1 Problem Proposition 1.1. Adding a new edge to a maximal planar graph of order at least 6 always produces both a T K 5 and a T K 3,3 subgraph. Proof.

More information

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2, List of Theorems Mat 416, Introduction to Graph Theory 1. Ramsey s Theorem for graphs 8.3.11. Theorem 1 The numbers R(p, q) exist and for p, q 2, R(p, q) R(p 1, q) + R(p, q 1). If both summands on the

More information

A simple algorithm for 4-coloring 3-colorable planar graphs

A simple algorithm for 4-coloring 3-colorable planar graphs A simple algorithm for 4-coloring 3-colorable planar graphs Ken-ichi Kawarabayashi 1 National Institute of Informatics, 2-1-2 Hitotsubashi, Chiyoda-ku, Tokyo 101-8430, Japan Kenta Ozeki 2 Department of

More information

Jordan Curves. A curve is a subset of IR 2 of the form

Jordan Curves. A curve is a subset of IR 2 of the form Jordan Curves A curve is a subset of IR 2 of the form α = {γ(x) : x [0,1]}, where γ : [0,1] IR 2 is a continuous mapping from the closed interval [0,1] to the plane. γ(0) and γ(1) are called the endpoints

More information

Part II. Graph Theory. Year

Part II. Graph Theory. Year Part II Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2017 53 Paper 3, Section II 15H Define the Ramsey numbers R(s, t) for integers s, t 2. Show that R(s, t) exists for all s,

More information

Algorithmic Aspects of Acyclic Edge Colorings

Algorithmic Aspects of Acyclic Edge Colorings Algorithmic Aspects of Acyclic Edge Colorings Noga Alon Ayal Zaks Abstract A proper coloring of the edges of a graph G is called acyclic if there is no -colored cycle in G. The acyclic edge chromatic number

More information

Coloring planar graphs

Coloring planar graphs : coloring and higher genus surfaces Math 104, Graph Theory April 2, 201 Coloring planar graphs Six Color Let G be a planar graph. Then c(g) apple 6. Proof highlights. I Proof type: Induction on V (G).

More information

Math 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2

Math 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2 Math 777 Graph Theory, Spring, 006 Lecture Note 1 Planar graphs Week 1 Weak 1 Planar graphs Lectured by Lincoln Lu Definition 1 A drawing of a graph G is a function f defined on V (G) E(G) that assigns

More information

Chordal deletion is fixed-parameter tractable

Chordal deletion is fixed-parameter tractable Chordal deletion is fixed-parameter tractable Dániel Marx Institut für Informatik, Humboldt-Universität zu Berlin, Unter den Linden 6, 10099 Berlin, Germany. dmarx@informatik.hu-berlin.de Abstract. It

More information

Discrete mathematics

Discrete mathematics Discrete mathematics Petr Kovář petr.kovar@vsb.cz VŠB Technical University of Ostrava DiM 470-2301/02, Winter term 2017/2018 About this file This file is meant to be a guideline for the lecturer. Many

More information

An upper bound for the chromatic number of line graphs

An upper bound for the chromatic number of line graphs EuroComb 005 DMTCS proc AE, 005, 151 156 An upper bound for the chromatic number of line graphs A D King, B A Reed and A Vetta School of Computer Science, McGill University, 3480 University Ave, Montréal,

More information

Chapter 6 GRAPH COLORING

Chapter 6 GRAPH COLORING Chapter 6 GRAPH COLORING A k-coloring of (the vertex set of) a graph G is a function c : V (G) {1, 2,..., k} such that c (u) 6= c (v) whenever u is adjacent to v. Ifak-coloring of G exists, then G is called

More information

An Introduction to Chromatic Polynomials

An Introduction to Chromatic Polynomials An Introduction to Chromatic Polynomials Julie Zhang May 17, 2018 Abstract This paper will provide an introduction to chromatic polynomials. We will first define chromatic polynomials and related terms,

More information

Small Survey on Perfect Graphs

Small Survey on Perfect Graphs Small Survey on Perfect Graphs Michele Alberti ENS Lyon December 8, 2010 Abstract This is a small survey on the exciting world of Perfect Graphs. We will see when a graph is perfect and which are families

More information

Theorem 2.9: nearest addition algorithm

Theorem 2.9: nearest addition algorithm There are severe limits on our ability to compute near-optimal tours It is NP-complete to decide whether a given undirected =(,)has a Hamiltonian cycle An approximation algorithm for the TSP can be used

More information

VIZING S THEOREM AND EDGE-CHROMATIC GRAPH THEORY. Contents

VIZING S THEOREM AND EDGE-CHROMATIC GRAPH THEORY. Contents VIZING S THEOREM AND EDGE-CHROMATIC GRAPH THEORY ROBERT GREEN Abstract. This paper is an expository piece on edge-chromatic graph theory. The central theorem in this subject is that of Vizing. We shall

More information

A Practical 4-coloring Method of Planar Graphs

A Practical 4-coloring Method of Planar Graphs A Practical 4-coloring Method of Planar Graphs Mingshen Wu 1 and Weihu Hong 2 1 Department of Math, Stat, and Computer Science, University of Wisconsin-Stout, Menomonie, WI 54751 2 Department of Mathematics,

More information

Vertex 3-colorability of claw-free graphs

Vertex 3-colorability of claw-free graphs Algorithmic Operations Research Vol.2 (27) 5 2 Vertex 3-colorability of claw-free graphs Marcin Kamiński a Vadim Lozin a a RUTCOR - Rutgers University Center for Operations Research, 64 Bartholomew Road,

More information

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings On the Relationships between Zero Forcing Numbers and Certain Graph Coverings Fatemeh Alinaghipour Taklimi, Shaun Fallat 1,, Karen Meagher 2 Department of Mathematics and Statistics, University of Regina,

More information

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points MC 0 GRAPH THEORY 0// Solutions to HW # 0 points + XC points ) [CH] p.,..7. This problem introduces an important class of graphs called the hypercubes or k-cubes, Q, Q, Q, etc. I suggest that before you

More information

Disjoint directed cycles

Disjoint directed cycles Disjoint directed cycles Noga Alon Abstract It is shown that there exists a positive ɛ so that for any integer k, every directed graph with minimum outdegree at least k contains at least ɛk vertex disjoint

More information

Coloring edges and vertices of graphs without short or long cycles

Coloring edges and vertices of graphs without short or long cycles Coloring edges and vertices of graphs without short or long cycles Marcin Kamiński and Vadim Lozin Abstract Vertex and edge colorability are two graph problems that are NPhard in general. We show that

More information

Color My World: Who let the computers in?

Color My World: Who let the computers in? : Who let the computers in? Department of Mathematics Florida State University Mathematics Colloquium Florida State University, Tallahassee, FL 17 Nov 2017 Outline Four Color Conjecture Map statement,

More information

Complementary Graph Coloring

Complementary Graph Coloring International Journal of Computer (IJC) ISSN 2307-4523 (Print & Online) Global Society of Scientific Research and Researchers http://ijcjournal.org/ Complementary Graph Coloring Mohamed Al-Ibrahim a*,

More information

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES Volume 2, Number 1, Pages 61 66 ISSN 1715-0868 COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES MARCIN KAMIŃSKI AND VADIM LOZIN Abstract. Vertex and edge colorability are two graph problems

More information

MAT 145: PROBLEM SET 6

MAT 145: PROBLEM SET 6 MAT 145: PROBLEM SET 6 DUE TO FRIDAY MAR 8 Abstract. This problem set corresponds to the eighth week of the Combinatorics Course in the Winter Quarter 2019. It was posted online on Friday Mar 1 and is

More information

Coloring Squared Rectangles

Coloring Squared Rectangles Coloring Squared Rectangles Mark Bun August 28, 2010 Abstract We investigate the 3-colorability of rectangles dissected into squares. Our primary result is a polynomial-time algorithm for deciding whether

More information

Complexity Results on Graphs with Few Cliques

Complexity Results on Graphs with Few Cliques Discrete Mathematics and Theoretical Computer Science DMTCS vol. 9, 2007, 127 136 Complexity Results on Graphs with Few Cliques Bill Rosgen 1 and Lorna Stewart 2 1 Institute for Quantum Computing and School

More information

Greedy algorithms is another useful way for solving optimization problems.

Greedy algorithms is another useful way for solving optimization problems. Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. These

More information

Discrete Mathematics I So Practice Sheet Solutions 1

Discrete Mathematics I So Practice Sheet Solutions 1 Discrete Mathematics I So 2016 Tibor Szabó Shagnik Das Practice Sheet Solutions 1 Provided below are possible solutions to the questions from the practice sheet issued towards the end of the course. Exercise

More information

The Four Color Theorem: A Possible New Approach

The Four Color Theorem: A Possible New Approach Governors State University OPUS Open Portal to University Scholarship All Student Theses Student Theses Fall 2016 The Four Color Theorem: A Possible New Approach Matthew Brady Governors State University

More information

Exercise set 2 Solutions

Exercise set 2 Solutions Exercise set 2 Solutions Let H and H be the two components of T e and let F E(T ) consist of the edges of T with one endpoint in V (H), the other in V (H ) Since T is connected, F Furthermore, since T

More information

Treewidth and graph minors

Treewidth and graph minors Treewidth and graph minors Lectures 9 and 10, December 29, 2011, January 5, 2012 We shall touch upon the theory of Graph Minors by Robertson and Seymour. This theory gives a very general condition under

More information

[8] that this cannot happen on the projective plane (cf. also [2]) and the results of Robertson, Seymour, and Thomas [5] on linkless embeddings of gra

[8] that this cannot happen on the projective plane (cf. also [2]) and the results of Robertson, Seymour, and Thomas [5] on linkless embeddings of gra Apex graphs with embeddings of face-width three Bojan Mohar Department of Mathematics University of Ljubljana Jadranska 19, 61111 Ljubljana Slovenia bojan.mohar@uni-lj.si Abstract Aa apex graph is a graph

More information

Vertex coloring, chromatic number

Vertex coloring, chromatic number Vertex coloring, chromatic number A k-coloring of a graph G is a labeling f : V (G) S, where S = k. The labels are called colors; the vertices of one color form a color class. A k-coloring is proper if

More information

PLANAR GRAPH BIPARTIZATION IN LINEAR TIME

PLANAR GRAPH BIPARTIZATION IN LINEAR TIME PLANAR GRAPH BIPARTIZATION IN LINEAR TIME SAMUEL FIORINI, NADIA HARDY, BRUCE REED, AND ADRIAN VETTA Abstract. For each constant k, we present a linear time algorithm that, given a planar graph G, either

More information

Chordal Graphs: Theory and Algorithms

Chordal Graphs: Theory and Algorithms Chordal Graphs: Theory and Algorithms 1 Chordal graphs Chordal graph : Every cycle of four or more vertices has a chord in it, i.e. there is an edge between two non consecutive vertices of the cycle. Also

More information

Bipartite Roots of Graphs

Bipartite Roots of Graphs Bipartite Roots of Graphs Lap Chi Lau Department of Computer Science University of Toronto Graph H is a root of graph G if there exists a positive integer k such that x and y are adjacent in G if and only

More information

The Full Survey on The Euclidean Steiner Tree Problem

The Full Survey on The Euclidean Steiner Tree Problem The Full Survey on The Euclidean Steiner Tree Problem Shikun Liu Abstract The Steiner Tree Problem is a famous and long-studied problem in combinatorial optimization. However, the best heuristics algorithm

More information

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring Math 443/543 Graph Theory Notes 5: Planar graphs and coloring David Glickenstein October 10, 2014 1 Planar graphs The Three Houses and Three Utilities Problem: Given three houses and three utilities, can

More information

Chapter 8 Independence

Chapter 8 Independence Chapter 8 Independence Section 8.1 Vertex Independence and Coverings Next, we consider a problem that strikes close to home for us all, final exams. At the end of each term, students are required to take

More information

A THREE AND FIVE COLOR THEOREM

A THREE AND FIVE COLOR THEOREM PROCEEDINGS OF THE AMERICAN MATHEMATICAL SOCIETY Volume 52, October 1975 A THREE AND FIVE COLOR THEOREM FRANK R. BERNHART1 ABSTRACT. Let / be a face of a plane graph G. The Three and Five Color Theorem

More information

WORM COLORINGS. Wayne Goddard. Dept of Mathematical Sciences, Clemson University Kirsti Wash

WORM COLORINGS. Wayne Goddard. Dept of Mathematical Sciences, Clemson University   Kirsti Wash 1 2 Discussiones Mathematicae Graph Theory xx (xxxx) 1 14 3 4 5 6 7 8 9 10 11 12 13 WORM COLORINGS Wayne Goddard Dept of Mathematical Sciences, Clemson University e-mail: goddard@clemson.edu Kirsti Wash

More information

Characterization of Super Strongly Perfect Graphs in Chordal and Strongly Chordal Graphs

Characterization of Super Strongly Perfect Graphs in Chordal and Strongly Chordal Graphs ISSN 0975-3303 Mapana J Sci, 11, 4(2012), 121-131 https://doi.org/10.12725/mjs.23.10 Characterization of Super Strongly Perfect Graphs in Chordal and Strongly Chordal Graphs R Mary Jeya Jothi * and A Amutha

More information

Simultaneous Diagonal Flips in Plane Triangulations

Simultaneous Diagonal Flips in Plane Triangulations @ _ d j 5 6 5 6 Simultaneous Diagonal Flips in Plane Triangulations Prosenjit Bose Jurek Czyzowicz Zhicheng Gao Pat Morin David R. Wood Abstract Simultaneous diagonal flips in plane triangulations are

More information

Introduction to Graph Theory

Introduction to Graph Theory Introduction to Graph Theory George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 351 George Voutsadakis (LSSU) Introduction to Graph Theory August 2018 1 /

More information

The following is a summary, hand-waving certain things which actually should be proven.

The following is a summary, hand-waving certain things which actually should be proven. 1 Basics of Planar Graphs The following is a summary, hand-waving certain things which actually should be proven. 1.1 Plane Graphs A plane graph is a graph embedded in the plane such that no pair of lines

More information

On Covering a Graph Optimally with Induced Subgraphs

On Covering a Graph Optimally with Induced Subgraphs On Covering a Graph Optimally with Induced Subgraphs Shripad Thite April 1, 006 Abstract We consider the problem of covering a graph with a given number of induced subgraphs so that the maximum number

More information

Deciding k-colorability of P 5 -free graphs in polynomial time

Deciding k-colorability of P 5 -free graphs in polynomial time Deciding k-colorability of P 5 -free graphs in polynomial time Chính T. Hoàng Marcin Kamiński Vadim Lozin Joe Sawada Xiao Shu April 16, 2008 Abstract The problem of computing the chromatic number of a

More information

Class Six: Coloring Planar Graphs

Class Six: Coloring Planar Graphs Class Six: Coloring Planar Graphs A coloring of a graph is obtained by assigning every vertex a color such that if two vertices are adjacent, then they receive different colors. Drawn below are three different

More information

Vertex coloring, chromatic number

Vertex coloring, chromatic number Vertex coloring, chromatic number A k-coloring of a graph G is a labeling f : V (G) S, where S = k. The labels are called colors; the vertices of one color form a color class. A k-coloring is proper if

More information

Lecture 6: Graph Properties

Lecture 6: Graph Properties Lecture 6: Graph Properties Rajat Mittal IIT Kanpur In this section, we will look at some of the combinatorial properties of graphs. Initially we will discuss independent sets. The bulk of the content

More information

The Konigsberg Bridge Problem

The Konigsberg Bridge Problem The Konigsberg Bridge Problem This is a classic mathematical problem. There were seven bridges across the river Pregel at Königsberg. Is it possible to take a walk in which each bridge is crossed exactly

More information

arxiv:cs/ v1 [cs.ds] 20 Feb 2003

arxiv:cs/ v1 [cs.ds] 20 Feb 2003 The Traveling Salesman Problem for Cubic Graphs David Eppstein School of Information & Computer Science University of California, Irvine Irvine, CA 92697-3425, USA eppstein@ics.uci.edu arxiv:cs/0302030v1

More information

Fixed-Parameter Algorithms, IA166

Fixed-Parameter Algorithms, IA166 Fixed-Parameter Algorithms, IA166 Sebastian Ordyniak Faculty of Informatics Masaryk University Brno Spring Semester 2013 Introduction Outline 1 Introduction Algorithms on Locally Bounded Treewidth Layer

More information

Non-zero disjoint cycles in highly connected group labelled graphs

Non-zero disjoint cycles in highly connected group labelled graphs Non-zero disjoint cycles in highly connected group labelled graphs Ken-ichi Kawarabayashi Paul Wollan Abstract Let G = (V, E) be an oriented graph whose edges are labelled by the elements of a group Γ.

More information

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H. Abstract We discuss a class of graphs called perfect graphs. After defining them and getting intuition with a few simple examples (and one less simple example), we present a proof of the Weak Perfect Graph

More information

Graph Theory Mini-course

Graph Theory Mini-course Graph Theory Mini-course Anthony Varilly PROMYS, Boston University, Boston, MA 02215 Abstract Intuitively speaking, a graph is a collection of dots and lines joining some of these dots. Many problems in

More information

8 Colouring Planar Graphs

8 Colouring Planar Graphs 8 Colouring Planar Graphs The Four Colour Theorem Lemma 8.1 If G is a simple planar graph, then (i) 12 v V (G)(6 deg(v)) with equality for triangulations. (ii) G has a vertex of degree 5. Proof: For (i),

More information

Planar Graphs. 1 Graphs and maps. 1.1 Planarity and duality

Planar Graphs. 1 Graphs and maps. 1.1 Planarity and duality Planar Graphs In the first half of this book, we consider mostly planar graphs and their geometric representations, mostly in the plane. We start with a survey of basic results on planar graphs. This chapter

More information

Partitions and Packings of Complete Geometric Graphs with Plane Spanning Double Stars and Paths

Partitions and Packings of Complete Geometric Graphs with Plane Spanning Double Stars and Paths Partitions and Packings of Complete Geometric Graphs with Plane Spanning Double Stars and Paths Master Thesis Patrick Schnider July 25, 2015 Advisors: Prof. Dr. Emo Welzl, Manuel Wettstein Department of

More information

Graph Coloring Problems

Graph Coloring Problems Graph Coloring Problems Guillermo Durán Departamento de Ingeniería Industrial Facultad de Ciencias Físicas y Matemáticas Universidad de Chile, Chile XII ELAVIO, February 2007, Itaipava, Brasil The Four-Color

More information

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G. MAD 3105 Spring 2006 Solutions for Review for Test 2 1. Define a graph G with V (G) = {a, b, c, d, e}, E(G) = {r, s, t, u, v, w, x, y, z} and γ, the function defining the edges, is given by the table ɛ

More information

Orthogonal art galleries with holes: a coloring proof of Aggarwal s Theorem

Orthogonal art galleries with holes: a coloring proof of Aggarwal s Theorem Orthogonal art galleries with holes: a coloring proof of Aggarwal s Theorem Pawe l Żyliński Institute of Mathematics University of Gdańsk, 8095 Gdańsk, Poland pz@math.univ.gda.pl Submitted: Sep 9, 005;

More information

Lecture 20 : Trees DRAFT

Lecture 20 : Trees DRAFT CS/Math 240: Introduction to Discrete Mathematics 4/12/2011 Lecture 20 : Trees Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we discussed graphs. Today we continue this discussion,

More information

arxiv: v1 [math.co] 7 Dec 2018

arxiv: v1 [math.co] 7 Dec 2018 SEQUENTIALLY EMBEDDABLE GRAPHS JACKSON AUTRY AND CHRISTOPHER O NEILL arxiv:1812.02904v1 [math.co] 7 Dec 2018 Abstract. We call a (not necessarily planar) embedding of a graph G in the plane sequential

More information

On the Induced Matching Problem

On the Induced Matching Problem On the Induced Matching Problem Iyad Kanj a,1, Michael J. Pelsmajer b,2, Marcus Schaefer a, Ge Xia c,3 a DePaul University, Chicago, IL 60604, USA b Illinois Institute of Technology, Chicago, IL 60616,

More information

Bar k-visibility Graphs

Bar k-visibility Graphs Bar k-visibility Graphs Alice M. Dean Department of Mathematics Skidmore College adean@skidmore.edu William Evans Department of Computer Science University of British Columbia will@cs.ubc.ca Ellen Gethner

More information

Acyclic Colorings of Graph Subdivisions

Acyclic Colorings of Graph Subdivisions Acyclic Colorings of Graph Subdivisions Debajyoti Mondal, Rahnuma Islam Nishat, Sue Whitesides, and Md. Saidur Rahman 3 Department of Computer Science, University of Manitoba Department of Computer Science,

More information

Characterizations of graph classes by forbidden configurations

Characterizations of graph classes by forbidden configurations Characterizations of graph classes by forbidden configurations Zdeněk Dvořák September 14, 2015 We consider graph classes that can be described by excluding some fixed configurations. Let us give some

More information

The Art Gallery Problem: An Overview and Extension to Chromatic Coloring and Mobile Guards

The Art Gallery Problem: An Overview and Extension to Chromatic Coloring and Mobile Guards The Art Gallery Problem: An Overview and Extension to Chromatic Coloring and Mobile Guards Nicole Chesnokov May 16, 2018 Contents 1 Introduction 2 2 The Art Gallery Problem 3 2.1 Proof..................................

More information

Combinatorics Summary Sheet for Exam 1 Material 2019

Combinatorics Summary Sheet for Exam 1 Material 2019 Combinatorics Summary Sheet for Exam 1 Material 2019 1 Graphs Graph An ordered three-tuple (V, E, F ) where V is a set representing the vertices, E is a set representing the edges, and F is a function

More information

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60 CPS 102: Discrete Mathematics Instructor: Bruce Maggs Quiz 3 Date: Wednesday November 30, 2011 NAME: Prob # Score Max Score 1 10 2 10 3 10 4 10 5 10 6 10 Total 60 1 Problem 1 [10 points] Find a minimum-cost

More information

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph Graphs and Trees Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) who is connected to whom Web search views web pages as a graph Who points to whom Niche graphs (Ecology):

More information

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees Pinar Heggernes Pim van t Hof Benjamin Léveque Christophe Paul Abstract We study the following two graph modification problems: given

More information

Basics of Graph Theory

Basics of Graph Theory Basics of Graph Theory 1 Basic notions A simple graph G = (V, E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements of V called edges. Simple graphs have their

More information

Diskrete Mathematik und Optimierung

Diskrete Mathematik und Optimierung Diskrete Mathematik und Optimierung Stephan Dominique Andres Winfried Hochstättler: A strong perfect digraph theorem Technical Report feu-dmo026.11 Contact: dominique.andres@fernuni-hagen.de, winfried.hochstaettler@fernuni-hagen.de

More information

Graph and Digraph Glossary

Graph and Digraph Glossary 1 of 15 31.1.2004 14:45 Graph and Digraph Glossary A B C D E F G H I-J K L M N O P-Q R S T U V W-Z Acyclic Graph A graph is acyclic if it contains no cycles. Adjacency Matrix A 0-1 square matrix whose

More information

Lecture Notes on Graph Theory

Lecture Notes on Graph Theory Lecture Notes on Graph Theory Vadim Lozin 1 Introductory concepts A graph G = (V, E) consists of two finite sets V and E. The elements of V are called the vertices and the elements of E the edges of G.

More information

The Grötzsch Theorem for the hypergraph of maximal cliques

The Grötzsch Theorem for the hypergraph of maximal cliques The Grötzsch Theorem for the hypergraph of maximal cliques Bojan Mohar and Riste Škrekovski Department of Mathematics, University of Ljubljana, Jadranska 19, 1111 Ljubljana Slovenia bojan.mohar@uni-lj.si

More information

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS MS 41: PH THEOY 2016 EXM SOLUTIONS 1. Question 1 1.1. Explain why any alkane C n H 2n+2 is a tree. How many isomers does C 6 H 14 have? Draw the structure of the carbon atoms in each isomer. marks; marks

More information

Properties of configurations of four color theorem

Properties of configurations of four color theorem Properties of configurations of four color theorem 1 2 3 4 U. Mohan ChandP P, Dr.B. RamireddyP P, Dr. A. Srikrishna ChaitanyaP P, Dr. B.R. SrinivasP 1) Associate Professor of Mathematics & H.O.D, Rise

More information

Spanning trees and orientations of graphs

Spanning trees and orientations of graphs Journal of Combinatorics Volume 1, Number 2, 101 111, 2010 Spanning trees and orientations of graphs Carsten Thomassen A conjecture of Merino and Welsh says that the number of spanning trees τ(g) of a

More information

arxiv: v4 [math.co] 4 Apr 2011

arxiv: v4 [math.co] 4 Apr 2011 Upper-critical graphs (complete k-partite graphs) José Antonio Martín H. Faculty of Computer Science, Complutense University of Madrid, Spain arxiv:1011.4124v4 [math.co] 4 Apr 2011 Abstract This work introduces

More information

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time: 1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time: Input: A CNF formula ϕ with n variables x 1, x 2,..., x n. Output: True if there is an

More information

ADJACENCY POSETS OF PLANAR GRAPHS

ADJACENCY POSETS OF PLANAR GRAPHS ADJACENCY POSETS OF PLANAR GRAPHS STEFAN FELSNER, CHING MAN LI, AND WILLIAM T. TROTTER Abstract. In this paper, we show that the dimension of the adjacency poset of a planar graph is at most 8. From below,

More information

Drawing Planar Graphs

Drawing Planar Graphs Drawing Planar Graphs Lucie Martinet November 9, 00 Introduction The field of planar graph drawing has become more and more important since the late 960 s. Although its first uses were mainly industrial,

More information

Acyclic Edge Colouring of 2-degenerate Graphs

Acyclic Edge Colouring of 2-degenerate Graphs Acyclic Edge Colouring of 2-degenerate Graphs Chandran Sunil L., Manu B., Muthu R., Narayanan N., Subramanian C. R. Abstract An acyclic edge colouring of a graph is a proper edge colouring such that there

More information

5 Graphs

5 Graphs 5 Graphs jacques@ucsd.edu Some of the putnam problems are to do with graphs. They do not assume more than a basic familiarity with the definitions and terminology of graph theory. 5.1 Basic definitions

More information

Assignment 1 Introduction to Graph Theory CO342

Assignment 1 Introduction to Graph Theory CO342 Assignment 1 Introduction to Graph Theory CO342 This assignment will be marked out of a total of thirty points, and is due on Thursday 18th May at 10am in class. Throughout the assignment, the graphs are

More information