Online edge coloring of paths and trees with a fixed number of colors

We study a version of online edge coloring, where the goal is to color as many edges as possible using only a given number, k, of available colors. All of our results are with regard to competitive analysis. Previous attempts to identify optimal algorithms for this problem have failed, even for bipartite graphs. Thus, in this paper, we analyze even more restricted graph classes, paths and trees. For paths, we consider $$k=2$$k=2, and for trees, we consider any $$k \ge 2$$k≥2. We prove that a natural greedy algorithm called $${\textsc {First-Fit}}$$FIRST-FIT is optimal among deterministic algorithms, on paths as well as trees. For paths, we give a randomized algorithm, which is optimal and better than the best possible deterministic algorithm. For trees, we prove that to obtain a better competitive ratio than $${\textsc {First-Fit}}$$FIRST-FIT, the algorithm would have to be both randomized and unfair (i.e., reject edges that could have been colored), and even such algorithms cannot be much better than $${\textsc {First-Fit}}$$FIRST-FIT.

[1]  Rajeev Motwani,et al.  The Greedy Algorithm is Optimal for On-Line Edge Coloring , 1992, Inf. Process. Lett..

[2]  Hal A. Kierstead,et al.  Coloring Graphs On-line , 1996, Online Algorithms.

[3]  Joan Boyar,et al.  The relative worst order ratio applied to paging , 2005, SODA '05.

[4]  Robert E. Tarjan,et al.  Amortized efficiency of list update and paging rules , 1985, CACM.

[5]  Lene M. Favrholdt,et al.  Comparing First-Fit and Next-Fit for online edge coloring , 2010, Theor. Comput. Sci..

[6]  Uriel Feige,et al.  Approximating Maximum Edge Coloring in Multigraphs , 2002, APPROX.

[7]  Joan Boyar,et al.  The relative worst order ratio for online algorithms , 2007, TALG.

[8]  Joan Boyar,et al.  The Seat Reservation Problem , 1999, Algorithmica.

[9]  Romeo Rizzi Approximating the maximum 3-edge-colorable subgraph problem , 2009, Discret. Math..

[10]  Zhi-Zhong Chen,et al.  Approximating maximum edge 2-coloring in simple graphs , 2010, Discret. Appl. Math..

[11]  Allan Borodin,et al.  Online computation and competitive analysis , 1998 .

[12]  Anna R. Karlin,et al.  Competitive snoopy caching , 1986, 27th Annual Symposium on Foundations of Computer Science (sfcs 1986).

[13]  Adrian Kosowski Approximating the maximum 2- and 3-edge-colorable subgraph problems , 2009, Discret. Appl. Math..

[14]  Andrew Chi-Chih Yao,et al.  Probabilistic computations: Toward a unified measure of complexity , 1977, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977).

[15]  Tao Jiang,et al.  Tight Bounds on the Competitive Ratio on Accommodating Sequences for the Seat Reservation Problem , 2003, J. Sched..

[16]  Morten N. Nielsen,et al.  On-Line Edge-Coloring with a Fixed Number of Colors , 2000, Algorithmica.

[17]  Lukasz Kowalik,et al.  Beyond the Vizing's Bound for at Most Seven Colors , 2014, SIAM J. Discret. Math..