English

A linear time algorithm for L(2,1)-labeling of trees

Data Structures and Algorithms 2010-11-25 v2

Abstract

An L(2,1)-labeling of a graph GG is an assignment ff from the vertex set V(G)V(G) to the set of nonnegative integers such that f(x)f(y)2|f(x)-f(y)|\ge 2 if xx and yy are adjacent and f(x)f(y)1|f(x)-f(y)|\ge 1 if xx and yy are at distance 2, for all xx and yy in V(G)V(G). A kk-L(2,1)-labeling is an assignment f:V(G){0,...,k}f:V(G)\to\{0,..., k\}, and the L(2,1)-labeling problem asks the minimum kk, which we denote by λ(G)\lambda(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 a very few classes for which the problem is polynomially solvable. The running time of the best known algorithm for trees had been \mO(Δ4.5n)\mO(\Delta^{4.5} n) for more than a decade, however, an \mO(n1.75)\mO(n^{1.75})-time algorithm has been proposed recently, which substantially improved the previous one, where Δ\Delta is the maximum degree of TT and n=V(T)n=|V(T)|. In this paper, we finally establish a linear time algorithm for L(2,1)-labeling of trees.

Keywords

Cite

@article{arxiv.0810.0906,
  title  = {A linear time algorithm for L(2,1)-labeling of trees},
  author = {Toru Hasunuma and Toshimasa Ishii and Hirotaka Ono and Yushi Uno},
  journal= {arXiv preprint arXiv:0810.0906},
  year   = {2010}
}

Comments

23 pages, 3 figures

R2 v1 2026-06-21T11:27:37.104Z