A Linear Time Algorithm for L(2,1)-Labeling of Trees
A Linear Time Algorithm for L(2,1)-Labeling of Trees
复制标题
DOI:
10.1007/s00453-012-9657-z
复制
发表时间:
2008-10
期刊:
影响因子:
1.1
通讯作者:
Toru Hasunuma;Toshimasa Ishii;H. Ono;Yushi Uno
中科院分区:
文献类型:
--
作者:
Toru Hasunuma;Toshimasa Ishii;H. Ono;Yushi Uno
AnL(2,1)-labeling of a graphGis an assignmentffrom the vertex setV(G) to the set of nonnegative integers such that |f(x)−f(y)|≥2 ifxandyare adjacent and |f(x)−f(y)|≥1 ifxandyare at distance 2, for allxandyinV(G). Ak-L(2,1)-labeling is anL(2,1)-labelingf:V(G)→{0,…,k}, and theL(2,1)-labeling problem asks the minimumk, which we denote byλ(G), among all possible assignments. It is known that this problem is NP-hard even for graphs of treewidth 2, and tree is one of very few classes for which the problem is polynomially solvable. The running time of the best known algorithm for trees had been O(Δ4.5n) for more than a decade, and an O(min{n1.75,Δ1.5n})-time algorithm has appeared recently, whereΔandnare the maximum degree and the number of vertices of an input tree, however, it has been open if it is solvable in linear time. In this paper, we finally settle this problem by establishing a linear time algorithm forL(2,1)-labeling of trees. Furthermore, we show that it can be extended to a linear time algorithm forL(p,1)-labeling with a constantp.