图论第6章
- 格式:ppt
- 大小:1.11 MB
- 文档页数:76
§6.5 染色应用举例—求图的边色数及色数的算法一、排课表问题—求二部图的正常)(G χ′边染色1. 问题: 有m 位教师m x x x ,,,21 ,n 个班级n y y y ,,,21 。
教师x i 每周需要给班级y j 上p ij 次(节)课。
要求制订一张周课时尽可能少的课程表。
2. 图论模型:构造二部图),(Y X G =,其中X ={m x x x ,,,21 },Y ={n y y y ,,,21 },顶点i x 与j y 之间连ij p 条边。
一个课时的安排方案对应于二部图G 的一个匹配。
排课表问题等价于:将E (G )划分成一些匹配,使得匹配的数目尽可能地少。
按)(G χ′的定义,这个最小的数目便是)(G χ′。
由定理6.2.1,()()G G χ′=Δ。
因此,排课表问题等价于:求二部图G 的边正常)(G Δ染色。
如§6.1中所述,虽然求简单图的正常(1+Δ)边染色存在多项式时间算法,但求简单图G 的边色数)(G χ′及其相应的正常边染色是一个NPC 问题[28]。
尽管如此,求二部图的边正常Δ染色却有多项式时间算法。
求图的边色数的近似算法可参考文献[29]~[51]。
[28] I. Holyer, The NP-completeness of edge-coloring, SIAM J. Computing , 10: 4(1981), 718-720.[29] E. Petrank, The hardness of approximation: gap location, Computational Complexity , 4 (1994), 133-157.[30] D. Leven and Z. Galil, NP completeness of finding the chromatic index of regular graphs, J. Algorithms , 4(1983) 35-44.[31] P. Crescenzi, V . Kann, R. Silvestri, and L. Trevisan, Structure in approximation classes, SIAM J. Comp., 28 (1999), 1759-1782.[32] J. Misra and D. Gries, A constructive proof of Vizing's theorem. Inform. Process. Lett. 41 (1992), 131-133.[33] O. Terada, and T. Nishizeki, Approximate algorithms for the edge-coloring of graphs, Trans. Inst. Eletron. Commun. Engr. Japan J65-D , 11(1982), 1382-1389.[34] M. Chrobak, and T. Nishizeki, Improved edge-coloring algorithms for planar graphs, J. Algorithms , 11(1990), 102-116.[35] I. Caragiannis, A. Ferreira, C. Kaklamanis, S. Perennes, P. Persiano and H. Rivano, Approximate constrained bipartite edge coloring, Discrete Applied Mathematics , 143(2004), 54-61[36] M. R. Salavatipour, A polynomial time algorithm for strong edge coloring of partial k -trees, Discrete Applied Mathematics , 143(2004), 285-291.[37] D.A. Grable, A. Panconesi, Nearly optimal distributed edge coloring in O (log log n ) rounds, Proceedings of the Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, January, (1997), 278–285.[38] Yijie Han, Weifa Liang and Xiaojun Shen, Very fast parallel algorithms for approximate edge coloring, Discrete Applied Mathematics, 108(2001), 227-238.[39] M. Fürer and B. Raghavachari, Parallel edge coloring approximation, Parallel Process. Lett. , 6 (1996), 321–329.[40] H.J. Karloff and D.B. Shmoys, Efficient parallel algorithms for edge coloring problems. J. Algorithms 8 (1987), 39–52.[41] W. Liang, Fast parallel algorithms for the approximate edge-coloring problem. Inform. Process. Lett. 56 (1995), 333–338.[42] W. Liang, X. Shen and Q. Hu, Parallel algorithms for the edge-coloring and edge-coloring update problems. J. Parallel Distrib. Comput. 32 (1996), 66-73.[43] R. Motwani, J. Naor and M. Naor, The probabilistic method yields deterministic parallel algorithms. J. Comput. System Sci. 49 (1994), 478-516.[44] D. Bertsimas, C-P. Teo, and R. V ohra, On dependent randomized rounding algorithms, Proc. 5th Int. Conf. on Integer Prog. and Combinatorial Optimization , Lecture Notes in Comput. Sci. 1084, Springer-Verlag, (1996), 330-344.[45] M.K. Goldberg, Edge-colorings of multigraphs: recoloring technique, J. Graph Theory , 8(1984), 123-127.[46] D.S. Hochbaum, T. Nishizeki and D.B. Shmoys, Better than “Best Possible” algorithm to edge color multi graphs, Journal of Algorithms , 7(1986), 79-104[47] T. Nishizeki and K. Kashiwagi, On the 1.1 edge-coloring of multigraphs, SIAM J. Disc. Math. , 3(1990), 391-410.[48] J. Kahn, Asymptotics of the chromatic index for multigraphs, Journal of Combinatorial Theory (Ser. B ), 68(1996), 233-254.[49] X. Zhou H. Susuki, and T. Nishizeki, A linear algorithm for edge-coloring series-parallel multigraphs, J. Algorithms , 20(1996), 174-201.[50] X. Zhou H. Susuki, and T. Nishizeki, An NC parallel algorithm for edge-coloring series-parallel multigraphs, J. Algorithms , 23(1997), 359-374.[51] B. Berger and J. Rompel, Simulating (log c n )-wise independence in NC. J. ACM 38 (1991), 1026–1046.3. 求二部图),(Y X G =的边正常)(G Δ染色的算法z 算法思想:给G 添加必要的顶点使得||||Y X =,再添加必要的边使得G 成为)(G Δ正则二部图,所得图记为*G ,然后反复运用匈牙利算法求*G 的完美匹配。
第六章 染色理论许多实际问题可以归结为求图的匹配或者独立集。
此外,在许多应用中,人们希望知道:一个给定的图,它的边集至少能划分成多少个边不交的匹配?或它的顶点集至少能划分成多少个点不交的独立集?这便是图的边染色和顶点染色问题。
§6.1 点染色定义6.1.1 设G 是一个无环边的图。
G 的顶点正常k 染色(proper vertex k-colouring)π是指k 种颜色k ,,,L 21对于G 的各顶点的一种分配,使得任二相邻的顶点被染上不同的颜色。
换句话说,G 的顶点正常k 染色π是一个映射},,2,1{)(:k G V L →π,使得)(1i −π是独立集或空集),,2,1(k i L =.注:设π是G 的一个顶点正常k 染色。
令})(|)({)(V 1i x G V x i i =∈==−ππ,(k i ,,2,1L =)。
则π实际上是对顶点集)(G V 的一种划分:),,,(21k V V V L =π,其中φ=j i V V I ,)(1G V Vki i==U ,且每个i V 是独立集或空集),,2,1(k i L =.例:定义6.1.2 若存在G 的一种顶点正常k 染色,则称图G 是点k 色可染的(vertex k-colourable), 有时简称为k 色可染的或可k 染色的。
注:⑴ 每个图G 一定是)(G ν色可染的。
⑵ 若图G 是k 色可染的,则对任何正整数k m ≥,G 也m 色可染。
定义6.1.3 设G 是无环边的图,令G k G |min{)(=χ是k 色可染的},称)(G χ为G 的点色数,有时简称为色数(chromatic number)。
若k G =)(χ,则称G 为k 色图(k-chromatic graph)。
注:(1) 若k G =)(χ(即G 是k 色图),则G 中任何点k 染色),,,(21k V V V L =π中每个i V 都是非空的独立集。
第六章图的基本概念P习题2061.画出具有4个顶点的所有无向图(同构的只算一个)。
11个2.画出具有3个顶点的所有有向图(同构的只算一个)。
16个3.画出具有4个、6个、8个顶点的三次图。
略4.某次宴会上,许多人互相握手。
证明:握过奇数次手的人数为偶数(注意,0是偶数)。
把实际问题转化为图论问题,然后用握手定理的推论。
P习题2091.设u与v是图G的两个不同顶点。
若u与v间有两条不同的通道(迹),则G 中是否有圈?若u与v间有两条不同的通道,G中无圈若u与v间有两条不同的迹,G中有圈2.证明:一个连通的(p,q)图中q≥p-1。
数学归纳法3.设G是一个(p,q)图,且2/)2>p-q,则G是连通的。
p)(1(-6.在一个有n个人的宴会上,每个人至少有m个朋友(2≤m≤n)。
试证:有不少于m+1个人,使得他们按某种方法坐在一张圆桌旁,每人的左、右均是他的朋友。
证明:把实际问题转化为图论问题,就和下面的题一样了。
8.设G是图。
证明:若δ(G)≥2,则G包含长至少是δ(G)+1的圈。
这两个题和这个题一样的证明方法。
P习题2161.证明:若图G不是连通图,则G c 是连通图。
2.证明:每一个自补图有4n或4n+1个顶点。
P习题2281.给出一个10个顶点的非哈密顿图的例子,使得每一对不邻接的顶点u和v,均有:degu+degv≥9。
下图中任意一对不邻接的顶点u和v,均有:degu+degv≥9。
2.试求Kp中不同的哈密顿圈的个数。
(p-1)!/24.完全偶图Km,n为哈密顿图的充分必要条件是什么?10.证明具有奇数顶点的偶图不是哈密顿图。