426
Views
0
CrossRef citations to date
0
Altmetric
Articles

Identifying Hamilton cycles in the Cartesian product of directed cycles

Abstract

Let G=Cn1Cn2Cnk be a Cartesian product of k2 directed cycles. It is known that G has a Hamilton cycle if there is a permutation (n1,n2,,nk) of (n1,n2,,nk) that satisfies gcd(ni,ni+1ni+2nk)=si+zi and gcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 for some positive integers si,zi, where k>i1. In addition, if gcd(n1n2nk,s1z1)=1 then G has two arc-disjoint Hamilton cycles. We identify a Hamilton cycle and two arc-disjoint Hamilton cycles in G in such cases.

1 Introduction

In this paper we focus on the identification of Hamilton cycles in a Cartesian product of directed cycles, which satisfies certain conditions initially introduced by Trotter and Erdös Citation[1] for two directed cycles about forty years ago, and extended in this paper to k cycles, where k2. A Cartesian product G=Cn1Cn2Cnk of k directed cycles Cn1,Cn2, Cnk is the digraph such that the vertex set V(G) equals the Cartesian product V(Cn1)×V(Cn2)××V(Cnk) and there is an arc in G from vertex u=(u1,u2,,uk) to vertex v=(v1,v2,,vk) if and only if there exists 1rk such that there is an arc (ur,vr) in Cnr and ui=vi for all ir.

Trotter and Erdös proved the following:

Theorem 1.1

Citation[1] The Cartesian product Cn1Cn2 of directed cycles is Hamiltonian if and only if s=gcd(n1,n2)2 and there exist positive integers s1,s2 so that s1+s2=s and gcd(n1,s1)=gcd(n2,s2)=1.

Keating extended Trotter and Erdös theorem as follows:

Theorem 1.2

Citation[2] The Cartesian product Cn1Cn2 of directed cycles has Hamiltonian decomposition if and only ifs=gcd(n1,n2)2 and there exist positive integers s1,s2 so that s1+s2=s and gcd(n1n2,s1s2)=1.

Furthermore, Curran and Witte extended result of Trotter and Erdös to the Cartesian product of k directed cycles for k3.

Theorem 1.3

Citation[3] There is a Hamilton circuit in the Cartesian product of any three or more nontrivial directed cycles.□

Based on Theorem 1.3 it is trivial to extend the sufficient conditions of Trotter and Erdös Citation[1] for the existence of Hamilton cycle from the Cartesian product of 2 directed cycles to the Cartesian product of k directed cycles for k2 as follows:

Theorem 1.4

Let G=Cn1Cn2Cnk be a Cartesian product of k2 directed cycles.G has a Hamilton cycle if there is a permutation (n1,n2,,nk) of (n1,n2,,nk) that satisfies gcd(ni,ni+1ni+2nk)=si+zi andgcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 for some positive integers si,zi, where k>i1.

It is also trivial based on Theorem 1.3 to extend the sufficient conditions of Keating Citation[2] for the existence of two arc-disjoint Hamilton cycles from the Cartesian product of 2 directed cycles to the Cartesian product of k directed cycles for k2 as follows:

Theorem 1.5

Let G=Cn1Cn2Cnk be a Cartesian product of k2 directed cycles.G has two arc-disjoint Hamilton cycles if there is a permutation (n1,n2,,nk) of (n1,n2,,nk) that satisfies gcd(n1n2nk,s1z1)=1,gcd(ni,ni+1ni+2nk)=si+zi andgcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 for some positive integers si,zi, where k>i1.

In this paper, we identify a Hamilton cycle in the Cartesian product of directed cycles G when the sufficient conditions from Theorem 1.4 are satisfied for the existence of Hamilton cycle in G. In addition, we identify two arc-disjoint Hamilton cycles in G when the sufficient conditions from Theorem 1.5 for their existence are satisfied. Related result was obtained in Citation[4] where directed cycles of equal lengths were identified that decompose G.

2 Main results

Let ai be an arc induced by Cni in the Cartesian product of directed cycles. Let air denote a directed walk W=aiaiair from an arbitrary vertex in the Cartesian product of directed cycles represented by a sequence of r arcs induced by Cni for some positive integer r. In addition, let (ai,aj,,ak)r denote a directed walk W from an arbitrary vertex in the Cartesian product of directed cycles represented by a sequence of arcs (ai,aj,,ak) occurring sequentially r times for some positive integer r. Hence, W=(ai,aj,,ak)r=aiajaksequence1aiajaksequence2aiajaksequencer.

Lemma 2.1

Let n1,n2,s1,s2 be positive integers such that gcd(n1,n2)=s1+s2 and gcd(n1,s1)=gcd(n2,s2)=1. ThenG=Cn1Cn2 has a Hamilton cycle of form (a1s1,a2s2)r for some positive integer r.

Proof

Let v1=(0,0) and vs1+s2+1=(s1,s2). Then based on proof of Theorem 1.1 in Citation[1] there is a path P between v1 and vs1+s2+1 of form P=v1v2vs1+s2+1=(0,0)(1,0)(s1,0)(s1,1)(s1,2)(s1,s2) followed by the vertices using the rule vi+s1+s2=vi+(s1,s2), which results in a Hamilton cycle in G. This implies based on our notation that G has a Hamilton cycle of form (a1s1,a2s2)r for some positive integer r. □

Lemma 2.2

Let n1,n2,s1,s2 be positive integers such that gcd(n1,n2)=s1+s2 and gcd(n1n2,s1s2)=1. ThenG=Cn1Cn2 can be decomposed into the Hamilton cycles of forms (a1s1,a2s2)r and (a1s2,a2s1)r for some positive integer r.

Proof

If gcd(n1n2,s1s2)=1 then gcd(n1,s1)=gcd(n2,s2)=gcd(n1,s2)=gcd(n2,s1)=1. So, by Lemma 2.1 there exist Hamilton cycles H1=(a1s1,a2s2)r and H2=(a1s2,a2s1)r for some positive integer r in G. For vertex v1, let Pv11=v1v2vk and Pv12=v1w2wk be two walks v1(a1s1,a2s2)q and v1(a1s2,a2s1)q for some positive integer q, respectively. Let t be the smallest positive integer for which vt=wt. This implies either paths vt1vt=vt1a1vt, wt1wt=wt1a2wt or paths vt1vt=vt1a2vt, wt1wt=wt1a1wt are included in Pv11 and Pv12, respectively. By induction, for every vertex vi, it, there are paths vi1vi=vi1ajvi, wi1wi=wi1a3jwi included in Pv11 and Pv12, where j=1 or j=2. This implies that H1 and H2 are arc-disjoint.□

To present our main results we need additional definitions as follows. Let bij denote j first arcs of a Hamilton cycle CG in G=CniCni+1Cni+k1, starting from an arbitrary arc in CG. Furthermore, let (bij)r denote r consecutive sequences, each of j consecutive arcs, in CG starting from an arbitrary arc in CG. Hence, r’th sequence of arcs starts with rj+1 arc and ends with rj+j arc, taken module nini+1ni+k1 plus one, in a Hamilton cycle from an arbitrary arc in CniCni+1Cni+k1. Consequently, a directed walk W=(aisi,bizi)ri represents the following sequence of arcs: W=(aisi,bizi)ri=aiaiaiseq.1:siarcsbibibiseq.1:ziarcsaiaiaiseq.ri:siarcsbibibiseq.ri:ziarcs in G.

W can now state the following result for identification of a Hamilton cycle in G.

Theorem 2.3

Let G=Cn1Cn2Cnk be a Cartesian product of k2 directed cycles. If (n1,n2,,nk) is a permutation of (n1,n2,,nk) that satisfies gcd(ni,ni+1ni+2nk)=si+zi and gcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 for some positive integers si,zi, where k>i1, thenG has a Hamilton cycle of form CG=(a1s1,b1z1)r for some positive integer r.

Proof

If k=2 then based on our definition b1z1 denotes z1 consecutive arcs of type a2 in our Hamilton cycle. So, (a1s1,b1z1)r=(a1s1,a2z1)r, and by setting z1=s2 we obtain our Hamilton cycle CG according to Lemma 2.1. For induction hypothesis, assume gcd(ni,ni+1ni+2nk)=si+zi, gcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 and CG=(a2s2,b2z2)r2 are satisfied for some positive integers r2,si,zi, where k>i2. Let n1 be an integer such that gcd(n1,n2n3nk)=s1+z1 and gcd(n1,s1)=gcd(n2n3nk,z1)=1 for some positive integers s1,z1. Since CG=(a2s2,b2z2)r2 exists then G=Cn1Cn2Cnk contains a spanning directed Cartesian product of directed cycles H=Cn1Cn2n3nk. Consequently, by Lemma 2.1 G has a Hamilton cycle and CG=(a1s1,b1z1)r1 is satisfied for some positive integer r1.□

Finally, we can identify two arc-disjoint Hamilton cycles in G=Cn1Cn2Cnk according to the following theorem.

Theorem 2.4

Let G=Cn1Cn2Cnk be a Cartesian product of k2 directed cycles. If (n1,n2,,nk) is a permutation of (n1,n2,,nk) that satisfies gcd(n1n2nk,s1z1)=1,gcd(ni,ni+1ni+2nk)=si+zi andgcd(ni,si)=gcd(ni+1ni+2nk,zi)=1 for some positive integers si,zi, where k>i1, thenG has two arc-disjoint Hamilton cycles of form CG1=(a1s1,b1z1)r and CG2=(a1z1,b1s1)r for some positive integer r.

Proof

If k=2 then by Lemma 2.2 the conditions in our hypothesis are sufficient for decomposition of G into the Hamilton cycles of forms (a1s1,b1s2)r and (a1s2,b1s1)r for some positive integer r, where b1=a2. Otherwise, if k3 then by the same argument as in proof of Theorem 2.3, because the sufficient conditions of Theorem 2.3 are satisfied, for some permutation (n1,n2,,nk) G contains a spanning Cartesian product of directed cycles G=Cn1Cn2n3nk=Cn1Cn2 that satisfies gcd(n1,n2)=s1+z1 and gcd(n1,s1)=gcd(n2,z1)=1 for some positive integers s1,z1. Hence, if gcd(n1n2,s1z1)=1, which is equivalent to gcd(n1n2nk,s1z1)=1, then by Lemma 2.2 G contains two arc-disjoint Hamilton cycles of forms (a1s1,b1z1)r and (a1z1,b1s1)r for some integer r1.□

3 Identification of explicit Hamilton cycle

Based on Theorem 2.3 (Theorem 2.4, respectively) we can identify a Hamilton cycle (two arc-disjoint Hamilton cycles, respectively) in G=Cn1Cn2Cnk as follows. Step 1: Identify a Hamilton cycle for Cnk1Cnk according to Theorem 2.3; Step 2: For every consecutive Hamilton cycle in the series of the Cartesian products of cycles (Cnk1Cnk,Cnk2Cnk1Cnk,,Cn2Cn3Cnk)identify the successive Hamilton cycles in the series of the Cartesian products of cycles (Cnk2Cnk1Cnk,Cnk3Cnk2Cnk1Cnk,,Cn1Cn2Cnk).Hence, a Hamilton cycle in CniCni+1Cnk is identified based on Theorem 2.3 and based on a Hamilton cycle in Cni+1Cni+2Cnk for every i, where k1>i1. In addition, a pair of Hamilton cycles in Cn1Cn2Cnk is identified based on a Hamilton cycle in Cn2Cn3Cnk and based on Theorem 2.4.

The following example illustrates identification of a Hamilton cycle and two arc-disjoint Hamilton cycles according to our approach in C2C3C6.

Top digraph in represents a Cartesian product of directed cycles G=C2C3C6. For G=C3C6 we have gcd(3,6)=3=s2+z2. By setting s2=2,z2=1 we obtain gcd(3,s2)=gcd(6,z2)=1. Hence, by Theorem 2.3 there is a Hamilton cycle of form (a2s2,a3z2)r1=(a22,a3)6 in G. This implies that we obtain a spanning Cartesian product G=C2C18 of G illustrated in the middle digraph of . This is the last spanning subdigraph of G in our procedure, and from this G we obtain a Hamilton cycle of form (a1s1,b1z1)r2=(a1,b1)18 based on Theorem 2.3 for s1=z1=1 because gcd(2,18)=2=s1+z1 and gcd(2,s1)=gcd(18,z1)=1. This Hamilton cycle is illustrated in the bottom digraph of with thick arrows. Furthermore, since gcd(218,s1z1)=1 then by Theorem 2.4 G contains two arc-disjoint Hamilton cycles. The second one is also illustrated in the bottom digraph of with thin arrows.

Fig. 1 Identification of Hamilton cycle(s) in C2C3C6.

Fig. 1 Identification of Hamilton cycle(s) in C2□C3□C6.

Finally, consider the time complexity of establishing a Hamilton cycle based on our procedure. If the conditions of Theorem 2.3 are satisfied, then the time complexity for identifying a Hamilton cycle in any Cartesian product of directed cycles is as follows. For each permutation (n1,n2,,nk) of (n1,n2,,nk) we calculate gcd(ni,ni+1ni+2nk) and for each gcd(ni,ni+1ni+2nk) we calculate at most ni expressions gcd(ni,si) and gcd(ni+1ni+2nk,zi) because gcd(ni,ni+1ni+2nk)=si+zi for some positive integers si,zi, where i=1,2,,k1 . Recall that for two integers a,b Euclid’s algorithm can determine gcd(a,b) in O(logmin(a,b)). Denote nmax=max(n1,n2,,nk). Since there are k! permutations of (n1,n2,,nk) then the time complexity required for identifying a Hamilton cycle in the Cartesian product of k cycles is O(k!(k1)(lognmax+2nmaxlognmax))=O(k!knmaxlognmax).

References

  • TrotterW.T.ErdösP., When the Cartesian product of directed cycles is Hamiltonian J. Graph Theory 21978 137–142
  • KeatingK., Multiple Hamiltonian graphs and digraphs Ann. Discrete Math. 271985 81–88
  • CurranS.J.WitteD., Hamilton paths in Cartesian products of directed cycles Ann. Discrete Math. 271985 35–74
  • BogdanowiczZ.R., On decomposition of the Cartesian product of directed cycles into cycles of equal lengths Discrete Appl. Math. 2292017 148–150