• Aucun résultat trouvé

Cutwidth of iterated caterpillars

N/A
N/A
Protected

Academic year: 2022

Partager "Cutwidth of iterated caterpillars"

Copied!
13
0
0

Texte intégral

(1)

DOI:10.1051/ita/2012032 www.rairo-ita.org

CUTWIDTH OF ITERATED CATERPILLARS

Lan Lin

1,2

and Yixun Lin

3

Abstract. The cutwidth is an important graph-invariant in circuit layout designs. The cutwidth of a graphGis the minimum value of the maximum number of overlap edges whenGis embedded into a line. A caterpillar is a tree which yields a path when all its leaves are removed.

An iterated caterpillar is a tree which yields a caterpillar when all its leaves are removed. In this paper we present an exact formula for the cutwidth of the iterated caterpillars.

Mathematics Subject Classification. 05C78, 68M10, 68R10.

1. Introduction

The cutwidth problem for graphs, as well as a class of optimal labeling and embedding problems, have significant applications in VLSI designs, network com- munications and other areas. In particular, the cutwidth is related to a basic pa- rameter, calledcongestion, in designing microchip circuits (see surveys [2,4]). Here, a graph Gmay be thought of as a model of the wiring diagram of an electronic circuit, with the vertices representing components and the edges representing wires connecting them. When a circuit is laid out on a certain architecture (say a path), the maximum number of overlap wires is the congestion, which is one of major pa- rameters determining the electronic performance (the greater the congestion is, the

Keywords and phrases.Circuit layout design, graph labeling, cutwidth, caterpillar, iterated caterpillar.

Supported by NSFC (11101383, 91218301) and 973 Program of China (2010CB328101).

1 School of Electronics and Information Engineering, Tongji University, Shanghai 200092, China.

2 The Key Laboratory of Embedded System and Service Computing, Ministry of Education, Tongji University, Shanghai 200092, China.

3 Department of Mathematics, Zhengzhou University, Zhengzhou 450052, China.

linyixun@zzu.edu.cn

Article published by EDP Sciences c EDP Sciences 2013

(2)

r r

r r r r

r r

@@@

@@

@

r r r r r r r r

1

2

3 4

5 6

7

8 u1 u2 u3 u4 u5 u6 u7 u8

(a) graphGwith labels (b) embedding with cutwidth 3

Figure 1. An example of labeling and embedding.

more interference in the system). This motivates the cutwidth problem in graph theory. In the following discussion, we follow the graph-theoretic terminology and notation of [1].

The problem is formulated as follows. Given a simple graphG= (V(G), E(G)) onnvertices, a bijectionf :V(G)→ {1,2, . . . , n} is called alabelingofG, which can be thought of as an embedding ofGinto a pathPn ofnvertices. For a given labelingf ofG, thecutwidthoff forGis

c(G, f) = max1≤i<n|{uv∈E(G) :f(u)≤i < f(v)}|,

which represents the maximum number of overlap edges (congestion) in the embed- ding. The cutwidth ofGisc(G) = min{c(G, f) :f is a labeling ofG}. A labeling f attaining this minimum is called anoptimal labeling.

For example, a graphG is shown in Figure1a, in which a labelingf is repre- sented by the labels 1,2, . . . ,8 besides the vertices. Then the embedding ofGon a path is depicted in Figure1b, in which the maximum number of overlap edges isc(G, f) = 3.

For a graph G, let S be a subset of V(G) and ¯S =V(G)\S. The edge cut E[S,S], i.e., the set of edges of¯ Gwith one end in S and the other end in ¯S, is called thecoboundaryofS and denoted by∂(S) (following the notation of [1]). For a labelingf :V(G)→ {1,2, . . . , n} of G, let Sif ={v∈V(G) :f(v)≤i} denote the set of vertices with the firstilabels. Then the above definition is equivalent to

c(G, f) = max1≤i<n|∂(Sif)|.

In other words, let ui =f−1(i) for 1 i n. Then Sif = {u1, u2, . . . , ui} and

∂(Sfi) ={ujuk∈E(G) :j≤i < k}. The cutwidthc(G, f) is the maximum size of these coboundaries∂(Sif). When there is no confusion, we may abbreviateSif to Si asf is known. In Figure 1, we havec(G, f) =|∂(S6f)|= 3.

As immediate consequences of the definition, we have the following basic prop- erties of the cutwidth (for the former see Lem. 3 of [3]).

Lemma 1.1. IfGis a subdivision ofG(that is, some edges are replaced by paths), thenc(G) =c(G).

(3)

CUTWIDTH OF ITERATED CATERPILLARS

r r r r

r r r r r r r r r

r

\\

\ BB BB

BB BB

LL L

r r r r r r r

r r r r r r r r r

r r r r r r r r r r r r r r

r r

AAA AA AA A

AA AA A

AAA

AAA ZZ

Z

(a) (b)

Figure 2.Caterpillar and iterated caterpillar.

Lemma 1.2. If G is a subgraph of G, thenc(G)≤c(G).

The cutwidth problem for a general graph is known to be NP-complete [6], and it admits a polynomial algorithm for trees [15]. Much work has been done for determining the exact value of the cutwidth of special classes of graphs (see, e.g., [4,7–10,12,14]).

In this paper we study basic classes of trees, the caterpillars and iterated cater- pillars, providing an exact formula to compute them. Acaterpillaris a tree which yields a path when all its leaves (vertices of degree one) are removed, and aniter- ated caterpillaris a tree which yields a caterpillar when all its leaves are removed (see Fig.2). In the study of graceful labeling problem [5], the iterated caterpillars are also calledlobsters.

The paper is organized as follows. In Section 2, we describe a decomposition ap- proach for caterpillars and iterated caterpillars. Sections 3 and 4 are devoted to the main results on the iterated caterpillars, the lower bound and the exact formula.

A summary with connection to the bandwidth problem is given in Section 5.

2. Decomposition approach

Now we consider a caterpillarT, in which the path obtained fromT by deleting all leaves is called the backbone of T, denoted p(T) = (w1, w2, . . . , wm). Let ni be the number of neighbors ofwi (i= 1,2, . . . , m). ThenT is formed bym stars T1=K1,n1, T2=K1,n2, . . . , Tm=K1,nm withn=|V(T)|=n1+n2+. . .+nm m+ 2. That is,T =mi=1Ti with the edge wiwi+1 belonging to bothTi and Ti+1 (1≤i≤m−1).

For a setA ={a1, a2, . . . , ak} of kdistinct numbers with a1 < a2< . . . < ak, ifkis odd, the numberak/2 is called themedianofA; ifkis even, the numbers ak/2andak/2+1 are called themediansofA.

A crucial fact is that the cutwidth problem of caterpillarT can be decomposed into m subproblems for each star Ti. By thecenter of a starK1,n, we mean the vertex adjacent to all other vertices. We begin with an obvious fact for stars as follows (cf.[2] among others).

Proposition 2.1. Let T =K1,n be a star with centerw. Then c(T) =n/2and f is an optimal labeling if and only iff(w)is a median of the label set{f(v) :v∈ V(T)}.

(4)

Proof. Suppose that f(w) = i+ 1 for an arbitrary labeling f. Then |∂(Si)| =i and|∂(Si+1)|=n−i. Thusc(T, f)≥ max{i, n−i} ≥ n/2. On the other hand, we define a labelingf such that f(w) = n/2+ 1 is a median of the label set.

Then c(T, f) = max{ n/2,n/2}=n/2attaining the above lower bound.

Thusfis an optimal labeling andc(T) =c(T, f) =n/2.

Conversely, if f(w) = i+ 1 is not a median of {f(v) : v V(T)} for some labelingf, then c(T, f) max{i, n−i}>n/2, and sof is not optimal. This

completes the proof.

We further obtain the following.

Proposition 2.2. Let T = mi=1Ti be a caterpillar with Ti = K1,ni (i = 1,2, . . . , m). Then

c(T) = max1≤i≤mc(Ti) = max1≤i≤mni/2.

Proof. Since Ti is a subgraph of T, we have c(Ti)≤c(T) by Lemma 1.2. Hence we obtain the lower bound c(T) max1≤i≤mc(Ti). On the other hand, we define a labeling f as follows: The stars T1, T2, . . . , Tm are labeled in turn by the numbers {1,2, . . . , n} (where n = n1 +n2 +. . . nm −m + 2) such that f(wi) is a median of {f(v) : v V(Ti)} (1 i m). Then this label- ing f restricted to each subtree Ti is an optimal labeling of Ti. Consequently, c(T, f) = max1≤i≤mc(Ti) = max1≤i≤mni/2, whencef is an optimal label-

ing ofT. The proof is complete.

We proceed to consider an iterated caterpillarT. Ahairis an edge incident with a leaf. Meanwhile, the neighbor set of vertexv is denoted byN(v) ={u∈V(T) : uv E(T)}. Suppose that when deleting all leaves, T becomes a caterpillar T with backbone (w1, w2, . . . , wm). Then we definep(T) = (w1, w2, . . . , wm) to be the backbone of iterated caterpillarT. Moreover, assume that no hair is directly incident with wi for 1 i m, for otherwise we may subdivide this hair by inserting a new vertex (see Lem. 1.1).

Now we decomposeT into subtreesT1, T2, . . . , Tmas follows. For 1≤i≤m, let Li be the set of leaves ofT which are adjacent to vertices inN(wi). ThenTi is a tree induced by{wi} ∪N(wi)∪Li. Note thatwiwi+1 is contained in bothTiand Ti+1(1≤i≤m−1). TheseTi’s, 1≤i≤m, are callediterated stars, each of which yields a star when the leaves are removed. Besides, each ofTi’s is called asection of T. Among them, T1 and Tm are called end sections and Ti (1 < i < m) are intermediate sections. This decomposition is shown in Figure 3. Here, we make a convention that the edgewiwi+1belongs to bothTiandTi+1 (which is ambiguous in Fig.3).

By virtue of Lemma 1.2 we obtain the following lower bound.

Proposition 2.3. LetT =mi=1Ti be an iterated caterpillar withTibeing iterated stars (i= 1,2, . . . , m). Then

c(T) max1≤i≤mc(Ti).

(5)

CUTWIDTH OF ITERATED CATERPILLARS

r r r

p p p

LL LL LL

LL LL LL

LL LL LL

T1 T2 Tm

w1 w2 wm

Figure 3.Decomposition of iterated caterpillar.

In addition to Lemma 1.1, another important feature of the cutwidth problem is the following property due to Chung [3].

Lemma 2.4 ([3]). For the cutwidth problem of a tree T, there exists an optimal labeling f satisfying the following properties:

(1) The leaf property: the vertices labeled by 1 andnare leaves of T.

(2) The monotone property: Let P = (v0, v1, . . . , vl) be the path connecting the vertices labeled by1 andn, wheref(v0) = 1, f(vl) =n. Thenf(v0)< f(v1)<

. . . < f(vl).

(3) The block property: LetF be the forest obtained fromT by removing the edges of P, whereP= (v0, v1, . . . , vl)is defined in (2). Then any connected compo- nent (maximal subtree) ofF is labeled by a set of consecutive integers.

We apply this result to an iterated caterpillar T =mi=1Ti. Let V1 =V(T1)\ {w2},Vm=V(Tm)\ {wm−1}, andVi =V(Ti)\ {wi−1, wi+1}(1< i < m). Then (V1, V2, . . . , Vm) forms a partition ofV(T). We can further show that there exists an optimal labelingf such thatf−1(1)∈V1 andf−1(n)∈Vm, and so the pathP connecting these two vertices passes through w1, w2, . . . , wm. Therefore we have the following consequence.

Corollary 2.5. For any iterated caterpillar T =mi=1Ti, there exists an optimal labeling f satisfying the following properties:

(i) f(w1)< f(w2)< . . . < f(wm).

(ii) Each subsetVi (1≤i≤m) is labeled by a set of consecutive integers.

For convenience, this labelingf is called aproper labeling. Henceforth, we can only consider proper labelings for any iterated caterpillarT.

3. Lower bound

By Proposition 2.3, in order to derive lower bounds for the cutwidth of iterated caterpillarT =mi=1Ti, we need only consider each sectionTifor 1≤i≤m.

We first consider an intermediate sectionTi (1< i < m). As mentioned before, Ti is an iterated star induced by{wi} ∪N(wi)∪Li, which contains two special

(6)

r r r

r r r r

r r r r r r r r r

QQ QQ QQ

AA AA

BB

BB BB

BB BB BB

w w w

u1 u3 u4 u2

v1,1v1,2 v1,3 v3,1v3,2v4,1 v2,1v2,2v2,3

Figure 4. An intermediate sectionT(4,4,3,2).

leaves wi−1, wi+1 N(wi). We may call wi the root of Ti and wi−1, wi+1 the backbone leaves.

In general, we define an iterated star TS = T(n1, n2, . . . , nk) with root w as follows. LetT1=K1,n1, T2=K1,n2, . . . , Tk=K1,nk bek stars, whereni 2, i= 1,2, . . . , k. Then we take one leaf from each starTjand merge thesekvertices into a single vertexw. In addition,w has two special neighborsw andw, which are backbone leaves. Letuj denote the center of starTj and letvj,1, vj,2, . . . , vj,nj−1 denote the leaves (other thanw) of starTj (j= 1,2, . . . , k). An example is shown in Figure4.

By virtue of Corollary 2.5, for an iterated caterpillarT, we always assume that the considered labeling f is proper. So we have f(w) < f(w) < f(w) in TS. Moreover, we assume thatf(w) andf(w) are given when discussing the labeling f inT1∪T2∪. . .∪Tk (asw andw are roots of other iterated stars). To derive the lower bound, we need the following sequencing property.

Proposition 3.1. Let (a1, a2, . . . , ak) and (b1, b2, . . . , bk) be two sequences of real numbers where a1 a2 . . . ak. Then among all permutations π of {1,2, . . . , k}, the value max1≤i≤k(ai+bπ(i))is minimum if bπ(1)≥bπ(2)≥. . .≥ bπ(k).

Proof. We define a function g(π) = max1≤i≤k(ai +bπ(i)) on the set of all permutationsπ. A permutationπis said to be optimal ifg(π) is minimum. Now we proceed to show thatπ is optimal ifbπ(1) ≥bπ(2)≥. . .≥bπ(k). Suppose that there is an optimal permutationπsuch thatbπ(i)< bπ(i+1)for some indexi. Then we can construct another permutation π by exchanging the positions π(i) and π(i+ 1), that is,π(i) =π(i+ 1), π(i+ 1) =π(i) andπ(j) =π(j) forj=i, i+ 1.

It follows fromai ≤ai+1 andbπ(i)< bπ(i+1) that

max{ai+bπ(i), ai+1+bπ(i+1)}=ai+1+bπ(i+1)max{ai+bπ(i+1), ai+1+bπ(i)}

= max{ai+bπ(i), ai+1+bπ(i+1)}.

(7)

CUTWIDTH OF ITERATED CATERPILLARS

Let R = max{aj +bπ(j) : 1 j k, j = i, i+ 1}. Then g(π) = max{R, ai+ bπ(i), ai+1+bπ(i+1)} ≥max{R, ai+bπ(i), ai+1+bπ(i+1)}=g(π). Thusπ is also optimal. If thisπ does not satisfy the conditionbπ(1)≥bπ(2)≥. . .≥bπ(k), then we carry out the same transformation. In this way, we can eventually obtain an optimal permutation satisfying the required condition. However, all permutations satisfying this condition have the same value ofg(π). Therefore, every permutation satisfyingbπ(1)≥bπ(2)≥. . .≥bπ(k)is optimal. This completes the proof.

This sequencing property is similar to the well-known property for

1≤i≤kaibπ(i), only the addition “+” is replaced by “max” and the multiple “×”

is replaced by “+”.

Proposition 3.2. Suppose that an intermediate sectionTiis an iterated starTS = T(n1, n2, . . . , nk). Then for any proper labeling f, a lower bound of the cutwidth is given by

c(TS, f) max1≤j≤k(j/2+nj/2), wheren1≥n2≥. . .≥nk.

Proof. Given an iterated star TS =T(n1, n2, . . . , nk), the edges are divided into two parts: one part consists of those edges between w and u∈ N(w) (including ww, ww); the other part consists of those hairs between uj andvj,l for 1≤j≤ k,1≤l≤nj1. Letf be a proper labeling ofTS.

We consider a vertexuj with f(uj)< f(w) (1 ≤j ≤k). Suppose that Aj = {uw E(TS) : u N(w), f(u) < f(uj)} (including ww) and aj = |Aj| ≥ 1.

Meanwhile, suppose that Bj ={ujvj,l ∈E(TS) :vj,l N(uj), f(vj,l)< f(uj)}. ThenAj∪Bj⊆∂(Sf(uj)−1). Thus|∂(Sf(uj)−1)| ≥ |Aj|+|Bj|. On the other hand, let ¯Bj={ujvj,l ∈E(TS) :vj,l ∈N(uj), f(vj,l)> f(uj)} ∪ {ujw}. ThenAj∪B¯j

∂(Sf(uj)). Thus |∂(Sf(uj))| ≥ |Aj|+|B¯j|. Combining these two inequalities and notingBj∪B¯j =E(K1,nj), we have

c(TS, f) max{|∂(Sf(uj)−1)|,|∂(Sf(uj))|}

max{|Aj|+|Bj|,|Aj|+|B¯j|} ≥aj+nj/2.

Symmetrically, for a vertex uj with f(uj) > f(w) (1 j k), suppose that Aj ={wu∈E(TS) :u∈N(w), f(u)> f(uj)}(includingww) andaj =|Aj| ≥1.

Meanwhile, suppose that Bj ={ujvj,l ∈E(TS) :vj,l N(uj), f(vj,l)> f(uj)}.

ThenAj∪Bj⊆∂(Sf(uj)). Thus|∂(Sf(uj))| ≥ |Aj|+|Bj|. On the other hand, let B¯j ={ujvj,l E(TS) : vj,l N(uj), f(vj,l) < f(uj)} ∪ {ujw}. Then Aj∪B¯j

∂(Sf(uj)−1). Thus |∂(Sf(uj)−1)| ≥ |Aj|+|B¯j|. Combining these two inequalities and notingBj ∪B¯j =E(K1,nj), we have

c(TS, f) max{|∂(Sf(uj)−1)|,|∂(Sf(uj))|}

max{|Aj|+|Bj|,|Aj|+|B¯j|} ≥aj+nj/2.

(8)

r r r

r r r

r r r r r r r

r r r

AA AA

AA

AA

BB BB BB

u1 w1 w2

u2 u3 u4

Figure 5. An end sectionT(4,4,3,3).

To unify the notation, we also denoteaj byaj depending on eitherf(uj)< f(w) orf(uj)> f(w). In summary, we obtain the following lower bound:

c(TS, f) max1≤j≤k(aj+nj/2).

In this context, for all verticesuj with 1≤j ≤k, the sequence of numbers aj is (1,1,2,2, . . . , k/2, k/2) (ifkis even) or (1,1,2,2, . . . ,(k−1)/2,(k−1)/2,(k+ 1)/2) (if kis odd). This sequence can be written as (j/2:j = 1,2, . . . , k). Note that this sequence aj = j/2 is monotonically increasing. By Proposition 3.1, the above lower bound attains its minimum value whenbj=nj/2is monotonically decreasing. As a result, we obtain

c(TS, f)≥ max1≤j≤k(j/2+nj/2),

wheren1≥n2≥. . .≥nk. Thus the assertion is proved.

We next consider an end section T1. This subtree T1 is induced by {w1} ∪ N(w1)∪L1, which contains only one special leafw2∈N(w1), the backbone leaf.

As above, we can define an iterated starTS =T(n1, n2, . . . , nk) =K1,n1∪K1,n2 . . .∪K1,nk∪{w1w2}with the rootw1and only one backbone leafw2. An example is shown in Figure5.

Proposition 3.3. Suppose that the end section T1 is an iterated star TS = T(n1, n2, . . . , nk). Then for any proper labeling f, a lower bound of the cutwidth is given by

c(TS, f) max1≤j≤k((j1)/2+nj/2), wheren1≥n2≥. . .≥nk.

Proof. As in Proposition 3.2, the iterated star TS = T(n1, n2, . . . , nk) has two parts of edges: those edges betweenw1andu∈N(w1) (includingw1w2) and those hairs betweenuj andvj,l (1≤l≤nj1).

(9)

CUTWIDTH OF ITERATED CATERPILLARS

For a vertex uj with f(uj) < f(w1), define Aj = {uw E(TS) : u N(w1), f(u) < f(uj)} and aj = |Aj|. Note that there is no ww1 with f(w) <

f(w1) inAj now. So it is possible thataj = 0 whenf(uj) is minimal. By the same argument as in Proposition 3.2, we can deduce the lower bound

c(TS, f)≥aj+nj/2.

Symmetrically, for a vertexuj withf(uj)> f(w), we define Aj ={wu∈E(TS) : u∈N(w), f(u)> f(uj)}(includingw1w2) andaj=|Aj| ≥1. A similar argument shows that

c(TS, f)≥aj+nj/2. By unifyingaj andaj, we obtain:

c(TS, f) max1≤j≤k(aj+nj/2).

For all vertices uj with 1 j k, the sequence of numbers aj is (0,1,1,2,2, . . . ,(k1)/2,(k1)/2) (ifkis odd) or (0,1,1,2,2, . . . , k/21, k/2 1, k/2) (ifkis even). This sequence can be written as ((j1)/2:j= 1,2, . . . , k).

By Proposition 3.1, the above lower bound attains its minimum value whennj/2 is monotonically decreasing. Hence we obtain

c(TS, f) max1≤j≤k((j1)/2+nj/2),

wheren1≥n2≥. . .≥nk, as required.

Note that(j−1)/2= 0 whenj = 1. So the above inequality can be written as

c(TS, f) max{n1/2, max2≤j≤k((j1)/2+nj/2)}.

For the end sectionTm, we have the same formula as Proposition 3.3. In order to get a uniform formula for intermediate sections and end sections (Propositions 3.2 and 3.3), we make a refinement of the decomposition ofT as follows. IfT1 is an iterated starTS =T(n1, n2, . . . , nk) withn1≥n2≥. . .≥nk, andu1is the center of starK1,n1, which has as many hairs as possible, then we takew0=u1 and set T0 to be the starK1,n1 induced by{w0} ∪N(w0). ThusT1 is decomposed into a starT0and an iterated starT1 =T1−u1. In this way,T0 becomes an end section and T1 becomes an intermediate section (we may denote it again by T1). In the lower bound of Proposition 3.3, the first termn1/2is for the end sectionT0and the second term max2≤j≤k((j1)/2+nj/2) is for the intermediate section T1, which agrees with the formula of Proposition 3.2.

Symmetrically, letwm+1be a vertex inN(wm)\{wm−1}with the largest number of hairs. Then we setTm+1to be a star induced by{wm+1} ∪N(wm+1). Thus Tm is decomposed into a starTm+1 and an iterated starTm =Tm−wm+1.

In summary, we decomposeTinto subtreesT0, T1, . . . , Tm, Tm+1. Meanwhile, we may stipulatep(T) = (w0, w1, w2, . . . , wm, wm+1) to be the backbone ofT. In this context,T0andTm+1are stars, whose cutwidth values are given in Proposition 2.1;

(10)

r r r r p p p

SS S

LL LL LL

LL LL LL

T0

T1 Tm

Tm+1

w0 w1 wm wm+1

Figure 6.Further decomposition of iterated caterpillar.

andT1, . . . , Tmare iterated stars, whose lower bounds are given in Proposition 3.2.

This decomposition is shown in Figure6.

For this decomposition, Proposition 2.3 can be written as:

c(T) max0≤i≤m+1c(Ti).

4. The main result

With the foregoing preparation, we come to the formula ofc(T) for any iterated caterpillarsT.

Theorem 4.1. For any iterated caterpillar T=m+1i=0 Ti, whereT0 andTm+1 are stars andTi are iterated stars for i= 1, . . . , m, the cutwidth ofT is

c(T) = max0≤i≤m+1c(Ti),

wherec(T0) =|V(T0)|/2,c(Tm+1) =|V(Tm+1)|/2, and for1≤i≤m, ifTi is an iterated starT(n1, n2, . . . , nk), then

c(Ti) = max1≤j≤k(j/2+nj/2), wheren1≥n2≥. . .≥nk.

Proof. The lower bound given in the right-hand side of the above formula is due to Propositions 2.1, 2.3, and 3.2. We next show that this lower bound is attainable, namely, there exists a labeling f such that c(T, f) equals this lower bound, and thus f is an optimal labeling and the lower bound is the minimum value.

In fact, we can construct a labeling f performing successively in the order of T0, T1, T2, . . . , Tm, Tm+1 such that when f is restricted in each subtree Ti, it is optimal. In more detail,fis constructed as follows.

Step 1. For T0 = K1,n0 with center w0, we label the vertices by N0 = {1,2, . . . , n0+ 1}such thatf(w0) is a median of the label setN0. Set ¯n:=n0+ 1 andi:= 1.

(11)

CUTWIDTH OF ITERATED CATERPILLARS

r r r

r r r r

r r r r r r r r r r r

r r r r

r

r r r

QQ QQ QQ

AA AA

BB

BB BB

BB BB BB

@@

@@ AA AA

1 2 4

3 12 22

7 10 13

16

5 6 8 9 11 14 15 17 18 19 21

20

24

23 25 26

Figure 7. A tree with optimal labeling.

Step 2.ForTiwhich is an iterated starT(n1, n2, . . . , nk) (excluding the backbone leaveswi−1, wi+1) with vertex numbern(Ti) =n1+n2+. . .+nk+ 1, we label the vertices byNi={¯n+ 1,n¯+ 2, . . . ,n¯+n(Ti)} as follows.

By the notation of the previous section, suppose that T1 = K1,n1, T2 = K1,n2, . . . , Tk = K1,nk are k stars with centers u1, u2, . . . , uk respectively, where n1 n2 . . . nk. Moreover, let ˆTj = Tj − {w} for j = 1,2, . . . , k. We arrange them in the order ˆT1,Tˆ3, . . . ,Tˆk−1,{w},Tˆk, . . . ,Tˆ4,Tˆ2 (if k is even) or Tˆ1,Tˆ3, . . . ,Tˆk,{w},Tˆk−1, . . . ,Tˆ4,Tˆ2 (ifkis odd). Then we label them in turn by the consecutive numbers ofNiand in each subtreeTjwe setf(uj) to be a median of the label set{f(v) :v ∈V(Tj)}. Set ¯n:= ¯n+n(Ti). If i=m, then go to the next step, else seti:=i+ 1 and go back to the beginning of this step.

Step 3.ForTm+1=K1,nm+1with centerwm+1, we label the vertices byNm+1= {¯n+ 1,n¯+ 2, . . . ,¯n+nm+1+ 1}such that f(wm+1) is a median of the label set.

Finally return the labelingf.

By Proposition 2.1 for stars, we have c(T0, f) = n0/2, c(Tm+1, f) = nm+1/2.

For 1 i m, suppose that Ti is an iterated star TS = T(n1, n2, . . . , nk) and n1 n2 . . . nk. By viewing the proof of Proposition 3.2, we can see that c(Tj, f) = max{|∂(Sf(uj)−1)|,|∂(Sf(uj))|}=j/2+nj/2. Hence c(TS, f) = max1≤j≤kc(Tj, f) = max1≤j≤k(j/2+nj/2).

Therefore the labelingfconstructed by the above algorithm attains the lower bound of max0≤i≤m+1c(Ti) and thus it is optimal. This completes the proof.

An example of optimal labeling is shown in Figure7. The lower bound is given by an intermediate section T(4,4,3,2), that is, c(TS, f) max1≤j≤k(j/2+ nj/2) = max{1 +4/2,1 +4/2,2 +3/2,2 +2/2} = 4. On the other hand, the labeling in Figure 7 has maximum size of coboundary |∂(S10)| = 4, attaining the above lower bound. Therefore, this is an optimal labeling.

(12)

5. Concluding remarks

In the above discussion, we obtain the exact representations of cutwidth c(T) for caterpillars and iterated caterpillars. Note that when allni= 2, the formula of Theorem 4.1 for iterated caterpillars reduces to the formula of Proposition 2.2 for caterpillars. It is known that [15] presented anO(nlogn) algorithm for computing the cutwidth of general trees. If we use the formula of Theorem 4.1 to compute the cutwidth of iterated caterpillars, the worst-case complexity is alsoO(nlogn).

However, the computation based on the formula is more straightforward.

The diameter of a tree may be called the length of the tree. Relatively, the widthof a tree means the maximum distance from any leaf to the diameter path.

Now, we determine the cutwidth value for trees with width 1 and 2. More classes of special graphs remain to be studied. For example, we may consider thedoubly iterated caterpillars, each of which is a tree which yields an iterated caterpillar when all its leaves are removed, namely, the trees with width 3.

The cutwidth and the bandwidth of a graph are two closely related parame- ters in the VLSI designs, which are to minimize the congestion and thedilation respectively. In more detail, for a given labelingf ofG, thebandwidthoff forGis

B(G, f) = max{|f(u)−f(v)|:uv∈E(G)},

which represents the maximum length of edges (dilation) in the embedding. The bandwidth ofGisB(G) = min{B(G, f) :f is a labeling ofG}.

The bandwidth problem for caterpillars is solved by Syslo and Zak [13]. Their result is as follows. LetT be a caterpillar with backbonep(T) = (w1, w2, . . . , wm).

Denote by Tij the subtree of T induced by wi, wi+1, . . . , wj−1, wj and all their neighbors. Then the bandwidth isB(T) = maxi≤j

|V(Tij)|−1 j−i+2

. Moreover, a tree is calledsubdivided caterpillarif it is obtained from a caterpillar by subdividing the edges. Here, a subdivided edge is called ahair of lengthkif the edge is replaced by a path of lengthk. Surprisingly, Monien [11] proves that the bandwidth problem for subdivided caterpillars with hair length 3 is NP-complete. Fortunately, the cutwidth problem for subdivided caterpillars is easier. In fact, by Lemma 1.1, if Tis a subdivided caterpillar obtained from a caterpillarT, thenc(T) =c(T). So the cutwidth problem for subdivided caterpillars is as easy as that for caterpillars, which is polynomially solvable (as seen in Prop. 2.2).

With respect to the relation of cutwidth and bandwidth, it can be seen that c(T) B(T) if T is a star, caterpillar, or iterated caterpillar. The result for complete binary trees in [2,7] also supports this inequality. So, it is interesting to characterize the graphs (or trees)Gwithc(G)≤B(G) or c(G)≥B(G).

Acknowledgements. The authors would like to thank the referees for their helpful comments on improving the representation of the paper.

(13)

CUTWIDTH OF ITERATED CATERPILLARS

References

[1] J.A. Bondy and U.S.R. Murty,Graph Theory. Springer-Verlag, Berlin (2008).

[2] F.R.K. Chung, Labelings of graphs, edited by L.W. Beineke and R.J. Wilson. Selected Topics in Graph Theory3(1988) 151–168.

[3] F.R.K. Chung, On the cutwidth and topological bandwidth of a tree. SIAM J. Algbr.

Discrete Methods6(1985) 268–277.

[4] J. Diaz, J. Petit and M. Serna, A survey of graph layout problems.ACM Comput. Surveys 34(2002) 313–356.

[5] J.A. Gallian, A survey: recent results, conjectures, and open problems in labeling graphs.

J. Graph Theory13(1989) 491–504.

[6] M.R. Garey and D.S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness. W.H. Freeman, San Francisco (1979).

[7] T. Lengauer, Upper and lower bounds for the min-cut linear arrangement of trees.SIAM J. Algbr. Discrete Methods3(1982) 99–113.

[8] Y. Lin, X. Li and A. Yang, A degree sequence method for the cutwidth problem of graphs.

Appl. Math. J. Chinese Univ. Ser. B17(2) (2002) 125–134.

[9] Y. Lin, The cutwidth of trees with diameter at most 4.Appl. Math. J. Chinese Univ. Ser.

B18(3) (2003) 361–368.

[10] H. Liu and J. Yuan, The cutwidth problem for graphs.Appl. Math. J. Chinese Univ. Ser.

A10(3) (1995) 339–348.

[11] B. Monien, The bandwidth minimization problem for caterpipals with hair length 3 is NP-complete.SIAM J. Algbr. Discrete Methods7(1986) 505–512.

[12] J. Rolin, O. Sykora and I. Vrt’o, Optimal cutwidths and bisection widths of 2- and 3- dimensional meshes.Lect. Notes Comput. Sci.1017(1995) 252–264.

[13] M. M. Syslo and J. Zak, The bandwidth problem: critical subgraphs and the solution for caterpillars.Annal. Discrete Math.16(1982) 281–286.

[14] I. Vrt’o, Cutwidth of the r-dimensional mesh of d-ary trees.RAIRO Theor. Inform. Appl.

34(2000) 515–519.

[15] M. Yanakakis, A polynomial algorithm for the min-cut arrangement of trees.J. ACM32 (1985) 950–989.

Communicated by C. De Figueiredo.

Received September 7, 2012. Accepted December 19, 2012.

Références

Documents relatifs

We have studied it as a computationally feasible test bed for the fast and standard iterated bootstraps, and to demonstrate that going as far as the fast triple bootstrap does

cusped epicycloid is generalized in the Epicycloid Envelope Theor em (Theorem 7.1.16) that pertains to the case of general N.. Another part of the Theorem is illustrated

From Theorem 4.4, a standard Sturmian word which is a fixed point of a nontrivial morphism has a slope with an ultimately periodic continued fraction expansion.. If its period has

Several applications to linear processes and their functionals, iterated random functions, mixing structures and Markov chains are also presented..

We construct a canonical projection (which turns out to be continuous) from the shift space of an IIFS on its attractor and provide sufficient conditions for this function to be

The classical distribution in ruins theory has the property that the sequence of the first moment of the iterated tails is convergent.. We give sufficient conditions under which

Key words: iterated function system, recurrent iterated function system, con- nected set, arcwise connected set, shift space,

In this section we present the construction of the shift space of an RIFS and establish the main properties concerning the relation ship between it and the attractor of the