THE
L(2,
1)-LABELING
PROBLEM
ON GRAPHS*GERARD J.
CHANGe
AND DAVIDKUO
Abstract. An L(2,1)-labelingofagraph Gis a function f from the vertex set V(G) tothe
set of all nonnegative integers such that
If(x)-
f(Y)l->
2 ifd(x,y) 1 and If(x) f(Y)l->
i ifd(x,y) 2. The5(2,1)-labeling number/k(G) ofG isthe smallest number k such that G has an
5(2,1)-labelingwith max{f(v):vE V(G)} k. Inthis paper,wegive exact formulas ofA(G2H)
and A(G
+
H). Wealso prove that A(G)_
A2+
A for anygraph G ofmaximumdegree A. Forodd-sun-free(OSF)-chordalgraphs,the upper boundcanbereduced toA(G)
_
2A+
1. Forsun-free(SF)-chordalgraphs, the upper boundcanbe reduced toA(G)
_
A+
2X(G 2. Finally,wepresentapolynomialtime algorithmto determineA(T)foratreeT.
Key words. L(2,1)-labeling,T-coloring, union, join, chordalgraph, perfect graph, tree,
bipar-titematching, algorithm
AMS subjectclassifications. 05C15, 05C78
1. Introduction. The channel assignmentproblemis to assign achannel
(non-negative
integer)
toeachradio transmittersothatinterferingtransmitters areassigned channels whose separation is not in aset of disallowed separations. Hale[11]
formu-lated this problem into thenotion ofthe T-coloring ofa graph, and the T-coloring problem has been extensively studied overthe past decade(see
[4,
5,
7,
13,14, 16,
17,
19]).
Roberts
[15]
proposed a variation ofthe channel assignment problem in which "close" transmitters must receive different channels and"very
close" transmittersmust receivechannelsthatare at leasttwochannels apart.
To
formulate the problem in graphs, the transmitters are represented by the vertices of a graph; two vertices are"very
close" ifthey are adjacent in the graph and "close" ifthey are of distance twointhegraph.More
precisely, anL(2,
1)-labeling
ofagraphG
is afunctionf
from the vertex setV(G)
to the set ofall nonnegative integers such thatIf(x)- f(Y)l
>-
2 ifd(x,
y)
1 andIf(x)
f(Y)l
->
1 ifd(x,
y)
2.A
k-L(2,
1)-labeling
is anL(2,
1)-labelingsuchthatnolabelisgreater thank. The
L(2,
1)-labeling
numberofG,
denoted byA(G),
is the smallest numberk such thatG
has ak-L(2,
1)-labeling.
Griggs and Yeh
[10]
and Yeh[21]
determined the exact values ofA(P),
A(C),
andA(W),
whereP
is a path of n vertices,Cn
is a cycle of n vertices, andWn
is an n-wheel obtained from
Cn
by adding a new vertex adjacent to all vertices inC.
For
the n-cubeQ,
Jonas
[12]
showed that n+
3_<
A(Q).
Griggsand Yeh[10]
showed that
i(Qn)
_<
2n+
1 for n_>
5. They also determinedA(Q)
for n_<
5 and conjecturedthat thelowerboundn+
3isthe actual valueofA(Q)
forn_>
3. Usingacodingtheory
method,
Whittlesey,Georges,
andMauro
[20]
proved that/(Qn)
_
2k+
2k-q+12,
where n_<
2k-q and 1_<
q_<
k+
1.In
particular,A(Q2k-k-1)
_<
2}1.
As
aconsequence,A(Qn)
_<
2nfor n_>
3.Receivedbythe editors March 10, 1993; acceptedfor publication (in revisedform) August 1,
1995.
DepartmentofApplied Mathematics,National ChiaoTungUniversity, Hsinchu30050,Taiwan,
Republicof China(gjchang@math.nctu.edu.tw). Thisresearchwassupportedinpartbythe National
Science Councilundergrant NSC82-0208-M009-050. The researchof the first authorwassupported
inpartbyDIMACS.
309
310 GERARD J. CHANG AND DAVID KUO
For
atreeT
withmaximumdegreeA
>
1, Griggs andYeh[10]
showedthatA(T)
iseitherA
+
1orA
+
2. They provedthat theL(2,
1)-labeling
problemisNP-complete for general graphsandconjecturedthat theproblem is also NP-complete for trees.For
a general graphG
ofmaximum degreeA,
Griggs and Yeh[10]
proved thatA(G) <
A2+
2A. The upperboundwasimprovedto beA(G)
<
A2+
2A-3whenG
is3-connected and
A(G) <
A
2 whenG
is ofdiameter two. Griggs andYeh conjecturedthat
A(G) <
A
2 ingeneral.To
studythis conjecture, Sakai[18]
considered the class of chordal graphs. Sheshowed thatA(G)
< (A
+
3)2/4
for any chordalgraphG.
For
a unit interval graph
G,
which is avery special chordal graph, she also proved that2x(G)-
2_<
A(G)
_<
2x(G).
Thepurposeofthis paperistostudy Griggsand Yeh’s conjectures.
We
alsostudyL(2,
1)-labeling
numbersofthe union and the join oftwo graphstogeneralize resultson the n-wheelthat is thejoin of
Cn
andK1.
For
this purpose and afurther reason that will become clear in3,
weintroducearelatedproblem,whichwecall theU(2,
1)-labelingproblem. The definitionsofan
L’(2, 1)-labelin9
f,
ak-L’(2,
1)-labelin9
f,
and theL’(2, 1)-labelin9
numberA’(G)
are the same as those ofanL(2,
1)-labeling f,
ak-L(2,
1)-labeling f,
and theL(2,
1)-labeling
numberA(G),
respectively, except that the functionf
is required to be one-to-one. There is a natural connection betweenA’(G)
and the path partition numberp(G
)
ofthe complementG
ofG. For
any graphG,
thepathpartition numberp(G)
is theminimumnumber k such thatV(G)
can bepartitioned intok paths.
The rest of this paper is organized asfollows. Section 2 gives general properties of
A(G)
andA’(G).
Section 3 studiesA(GtOH), A(G+H),
A’(GUH),
andA’(G+H).
Section 4 proves thatA(G)
_< A
2+
A
for a general graphG
ofmaximum degreeA.
This result improves on Griggs and Yeh’s resultA(G)
<
A
2+
2A.However,
there is stilla gap intheconjecture
A(G) <
A2.
Section 5 studies the upperbounds for subclasses ofchordal graphs. Section 6 presents a polynomial time algorithm to determineA(T)
ofatreeT.
A
refereepoints out thatGeorges,
Mauro,
and Whittlesey[8]
alsosolvedA(G+H)
andpv(G
+
H)
by a different approach. They actually gave the solutions without introducing the notionofA’;
seethe remarks afterLemmas
2.3 and 3.4.2. Basic properties of
A
andA
’.
<_
<_
for
of
aH.
LEMMA
2.2.A(G)
_<
A’(G) for
anygraphG.
A(G)
A’(G) if
G
isof
diameter at most two.LEMMA
2.3.pv(G)
A’(G
c)
-IV(G)I
+
2for
anygraphG.
Proof.
Suppose
f
is aA’(GC)-L’(2,
1)-labeling
ofG
.
Note
that forany two vertices x and y inV(G),
iff(x)
f(y)
+
1, then(x,y)
E(G)
and so(x,y) e
E(G).
Consequently, asubsetofverticeswhoselabelsformaconsecutivesegment ofintegers form apath in
G.
However,
there are at mostA’(G)
-IV(G)I
+
2 such consecutive segments ofintegers. Thus p(G) < A’(G)
IV
(G)]
+
2.On
theotherhand,
supposeV(G)
can be partitionedinto kp(G)
paths inG,
say,
(v,l,
v,2,...,v,ni)
for 1<
<
k. Consideradummy path(v0,1)
and definef
byf(v,j)
f(v-.,n,_)
+
2,f(v,j_)
+
1,
if 0 and j
1;
if 1<
<
k and j 1; if 1<
i<
k and 2<
j<
ni.It
isstraightforwardtocheckthatf
is a(k+IV(G)I-2)-L’(2,
1)-labeling
ofG
c.
Hence
A’(G)
<
k+
IV(G)I
2;
i.e.,pv(G) >_
i’(G)
-IV(G)I
+
2. [3Remark.
Georges,
Mauro,
and Whittlesey[8,
Thm.1.1]
provedthatforanygraphG
ofn vertices the following twostatements hold.(i)/(G) <
n- 1 if andonlyifpv(G
)
1.(ii)
Suppose
r is an integer greater than 1.A(G)
n+r-2
if and only ifNote
thatanL(2,
1)-labeling
ispreciselyaproper vertexcoloringwithsomeextra conditionsonall vertex pairsofdistanceat most two.So,
A(G)
hasanaturalrelation with the chromatic numberx(G).
For
any fixed positive integerk,
thekthpowerofagraphG
isthegraphG
whose vertex setV(G
)
V(G)
and edgesetE(G
k)
{(x,
y)"
1da(x,
y)
k}.
LEMMA
2.4.x(G)
1A(G)
2x(G
2)
2for
any graphG.
Proof.
x(G)-
1A(G)
follows from definitions.A(G)
2x(G
2)
2 follows fromthefact that for any proper vertexcoloringf
ofG
,
2f-
2 is anL(2,
1)-labeling
ofG.
The neighborhood
N(x)
ofavertex xis thesetofall verticesy adjacent to x. The closed neighborhoodNix]
ofxis{x}
N(x).
LEMMA
2.5(see
[10]). A(G)
A
+
1for
any graphG
of
maximum degree.
If
A(G)
A
+
1,
thenf(v)
0 orA
+
1for
anyA(G)-L(2,
1)-labeling
f
and any vertexv
of
maximum degreeA.
In
this case,Nix]
contains at most two verticesof
degreeA
for
any xV(G).
LEMMA
2.6.’(C3)= ’(C4)
4 andA’(C)
-n- 1for
n 5.Proo
The cases ofC3
andC
are easy to verify.For
n5,
A(G)
n- 1 by definition.Let
v0, Vl,...,vn-1 bevertices ofC
such thatv
is adjacent to V+l for0 n-
1,
wherev
v0. Consider the folIowing labeling:f(v)
{
i/2,
if 0 n- 1 and is even;[n/2
+
[i/2
-1,if0in-landiisodd.
It
isstraightforwardtocheckthatf
is an(n-
1)-L’(2,
1)-labeling
ofCn.
So
A’(C)
n-1.
H
LEMMA
2.7.A’(P)
0,
A’(P2)
2,
A’(P3)
3,
andA’(Pn)
-n- 1for
n 4.Proof.
The casesofP1,
P2, P3,
andP4
areeasy toverify.For
n5,
A(P)
n- 1 bydefinition.Last,
A’(P)
A’(C)
n-1 byLemmas
2.1 and 2.6.H
3. Union andjoin ofgraphs.
Suppose G
andH
aretwo graphswithdisjoint vertex sets. The unionofG
andH,
denoted byG
H,
is the graph whose vertex set isV(G) V(H)
and edge set isE(G)
E(H).
The join ofG
andH,
denoted byG
+
H,
is thegraph obtainedfromG
H
by adding all edges between vertices inV
(G)
andvertices inV(H).
LEMMA
3.1.A(G
H)
max{A(G),
A(H)}
for
any two graphsG
andH.
Proof.
A(G
H)
max{A(G),
A(H)}
follows fromLemma
2.1 and the fact thatG
andH
are subgraphs ofG
H.
On
the otherhand,
anL(2,
1)-labeling
ofG
together with anL(2,
1)-labeling
ofH
makes anL(2,
1)-labeling
ofG
H.
Hence
H)
LEMMA
3.2.A’(G
H)
max{A’(G), A’(H),
]V(G)[
+
]V(H)]-
1}
for
any two graphsG
andH.
Proo
A’(G H)
max{A’(G),
A’(H)}
followsfromLemma
2.1 andthe factthatG
andH
aresubgraphs ofG
H.
A’(G
H)
V(G)I
+
V(H)-
1 followsfrom the definition of.
312 GERARDJ. CHANG AND DAVID KUO
Assume
f
is aA’(G)-L’(2,
1)-labeling
ofG.
Thereare notwo consecutive integers x<
y in[0,
A’(G)]
that are not labels ofvertices ofG;
otherwise we can"compact"
thefunction
f
to get a(A’(G)- 1)-L’(2,
1)-labeling
f’
ofG
defined byf’(v)
{
f(v)’
iff
(v) <
x;
f
(v)
l,
iff(v)>x.
For
the case whereA’(G)
> IV/)I
/IVIH)I-
1,
here are at leastIVIH)I
pairwisenonconsecutive integers in
[0,
A’(G)]
that are not labelsofvertices ofG.
We
canusethem to label the vertices of
H.
This yields aA’(G)-L’(2,
1)-labeling
ofG
UH.
For
thecase whereA’(H) >
IVIGDI
/IVIHDI-
1, similarly, thereexists aA’(H)-L’(2,
1)-labeling of
G
UH.
For
the case wheremax{A’(G),A’(H)}
<
withoutlossof generality,wemay assumethat
]V(G)I
>
IV(H)].
Let
f
beak-L’(2,
1)-labeling of
G
such that k<
IV/)I
/IV(H)I-
and there are no two consecutiveintegers in
[0, k]
that are not labels ofvertices ofG.
Such anf
exists for kA’(G).
If
< IV()l
/IV(H)I-
3,
then k<
21v(G)l-
3 and sothere existtwo consecutivelabels x
<
y.In
this case, we can"separate"
f
to get a(k
+
1)-L’(2,
1)-labeling
f’
defined byf’
(v)
{
f(v),
iff
(v) <
x;
f
(v)
+
l,iff(v)>y.
Continuingthisprocess,weobtaina
k-L’(2,
1)-labeling
such thatIV(G)]+IV(H)I-2
<
k
<
]V(G)I
+
IV(H)I-
1 and there are no two consecutive integers in[0, k]
that arenot labels of vertices of
G.
UsingIV(H)]
nonlabels in[0, ]V(G)I
+
IV(H)I-
1]
to label the vertices inH,
we get a(IV(G)]
+
IV(H)]- 1)-L’(2,
1)-labeling
ofG
UH.
By
theconclusionsofthe abovethree cases,A’(GU
H) <
max{A’(G), A’(H), ]V(G)I
+
IV(H)I
1}.
n
LEMMA
3.3.pv(G
UH)
pv(G)
+
pv(H)
for
any two graphsG
andH.
Proof.
Theproofisobvious.LEMMA
3.4.A(G
+
H)
A’(G
+
H)
A’(G)
+
A’(H)
+
2for
any two graphsG
andH.
Proof.
A(G
+
H)
A’(G
+
H)
follows fromLemma
2.2 and thefactthatG
+
H
isofdiameter at most two.
Also,
pv((G
+
H)
c)
+
IV(G
+
H)I-
2(by
Lemma
2.3)
p(G
UH
)
+
IV(G)I
+
IV(H)I-p(G
)
+
,(H
)
+
IV(G)I
+
IV(H)I-
(by Lmm
3.3)
A’(G)+ A’(H)+
2(by
Lemma
2.3).
ElRemark.
Georges,
Mauro,
and Whittlesey[8,
Cor.
4.6]
proved thatA(G
+
H)
max{IV(G)l-
1,A(G)}
+
max{IV(H)l-
1,/(H)}
+
2.LEMMA
3.5.p(G
+
H)
max{p(G) -IV(H)I,p(H)
-IV(G)I, 1} for
any two graphsG
andH.
Proof.
p,(C+H)
A’((G
+
H) ) -IV(G
+
H)I
+
2(by
Lemma
2.3)
,’(G u
H
)
-IV(a)l-
IV(g)l
+
2max{A’(G),A’(H), IV(G)I
/IV(H)I- 1}
-Iv(G)I-
IV(H)I
+
2(by
Lemma
3.2)
max{)’(G
)
-IV(a)l-4-
2-IV(H)I,V(H
) -IV(H)I
+
2-IV(a)l, 1}
max{pv(G)-
IV(H)I,p(H)-
Iv(G)I, x)
(by
Lemma
2.3).
ElCographsare definedrecursively by the following rules.
(1)
A
vertexis a cograph.(2)
IfG
is acograph, then sois its complementG
c.
(3)
IfG
andH
are cographs, thensois their unionG
UH.
Note
that theabove definitionis thesame as onewith(2)
replaced bythefollowing.(4)
IfG
andH
arecographs, then so istheir joinG
+
H.
There isa linear timealgorithmtoidentifywhether agraph is acograph
(see
[3]).
In
the case ofa positive answer, the algorithm also gives a parsing tree.
Therefore,
wehave the followingconsequences.
THEOREM
3.6. There is a linear time algorithm to computeA(G),
IV(G),
and pv(G)
for
a cographG.
4.
Upper
bound ofA
interms ofmaximumdegree.For
any fixed positiveinteger
k,
ak-stablesetofagraphG
isasubsetS
ofV(G)
such thatevery two distinctverticesin
S
areofdistancegreater than k.Note
that 1-stabilityis the usualstability.THEOREM
4.1.A(G)
_< A
2+
A
for
any graphG
withmaximum degreeA.
Proof.
Consider the following labelingschemeonV(G).
Initially, all verticesare unlabeled.Let
S-1
.
WhenSi-1
is determined and not all vertices inG
arelabeled,
letF
{x
e
V(G)’x
is unlabeled andd(x,
y) _>
2 for all ye
i-1}.
Choose a maximal2-stable subset
S
of Fi; i.e.,S
isa 2-stablesubset ofF
butS
isnot aproper subset ofany 2-stable subset of
F.
Note
thatinthecase whereFi
,
i.e., for any unlabeledvertex x thereexistssomevertexy E
S-1
such thatd(x,
y)
<
2,
S
.
In
anycase, label allvertices inS
byi. Then increase byone andcontinuetheaboveprocess untilallvertices are labeled.
Assume
kis themaximumlabelused,
andchoose avertex x whose labelis k.Let
II-{i’0ik-landd(x,y)=l
forsomeyS},
I2={i’0ik-landd(x,y)2forsomeyS},
5
{i"
0 k-1 andd(x,y)
3 for all yS}.
It
isclear thatI2]
+
]I3]
k. Sincethe total number ofverticesywith1d(x,
y)
2is at most
deg(x)+
E{deg(y)-
(y,x)
E(G)}
A
+
A(A-
)
A
:,
wehave]I2[
A
2.
Also,
thereexist onlydeg(x)
A
vertices adjacent tox,
soI[
A.
For
anyI3,
x Fi; otherwiseSi
{x}
is a 2-stable subset of Fi, which contradicts the choice ofSi.
That is,d(x,y)
1 for some vertex y inSi-1;
i.e., i- 1I.
So,
5]
]21].
Then,
A(G)
k-[I2[
+
[5[
[I2[
+
]I1[
2
+
.
Jonas
[12]
proved thatA(G)
A
2+
2A-
4 ifA(G)
k
2.For
thecase ofA
3,
thisbound improves the boundin Theorem4.1 from 12 to 11.5. Subclasses ofchordalgraphs.
A
graphis chordal(or
triangulated)
ifevery cycle of length greater than three has achord,
which is an edge joining two non-consecutive vertices ofthecycle. Chordal graphs have been extensively studied as a subclass ofperfect graphs(see
[9]).
For
any graphG,
x(G)
denotes the chromatic number ofG
andw(G)
the maximum size ofa clique inG. It
is easy to see thatw(G)
x(G)
for anygraphG.
A
graphG
is perfectifw(H)
x(H)
for any vertex-induced subgraphH
ofG.
In
conjunction withthedominationtheoryingraphs, the followingsubclasses ofchordalgraphs have beenstudied(see
[1,
2,6]).
An
n-sunis achordal graphwith aHamiltoniancycle
(Xl,
Yl, x2, Y2,...,Xn, y,,Xl)
inwhicheach314 GERARDJ.CHANG AND DAVID KUO
xi is of degree exactly two.
An
SF-chordal(resp.,
OSF-chordal,
3SF-chordal)
graph is a chordal which contains no n-sun with n>_
3(resp.
odd n_>
3, n3)
as aninduced subgraph. SF-chordal graphs are also called strongly chordal graphs by
Far-ber(see
[6]).
Strongly chordal graphs include directedpath graphs, interval graphs,unit intervalgraphs, block graphs, andtrees.
A
vertex x is simple ifN[y]
C_N[z]
orN[z]
C_N[y]
for any two verticesy,z ENix].
Consequently,
for any simplevertexx,
Nix]
is aclique and x has a maximum neighborrnNix];
i.e.,N[y]
C_N[m]
for any yNix].
Farber[6]
proved thatG
is a strongly chordalgraph ifand only if every vertex-inducedsubgraph ofG
has asimple vertex.THEOREM
5.1./(G)
<_
2A
for
any OSF-chordal graphG
with maximum de-greeA.
Proof.
First,A(G)
<_
2x(G
2)
2 byLemma
2.4.By
Corollary 3.11 of[2],
G
2is perfect and so
x(G
2)
w(G2).
SinceG
isOSF-chordal,
it is 3SF-chordal.By
Theorem 3.8 of
[1],
w(G
2)
A
+
1. The above inequality andequalities imply that_<
THEOREM
5.2./(G)
_<
/k-4-2X(G)-
2for
any strongly chordal graphG
withmaximum degree
A.
Proof.
We
shall prove the theorem by induction on]V(G)I.
The theorem isobviouswhen
IV(G)]
1.Suppose
]V(G)I
>
1. Choose asimplevertexv ofG.
SinceG-
v is also stronglychordal,
by the induction hypothesis,Let
f
be ai(G- v)-L(2,
1)-labeling
ofG-
v.Note
that v is adjacent todeg(v)
vertices, whichformaclique in
G. Let
rn be the maximumneighbor ofv. Since every vertex ofdistance two from v is adjacent to m, there aredeg(m)
deg(v)
vertices that are of distance two from v.Therefore,
there are at most 3deg(v)
+
deg(m)
deg(v) _< A
+
2w(G)
2A
+
2x(G)
2 numbers used byf
to be avoided by v.Hence
there is stillat least onenumber in[0,
A
+
2x(G)
2]
that canbe assignedtov inorderto extend
f
into a(A
+
2X(G)-
2)-L(2,
1)-labeling.
D
Although
astrongly chordal graphisOSF-chordal,
the upper bounds inTheorems 5.1 and 5.2 are incomparable. Theorem 5.2 is a generalization of the result thatA(T)
<_ A
+
2 for any nontrivial tree ofmaximum degreeA. We
conjecture that/(G)
_< A
+
x(G)
for any strongly chordal graphG
with maximumdegreeA.
6.
A
polynomial algorithm forA
on trees.For
a treeT
with maximumdegree
A,
Griggs and Yeh[10]
proved thatA(T)
A
+
1 orA
+
2. They also conjectured that it is NP-complete to determine ifA(T)
A
+
1.On
the contrary, this section givesapolynomialtimealgorithmto determine ifA(T)
A
/1.Although
not necessary, thefollowing two preprocessing steps reduce the size of a treebeforeweapplythealgorithm.
First, checkifthere is a vertexx whose closed neighborhood
Nix]
contains threeormoreverticesof degree
A.
Ifthe answeris positive, thenA(T)
A
+
2 byLemma
2.5.
Next,
checkifthere is aleafx whose unique neighbor y hasdegree less thanA.
Ifthere is such a vertex
x,
thenT
x also hasmaximum degreeA. By
Lemma
2.1 and precisely thesamearguments
asin theproof ofTheorem 4.1 of[10],
A(T
x)
_<
(T)
_<
max{(T-x),
deg(x)+
2}
<_
(T-x)and
so(T)=
(T-x).
DeterminingA(T)
is thenthesame as determiningA(T- x).
Continue this process until any leaf of the treeis adjacent to avertexof degreeA.
Regardless of whetherweapplythe above twostepstoreduce thetreesize or
not,
fromnow on weassume thatT
isatreeofat least two vertices and whose maximum degree isA.
For
any fixed positive integerk,
the following algorithm determines ifT
has ak-L(2,
1)-labeling
or not.We
in fact only need to apply the algorithm fork=A+l.
For
technical reasons, we may assume thatT
is rooted at a leafr,
which isadjacenttor.
Let T
T
-
r berootedatr.We
canconsiderT
asthetree resulting fromT
by adding a new vertex r that is adjacent tor only.For
any vertexv inT,
let
T(v)
be the subtreeofT
rootedat v andT’(v’)
bethe treeresulting fromT(v)
by addinga newvertex v thatisadjacenttovonly.T(v
)
is considered to be rooted at theleafv’.
Note
thatT(r)
T
andT’(r’)
T’.
Denote
S(T(v))
{(a, b)"
thereis ak-L(2,
1)-labeling
f
onT’(v’)
withf(v’)
a andf(v) =b}.
Note
thatA(T)
5 k if and only ifS(T(r))
=
O.
Now
supposeT(v)-
v contains strees
T(vl),
T(v2),... ,T(vs)
rooted at Vl, v2,...,vs, respectively, where eachv
is adjacent tov inT(v).
Note
thatT(v)
can be considered as identifyingv, v,...,
v,
to avertex v onthe disjointunionof
T’(v{),
T’(v),..., T’(v’,).
For
asystem ofsets(A)=I
(A,
A2,...,
A,),
asystem of distinct representa-tives(SDR)
is an s-tuple(a)
*(a
,..
i=1 a2
as)
ofs distinct elements such thataEAforlhi<s.
THEOREM 6.1.
S(T(v))
{(a,b)"
0<_
a<_
k,
0<
b<_
k,
la-bl
>_
2, and(A)=
has anSDR,
whereA
{c
c7
a and(b,
c)
S(T(v))}}.
Proof.
Denote
byS
theset onthe right-handsideof the equalityinthetheorem.Suppose
(a,b)
S(T(v)).
There is ak-(2,
1)-labeling
f
ofT’(v’)
such thatf(v’)
a andf(v)
b. Of course, 0<
a_<
k,
0_<
b_<k,
andla-b]
_>
2.Let
the same asv.Thenf
isaf
be the functionf
restricted onT’(v)
by viewingv
k-L(2,
1)-labeling
ofT’(v)
withf(v)
f(v)
b andf(v)
f(v)
=
f(v’)
a, i.e.,(b, f(v))
e
S(T(v))
andf(v)
e
A.
Thus(f(v))=
isanSDR
of(A)*__.
Thisproves
c_
s.
On
the otherhand,
suppose(a,b)
S.
Then 0<
a<_
k,
0<
b<_
k,
la-b
>_
2,
and(A)%1
has anSDR
(c)=.
Let
f
be ak-L(2,
1)-labeling
ofT’(v)
such thatf(v)
b andf(v)
c.
Consider the labelingf
ofT’
defined byf(x)
f(x)
for xV(T(v))
andf(v’)
a.It
is straightforward to confirm thatf
is ak-L(2,
1)-labeling of
T’(v’)
withf(v’)
a andf(v)
b;
i.e.,(a, b)
S(T(v)).
[:]Our
algorithm for determiningifatree hasak-L(2,
1)-labeling
recursivelyapplies theabove theorem with the initial condition that for anyleafv ofT,
S(T(v))
{(a,b)"
0_<
a_<
k,
0_<
b_<
k,
[a-
b>_
2}.
To
decide ifthetreeT’
has ak-L(2,
1)-labeling,
we calculateS(T(v))
for all vertices v ofthe treeT.
The algorithm starts from the leaves and works toward r.For
any vertexv,
whose childrenarev,
v2,...,v,
weuseS(T(vl)),...
,S(T(v))
tocalculateS(T(v))
by Theorem 6.1.More
precisely, for any(a,b)
with 0<
a<
k,
0_<
b_<
k,
la-bl
>_
2,
wecheck if(a, b)
S(T(v))
bythefollowingmethod.Construct
abipartite graphG
(X, Y,
E)
withX
{Xl,X2,...,Xs},
Y=
{0,
1,...,k},
E
{(x,c)’c
a and(b,c)
e
S(T(v))}.
316 GERARDJ. CHANG ANDDAVIDKUO
We
can use anywell-known algorithm to find a maximum matching of the bipartite graphG.
Then(a,b)
ES(T(v))
if and only ifG
has a matching ofsize s.Note
that for any vertex vwe needto solve thebipartite matchingproblemO(k
2)
times.Therefore,
the complexity of the above algorithm isO(IV(T)lk2g(2k)),
whereg(n)
is thecomplexity of solving the bipartite matching problem of n vertices. The well-known flow algorithmgives
g(n)
O(n2"5).
Acknowledgments. The authors wishto extend their gratitude tothe referee and to
Jerry
Griggs formany constructive suggestions for therevision ofthis paper.REFERENCES
[1] G. J. CHANG AND (. L. NEMHAUSER (1984), The k-domination and k-stability problems on sun-freechordalgraphs,SIAMJ. Alg. Disc. Meth., 5,pp. 332-345.
[2] (1985), Covering, packing and generalized perfection, SIAM J. Alg. Disc. Meth., 6,
pp. 109-132.
[3] D. G. CORNEIL, Y. PERL, AND L. K. STEWART (1985), A linear recognition algorithmfor
cographs, SIAM J. Comput., 14,pp. 926-934.
[4] M. B. COZZENSANDF. S. ROBERTS (1982),T-Coloringsofgraphs and the channel assignment
problem, Congr. Numer.,35,pp. 191-208.
[5] M. B. COZZENS AND D. I. WANG (1984), The general channel assignmentproblem, Congr. Numer.,41,pp. 115-129.
[6] M. FARBER (1983), Characterizationofstrongly chordalgraphs, DiscreteMath., 43, pp. 173-189.
[7] Z. FOREDI, J. R. GRIGGS, AND D. J. KLEITMAN (1989), Pair labelings with given distance,
SIAMJ.Discrete Math., 2,pp. 491-499.
[8] J.GEORGES,D.MACRO,ANDM.WHITTLESEY(1994),Relatingpathcovering to vertexlabellings
witha conditionat distancetwo, DiscreteMath., 135,pp. 103-111.
[9] M. C. GOLUMBIC(1980), Algorithmic Graph TheoryandPerfectGraphs,AcademicPress, New
York.
[10] J. R. GRIGGSAND R. K. YEH (1992), Labeling graphswithaconditionat distance2,SIAM J.
DiscreteMath., 5,pp. 586-595.
[11] W. K. HALE (1980), Frequency assignment: Theory and applications, in Proc. IEEE, 68,
pp. 1497-1514.
[12] K. JONAS (1993), Graph Coloring Analogues With a Condition at Distance Two:
L(2,1)-Labelings and List )-Labelings, Ph.D.thesis,Dept.ofMath.,Universityof SouthCarolina, Columbia, SC.
[13] A. RAYCHAUDHURI(1985), IntersectionAssignment, T-ColoringandPowers ofGraphs,Ph.D. thesis,Dept.ofMath., RutgersUniversity, New Brunswick, NJ.
[14]
,
Further resultsonT-coloring andfrequency assignmentproblems,submitted.[15] F. S. ROBERTS(1988), private communication toJ.R.Griggs.
[16] (1990), From garbage to rainbows: Generalizationsofgraph colorings and their
appli-cations,inProc.of the Sixth InternationalConferenceontheTheoryandApplicationsof
Graphs, Y. Alavi, G. Chartrand, O.R.Oellermann,andA. J. Schwenk, eds., JohnWiley,
NewYork.
[17] (1991), T-colorings ofgraphs: Recent results and openproblems, Discrete Math., 93,
pp. 229-245.
[18] D. SAKAI(1994), Labelingchordalgraphs: Distancetwocondition, SIAMJ.DiscreteMath., 7,
pp. 133-140.
[19] B. TESMAN (1989), T-Colorings, List T-Colorings, and Set T-Colorings of Graphs, Ph.D.
thesis,Dept.ofMath., RutgersUniversity, NewBrunswick, NJ.
[20] M. A. WHITTLESEY, J. P. GEORGES, ANDD. W. MACRO (1995), Onthe)-numberofQn and
relatedgraphs,SIAMJ.DiscreteMath.,8,pp. 499-506.
[21] R. K. YEH (1990), Labeling Graphswitha Condition atDistance Two,Ph.D. thesis,Dept.of
Math., University ofSouth Carolina, Columbia, SC.