Unfolding simple chains inside circles
Abstract
It is an open problem to determined whether a polygonal chain can be straightened inside a confi ning region if its links are not allowed to cross. In this paper we propose a special case: whether a polygonal chain can be straightened inside a circle without allowing its links to cross. We prove that this is possible if the straightened confi guration can fi t within circle. Then we show that these simple chains have just one equivalence class of confi gurations.
Full text
Unfolding Simple Chains Inside Cirles Marzieh Eskandari a , Ali Mohades a a Math. and Computer Siene Dpt., AmirKabir University of Tehnology, P.O.BOX 15875-4413, Tehran, Iran. Abstrat It is an op en problem to determined whether a polygonal hain an be straightened inside a onning region if its links are not allowed to ross. In this paper we prop ose a sp eial ase: whether a polygonal hain an be straightened inside a irle without allowing its links to ross. We prove that this is p ossible if the straightened onguration an t within irle. Then we show that these simple hains have just one equivalene lass of ongurations. Key words: folding, polygonal hain, reonguration 1. Intro dution A hain is a sequene of rigid ro ds or links onseutively onneted at their endp oints, ab out whih they may rotate freely. The link b etween A i 1 and A i (1 i n ) is denoted by L i and the length of L i is denoted by l i . The angle at intermediate joint A i , i 2 [0 ; 2 ), is that determined by rotating L i ab out A i ounterlo kwise to bring L i to L i +1 . The hain is simple if it is non-self- rossing and non-self-touhing. The subhain of with joints A i ; :::; A j is denoted by [ i; j ℄. We say a bend operation is p erformed at joint A i , when the joint angle i is hanged b etween i and . Throughout this paper, we assume that the only b end op erations allowed are single-joint b end op erations, in whih only one joint angle is altered at a time. A b end op eration is omplete if, at the end of the op eration the joint angle is . We then say that the joint has b een straightened . A bend Op eration that is not omplete is alled a partial bend . A sequene of bend op erations is said to b e monotoni if no op eration inreases the absolute deviation from straightness, j i j , for a joint A i . Let = ( i 1 ; i 2 ; :::; i n 1 ) b e a permutation of the indies f 1 ; 2 ; :::; n 1 g . For a simple hain , we say that a sequene ( A i 1 ; A i 2 ; :::; A i n 1 ) of joints is unfoldable , if an b e straightened into a straight line segment L using the joints in the sequene in Email address: mohadesaut.a.ir (Ali Mohades). turn, suh that remains simple and all of the b end op erations are omplete. A simple hain is alled unfoldable hain , if it has a unfoldable sequene of joints. An intermediate joint A i is alled unfoldable joint , if a omplete b end op eration an b e p erformed at A i suh that during the performing b end op eration, remains simple. The union hain , U , of a hain is a hain whih is obtained from in the following way: if none of the joints of is straight joint, U = ; if has at least one straight joint, for any straight joints A i , we delete joint A i and put A i 1 A i +1 as a single link. Reonguration problem and in partiular, folding problem, b een raised indep endently by several researhers. [3℄ has onsidered reonguration of rob ot arms inside a irle, with allowing its links to ross. In [4℄, Pei has proved that for a hain inside a irle whose radius is suÆiently big, there is just one equivalene lass when its links are allowed to ross. In [5℄ and [2℄, straightening a simple hain in the plane is studied and is proved that any simple hain an be straightened in the plane. And in [1℄ Arkin, Fekete and Mithell have given an ef- ient algorithm to determined if a simple hain an b e straightened by p erforming omplete b end op erations. In this pap er, we study straightening a simple hain within a irle. we give a quadrati- time algorithm to straighten a simple unfoldable hain within a irle whose radius is suÆiently big. Then we prove that all of simple hains an 20th EWCG Seville, Spain (2004)
20th Europ ean Workshop on Computational Geometry b e straightened within a irle, if and only if their straightened onguration an t in the irle. Finally we show that any two onguration of these simple hains are equivalent. 2. Preliminaries Let b e a simple hain inside irle C ( O ; r ) with joints A 0 :::A n . For tting straightened onguration of in C , we must have P n i =1 l i 2 r . From now on, we suppose is a simple hain inside C suh that P n i =1 l i < 2 r . For a irle C ( O ; r ) and two p oints x; y 2 C , we use _ xy to denote the lo kwise ar from x to y . For a p oint A i 2 C we denote the other endp oint of the diameter of C whih is ontaining A i , by M i . Denition 1 A joint A r i is al led rim joint if it lies on boundary of irle C . We denote the set of al l rim joints of hain by A Rim = f A r 0 ; A r 1 ; :::; A r s g . Denition 2 For any rim joint A i of hain , the vetor ! O M i is al led radius vetor of A i and is denoted by r i . Lemma 3 There is a diameter s = ab of irle C suh that al l of rim joints of hain belong to one of the ars _ ab or _ ba . PROOF. If A Rim = ; , there is nothing to prove. Let A i b e a rim joint of and X b e a moving ob jet whih is walking along ar _ A i M i lo kwise, starting at the p oint A i . Supp ose A r is the last rim joint of that is visited by X . Diameter s = A r M r is a solution. Beause ar _ A r M r ontains no rim joint of , exept A r . 2 Denition 4 Suppose A Rim has at least two point and rim joints of belong to _ ab . The nearest rim joints to points a and b are denoted by A f and A e , respetively. These joints are al led limit-joints . It is lear that all of the other rim joints of are on ar _ A f A e . Denition 5 Let A e and A f be limit-joints of . Vetors r e and r f are al led diretion vetors . Denition 6 The sum of diretion vetors, r e and r f , is al led entral diretion and denoted by d , i.e., d = r e + r f . Central Translation: We draw n vetors parallel to d from any joint A i until hit irle at points N i , then put " i = jj ! A i N i jj and " = min f " i j 0 i n g . Translation of inside C along the vetor d " = " jj d jj d , is alled entral translation of . New p ositions of and any joint A i , after the entral translation, are denoted by 0 and A 0 i . It is lear that " e = " f . 3. Unfoldable Simple Chains Supp ose = ( A i 1 ; A i 2 ; :::; A i n 1 ) is an unfoldable sequene of joints of . For straightening inside irle C ( O ; r ), we prop ose the following algorithm whih ontains three steps: Algorithm 1 Unfolding Simple Chain : step 1. 0 = ; j = 0 . step 2. 0 = 0 U ; j = j + 1 . If j = n , stop. else k = i j ; step 3. Straighten A k . Go to step 2. Now for step 3, straightening joint A k within ir- le C , we prop ose the following algorithm whih ontains four steps: Algorithm 2 Straightening joint A k : step 1. 0 = [0 ; k ℄ ; n = [ k ; n ℄ ; step 2. Rotate 0 about A k until A k straightens or one of joints of 0 hits C and 0 an not rotate more about A k . If A k straightens, stop; else go to step 3. step 3. Rotate n about A k until A k straightens or one of joints of n hits C and n an not rotate more about A k . If A k straightens, stop; else go to step 4. step 4. Calulate d " and transmit by d " . Go to step 2. 4. Corretness of Algorithm 2 Any rep eat of algorithm 2 is alled a phase and the joint angle at A k , at the end of phase i , is denoted by i . For showing orretness of algorithm 2, we show that during the algorithm, remains simple and it remains inside C . And we prove that by using algorithm 2, after a nite numb er of rep eats, A k straightens. Furthermore, this nite numb er is indep endent of n . Chain remains simple, b eause A k is an unfold-
Marh 25-26, 2004 Seville (Spain) able joint in the plane. Now for showing that remains inside C , we rst prove that entral translation always an be done. Lemma 7 d " 6 = 0 . PROOF. If d = 0 , we have r f = r e . That is implies A f = M e and A e = M f , i.e., A f A e = 2 r . Therefore P n i =1 l i P l i 2 [ e;f ℄ l i A f A e = 2 r . That is a ontradition. Thus d 6 = 0 . Beause the angles b etween d and its omp onents are less than = 2 and all of radius vetors lie b etween vetors r e and r f , the angle b etween d and radius vetors are less than = 2, to o. Thus any rim joint an transmit in diretion d inside C . Any interior p oints of C also an transmit in all diretions inside C . Therefore " 6 = 0. Consequently d " 6 = 0 . 2 It is lear that during the step 1 and step 2, all of the joints remain inside irle. At step 3, b eause " = min f " i j 0 i n g and the angle b etween radius vetors and d are less than = 2, remains inside C . Now to show that after a nite number of rep eats, algorithm 2 is terminated, we rst show that at the end of any phase of algorithm 2, i b eomes strongly lose to , i.e., j i +1 j < j i j . So we have to prove at the end of entral translation of , at least one of the sub hains 0 or n , an rotate ab out A k suh that joint angle at A k has b eame lose to . Note that at the end of step 1 and step 2, if A k do es not straighten, A Rim has at least two points, one p oint from 0 and the other p oint from n . Lemma 8 Let A e and A f be the limit-joints of at phase i. If both of A e and A f belong to one of the subhains 0 or n , then at the end of translation, none of the joints of the other subhain lie on C . Furthermore, this subhain an rotate about A k at phase i + 1 . PROOF. Assume without loss of generality that A f ; A e 2 0 . Supp ose for a ontradition, A t is a joint of n suh that A 0 t 2 C . At the b eginning of translation, n has at least one rim joint, A m , whih lies on ar _ A f A e . If A k is in the exterior of losed urve Æ = _ A f A e [ 0 [ e; f ℄, n [ m; k ℄ and 0 [ e; f ℄ will b e interseting. Thus A k is in the interior of Æ . See gure 1. Therefore A 0 k is in the interior of the losed urve Æ 0 = [ 0 0 [ f ; e ℄ where Af Af - Ae Ae - Ak - Ak Am d G - A0 G b Fig. 1. If n ontains no limit-joints, 0 n has no rim joint. is the translation of ar _ A f A e by the vetor d " . But A 0 t is in the exterior of Æ 0 . So 0 n [ k ; t ℄ intersets b oundary of Æ 0 . That is a ontradition. Beause n [ k ; t ℄ do es not interset boundary of Æ . 2 By lemma 8, we suppose A e and A f don't b elong to the same sub hain. From now on, the subhain whih ontains A e is denoted by e and the other sub hain whih ontains A f is denoted by f . We have the following theorem. Theorem 9 At the end of translation, at least one of the subhains e and f an rotate about A k . PROOF. Refer to full pap er. 2 Corollary 10 j i j > j i +1 j . By orollary 10, the onguration of in two onseutive phase is dierent. Thus during the algorithm 2, straightening A k is strongly progressed and yling is not p ossible. Now for showing that after a nite number of rep eats, algorithm 2 is terminated, we use simpliity of . Assume without loss of generality that k < . Thus aording to denition of joint angle, 0 must rotate ab out A k lo kwise. First supp ose there is no onning region. So A k an b e straightened and then 0 an rotate ab out A k lo kwise more, until rst selftouhing is o urred. This op eration is alled - passage motion and the joint angle at A k is denoted by + k , that k > 0. Now suppose is inside C ( O ; r ). We hange the stopping riteria of algorithm 2, from ahieving to ahieving + k and use this new algorithm on A k . All of ab ove pro ofs also hold for this new algorithm. So by orollary 10 we also have: j i +1 k j < j i k j ( )
20th Europ ean Workshop on Computational Geometry Assumption k < yields: for every i 0, i + k . So ( ) yields + k i +1 < + k i . In the other words, f i g i 0 is a bounded and monotone sequene. Therefore it onverges to its suprimum, + k . Thus for every " > 0 exists a nite natural numb er N > 0 suh that for every i N we have j i k j < " , i.e., for every i N , + k i < " . Thus for " = k , there is a nite numb er N suh that for all i N , + k i < k . So for i = N , we have + k N < k , i.e., N > . Beause N is the smallest natural numb er that + k i < k , we have + k N 1 k , i.e., N 1 . Therefore A k an straighten in phase N or N 1. Beause N 1 and N > . It is lear that N is indep endent of n . Therefore proof of orretness of algorithm 2 is terminated. Complexity of algorithm 1 is O ( n 2 ), b eause omplexity of eah step is O ( n ) and the numb er of rep eats is n 1. 5. Arbitrary Simple Chains Now we prove that an arbitrary simple hain an b e straightened inside a irle. First we have the following theorem. Theorem 11 Any simple hain an be straightened using a nite number of monotoni singlejoint bend operations. PROOF. See [1℄ and [2℄. 2 Theorem 11 is true, if hain is inside a irle as a onning region. Theorem 12 A simple hain an be straightened inside a irle using a nite number of monotoni single-joint bend operations, if n X i =0 l i < 2 r . PROOF. By theorem 11, an be straightened in the plane using a nite numb er of monotoni single-joint b end op erations. If all of these b end op erations are omplete, an be straightened by using algorithm 1. But if at least one of the b end op erations is not omplete, these b end op erations will b e in aordane with a sequene of motions, M = f M j g k j =1 , suh that M j is a partial bend op eration and an be straightened by using M . Any op eration M j is single-joint, so it is in aordane with a joint A i j and this aordane is not one to one, b eause M j s are not omplete. Supp ose any bend operation M j is hanged joint angle at A i j by ( A i j ; j ). Now note that any op eration M j is monotone; so if we hange the stopping riteria of algorithm 2, from ahieving to ahieving i j + ( A i j ; j ), this new algorithm an be used to p erform any b end op eration M j inside C . Therefore an b e straightened inside C by p erforming M j s in turn, b eause k is nite. 2 6. Conlusion Assume that is a simple hain suh that P n i =1 l i < 2 r and 1 and 2 are two onguration of inside irle C ( O ; r ). We denote their straight ongurations by L 1 and L 2 , resp etively. Let M b e a sequene of bend op erations for straightening 2 inside C and M R b e the reverse of Motion M . It is lear that by p erforming M R , L 2 an b e reongured to 2 . Now by theorem 11, we an reongure 1 to L 1 , then we an reongure L 1 to L 2 by translation and rotation operations and nally we an reongure L 2 to 2 by M R . So 1 an b e reongured to 2 inside C , i.e., for a simple hain , if n X i =1 l i < 2 r , then any two ongurations of , inside irle C ( O ; r ) are equivalent. Referenes [1℄ E.M. Arkin, S.P. Fekete and J.S.B. Mithelle, An algorithmi study of manufaturing pap erlips and other folded strutures. Computational Geometry: Theory and Appliations 25 , 117-138, (2003). [2℄ R. Connelly, E.Demaine and G. Rote, Every polygon an b e untangled. In Pro. 41st Annu. IEEE Sympos. Found. Comput. Si. , pp. 432-442, (2000). [3℄ J. Hop roft, D. Josehp, and S. Whitesides, On the movement of rob ot arms in 2-dimensional bounded regions. SIAM J. Compt. 14 , 315-333, (1985). [4℄ N. Pei, On the reonguration and reahability of hains. Ph.D. Thesis, Shool of Computer Siene, MGill University, November, 1996. [5℄ I. Streinu, A ombinatorial approah to planar non- olliding rob ot arm motion planning. In Pro. 41st Annu. IEEE Sympos. Found. Comput. Si. , pp. 443- 453, (2000).