Submit manuscript...
eISSN: 2574-8092

International Robotics & Automation Journal

Mini Review Volume 8 Issue 1

Shortest paths of trefoil knot designs using Rubik’s Snakes

Songming Hou,1 Jianning Su2

1Department of Mathematics and Statistics and Center of Applied Physics, Louisiana Tech University, USA
2Department of Mathematics and Sciences, Midway University, USA

Correspondence: Songming Hou, Dept of Mathematics and Statistics and Center of Applied Physics, Louisiana Tech University, Ruston, LA, 71272, USA

Received: January 21, 2022 | Published: January 28, 2022

Citation: Hou S, Su J. Shortest paths of trefoil knot designs using Rubik’s Snakes. Int Rob Auto JM. 2022;8(1):18-20 DOI: 10.15406/iratj.2022.08.00238

Download PDF

Abstract

A Rubik’s Snake is a toy that has been around for more than 40 years. It can be twisted to many interesting shapes. In particular a Rubik’s Snake can be twisted to form a knot. The trefoil knot is the simplest non-trivial knot. In this paper we study how many blocks are needed to form a trefoil knot for the original version of the Rubik’s Snake with integer multiple of 90 degree rotations for joints. We also study how many blocks are needed to form a trefoil knot using the tube version of the Rubik’s Snake.

Introduction

The Rubik’s Snake is a toy1 that was invented by Prof. Rubik in 1981.2,3 It consists of right isosceles triangular prisms. We call them blocks. They are connected to two other blocks at the centers of the square faces except for the first and last block.

The Rubik’s Snake is not just a toy. It has been used as a tool for the study of protein folding4,5 and for the construction of reconfigurable modular robots.6–8 There are more applications of robots in9,10 Some ideas in the study of Rubik’s Snake such as the use of rotation matrix is also used in rigid Origami folding.11,12 In previous papers that the first author collaborated with others, strategies have been given for the design of a Rubik’s Snake,13 and some mathematical problems concerning a Rubik’s Snake have been studied.14 Rotations that are not integer multiple of 90 degrees are mentioned in13 but not much theoretical work is presented. On the other hand,14 has quite some theoretical work but is only concerned with integer multiple of 90 degree rotations. In15 Rubik’s Snakes with general rotation angles were studied with theoretical work presented. In16 theorems about palindromic, periodic and Mӧbius Rubik’s Snakes were proved.

Knot theory17 is an interesting research area in mathematics. However, how could a Rubik’s Snake form a knot is not reported in the literature. For a trivial knot, 4 blocks of a Rubik’s Snake can form a closed loop, which has the shortest path. In this paper, we study the shortest path for a Rubik’s Snake trefoil knot which is the simplest non-trivial knot. The organization is as follows: in Section 2, we consider the traditional Rubik’s Snake and present our findings for the shortest path. In Section 3, we consider the tube version of the Rubik’s Snake and general rotation angles introduced in15 and present our result for the shortest path. We conclude in Section 4.

The traditional Rubik’s snake

We adapt the same notation as in.14 Start with a straight Rubik’s Snake. In a degree sequence, “1” means rotating a joint by 90 degrees to the right. “2” means rotating a joint by 180 degrees. “3” means rotating a joint by 270 degrees to the right (or 90 degrees to the left) and “0” means keeping straight. A knot is automatically a closed loop. In this case, there is an artificial rotation added in the end so that we have n numbers in a degree sequence representing n blocks. Collision is not allowed among blocks.

The simplest nontrivial knot is the trefoil knot. Although it is too expensive to exhaust all possibilities of the Rubik’s Snake to look for the shortest possible trefoil knot using the Rubik’s Snake, it is realistic to exhaust Rubik’s Snakes with palindromic property. Palindromic Rubik’s Snake is studied extensively.16

The difference between the study in this paper and our previous work14 is that we have to identify that the snake path is a trefoil knot. The idea is as follows. First, by connecting the center of two square faces for each block, we have a line representation of the Rubik’s Snake. See Figure 1. Second, in a projection diagram, our code can detect which line is above which, and therefore can distinguish a trefoil knot from a trivial knot. We will discuss how to handle more complicated knots in our future work.

Figure 1 The line representation of a Rubik’s snake trefoil (31) knot with 34 blocks.

By running our code, we have a complete list of palindromic Rubik’s Snake trefoil knots that tied for the shortest with 34 blocks below. Here we do not distinguish left hand and right hand (that is, if 1 and 3 are interchanged in a sequence we do not count as a new sequence) and do not distinguish a rotation of a sequence.

[1, 0, 1, 2, 1, 0, 3, 0, 0, 1, 2, 0, 1, 1, 0, 1, 2,

1, 2, 1, 0, 1, 1, 0, 2, 1, 0, 0, 3, 0, 1, 2, 1, 0]

[1, 0, 1, 2, 1, 0, 3, 0, 0, 1, 3, 0, 3, 3, 0, 3, 1,

1, 1, 3, 0, 3, 3, 0, 3, 1, 0, 0, 3, 0, 1, 2, 1, 0]

[1, 0, 1, 2, 1, 0, 3, 0, 3, 2, 3, 3, 2, 3, 0, 3, 1,

1, 1, 3, 0, 3, 2, 3, 3, 2, 3, 0, 3, 0, 1, 2, 1, 0]

[1, 0, 1, 2, 1, 0, 3, 0, 3, 3, 0, 2, 3, 0, 0, 1, 2,

1, 2, 1, 0, 0, 3, 2, 0, 3, 3, 0, 3, 0, 1, 2, 1, 0]

[1, 0, 1, 2, 1, 0, 3, 0, 3, 3, 0, 3, 1, 0, 0, 3, 1,

1, 1, 3, 0, 0, 1, 3, 0, 3, 3, 0, 3, 0, 1, 2, 1, 0]

[1, 0, 1, 2, 1, 0, 3, 0, 3, 3, 1, 1, 3, 3, 0, 3, 1,

1, 1, 3, 0, 3, 3, 1, 1, 3, 3, 0, 3, 0, 1, 2, 1, 0]

Figure 2shows the realization of the first sequence. Its line representation is in Figure 1. The key idea is that the computational cost for searching for a palindromic sequence with 34 blocks is only within 417 attempts, not an unrealistic 434 attempts.Similarly searching for period 2 or period 3 solutions are also within reach. We also did an exhaustive search for period 2 and period 3 Rubik’s Snake trefoil knots but there is no result with 34 or less blocks.

Figure 2 A Rubik’s snake trefoil (31) knot with 34 blocks.

Based on the above list of sequences, we find that the pattern [0, 3, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 3, 0] appears in every single sequence if we change the starting block of the closed loops (i.e., a rotation of the numbers). We plot what this sequence represents in Figure 3. Note that there is a hole which is the key to form a trefoil knot. There is only one way to go through the hole using the Rubik’s Snake: a “1” rotation. This also explains why all the 6 sequences have a “1” as their 18th component. Another observation is that the relative location from one end of the hole to one end of other end of this sequence. This motivates us to search for the pattern:

Figure 3 Key local pattern for trefoil (31) knot.

S = [A, 0, 3, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 3, 0, reverse(B), 1] where A and B are not necessarily the same but have the same choices. Reverse(B) means the sequence B in reverse order. In the 6 palindromic solutions, A and B are the same with 6 choices:

[1, 3, 0, 0, 1, 3, 0, 3, 3]

[1, 3, 0, 3, 2, 3, 3, 2, 3]

[1, 3, 0, 3, 3, 0, 3, 1, 0]

[1, 3, 0, 3, 3, 1, 1, 3, 3]

[2, 1, 0, 0, 3, 2, 0, 3, 3]

[2, 1, 0, 1, 1, 0, 2, 1, 0]

In general, we can therefore generate 6∗6 = 36 solutions allowing A and B chosen from this list but not necessarily the same. We verified that all 36 solutions are valid. Also, we exhausted shorter choices for A and B and verified that there are no shorter solutions. 6 of the 36 solutions are those 6 palindromic solutions found earlier.

A Rubik’s Snake Mӧbius strip is defined14 and proved to be equivalent to having the sum of degrees in the sequence being 4k +
2 for integer k. Note that 4 of the 6 choices for A and B have the sum of degrees of the form 4k + 2 and the other 2 of the 6 choices have
the sum of degrees of the form 4k. The rest of the sequence S has the sum of degrees 16. That implies among the 36 solutions, the number
of Möbius strips is 4 * 2 + 2 * 4 = 16.

If there is a shorter trefoil path than 34 blocks, then a local pattern must improve Figure 3. However, this figure appears to be optimal. Therefore, we believe that the shortest path for a trefoil knot has 34 blocks and we have 36 different solutions with 34 blocks (left and right hand are counted as one solution).

Tube version of the Rubik’s snake with general rotation angles

As explained15 there is a unique tube embedded in each Rubik’s Snake block with two circles centered at the center of the two square faces and tangent to the rectangular face. Clearly, if these tubes collide, then the traditional Rubik’s Snake blocks collide, but not the other way around. It is reasonable to expect the tube version (i.e., a collection of tube blocks) to have shorter path for a trefoil knot.

Note that each joint has infinitely many choices. Even if we restrict to 40 choices for example, 40n is clearly out of reach for a global search with large n. There is no easy way to search for the optimal solution. Our approach is as follows.

We use the same notation as.15 For example, “0.75” means rotating the joint by 0.75 times 90 degrees to degrees to the right. “−0.1” means rotating the joint by 0.1 times 90 the left.

First, we define the error to be i=1 6 | | x i old     x i new    | | 2   MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaqcfaieaaaaaa aaa8qadaaeWbqaa8aadaabdaqaamaaemaabaWdbiaadIhadaqhaaqa aiaadMgaaeaacaWGVbGaamiBaiaadsgaaaGaaeiiaiaabccacaqGGa GaeyOeI0IaamiEamaaDaaabaGaamyAaaqaaiaad6gacaWGLbGaam4D aaaacaqGGaGaaeiiaaWdaiaawEa7caGLiWoaaiaawEa7caGLiWoada ahaaqabeaacaaIYaaaaaWdbeaacaWGPbGaeyypa0JaaGymaaqaaiaa iAdaaiabggHiLdqcLbsacaqGGaaaaa@52AC@ . Here x i old  MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaqcLbsaqaaaaa aaaaWdbiaadIhalmaaDaaabaqcLbmacaWGPbaaleaajugWaiaad+ga caWGSbGaamizaiaabccaaaaaaa@3E95@ are the six vertices of the first block of the original version of the Rubik’s Snake corresponding to the tube version and x i new  MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaqcLbsaqaaaaa aaaaWdbiaadIhalmaaDaaabaqcLbmacaWGPbaaleaajugWaiaad6ga caWGLbGaam4Daiaabccaaaaaaa@3EA0@ are the six vertices of the artificial block adding to the last block after an artificial rotation, again for the original version of the Rubik’s Snake. The norm here is Euclidean norm. Clearly, if a closed loop is formed, this error is supposed to be zero.

Second, it is critical that we have a good initial guess. A good initial guess better already has a trefoil structure without collision. Based on our result that the original Rubik’s Snake takes 34 blocks for a trefoil knot, and the fact that the new case is more flexible and should allow less blocks, we made some attempts with different number of blocks from 20 to 30 and reached the conclusion that 24 is within reach but 23 appears to be hopeless. We admit that we are unable to rigorously prove that 23 is impossible. This would certainly be interesting future research. We believe that 23 blocks is not enough to form a trefoil knot because it is a heavy burden to save an entire block out of 24, and the solution with 24 blocks does not appear to have room for such an improvement.

With trial and error using the above definition of error as a reference we have the following initial guess:

[2, 0, 0.2, 1.9, 0, 0, 3, 0.75, −0.75, 0, −0.8,

2, 0.2, −0.5, 3, 1, 1, −0.3, 2, 1, 0, 0, 0, 1]

The error is 1.32012. This is not small enough. However, because it is reasonably close, we could run a local search focusing on just the first two and last two rotations to make the computational cost within reach. We improved the result to:

[−1.88, −0.09, 0.2, 1.9, 0, 0, 3, 0.75, −0.75, 0, −0.8,

2, 0.2, −0.5, 3, 1, 1, −0.3, 2, 1, 0, 0, 0.20, 1.25]

Now the error is improved to 0.00085. This is accurate enough as could be seen in Figure 4. In real applications with such a small error it is reasonable to accept it as a closed loop. There are 24 identical tube blocks labeled in the figure. Note that this is not the optimal solution for a general rope because our geometry is restricted to have identical tube blocks. The problem we study is not really for a rope with general shape. Also, because one block has significant length and some tubes almost touch each other, it is reasonable to expect that 24 is the optimal solution.

Figure 4 A tube version of Rubik’s Snake trefoil (31) knot with 24 blocks.

Conclusion

Finding the shortest path for a Rubik’s Snake trefoil knot is a challenging problem. With each joint having 4 choices, the total number of attempts is too many to have an exhaustive search. By using the exhaustive search among palindromic Rubik’s Snake paths, we found that the shortest trefoil knot has 34 blocks under this constraint. We also extended the results and found 36 different solutions with 34 blocks (left and right hand are counted as the same solution). By using trial and error method combined with a local search, we found a possible shortest tube version of the Rubik’s Snake with general rotation angles that has 24 blocks. It would be interesting future research to see if these can be improved at all.

Acknowledgments

We thank Wen Li for interesting discussions about the construction of Rubik’s Snake trefoil knot. S. Hou’s research is partially supported by the Walter Koss Endowed Professorship. The title of the professorship is made available through the State of Louisiana Board of Regents Support Funds.

Conflicts of interest

The author declares that there was no conflict of interest.

Funding

None.

References

  1. Fiore A. Shaping Rubik’s Snake. Harmondsworth, Middlesex, England: Penguin Books; 1981:127.
  2. Fenyvesi C. Rubik’s snake of ‘infinite possibilities'. The Washington Post. 1981.
  3. Jensen G. Now meet rubik’s snake –bigger than rubik’s cube. United Press Interntational. 1981.
  4. Iguchi K. A toy model for understanding the conceptual framework of protein folding: Rubik’s magic snake model. Mod Phys Lett B. 1998;12(13):499–506.
  5. Iguchi K. Exactly solvable model of protein folding: Rubik’s magic snake model. Int J Mod Phys B. 1999;13(4):325–361.
  6. Ding X, Lu S, Yang Y. Configuration transformation theory from a chain-type reconfigurable modular mechanism-rubik’s snake. The 13th World Congress in Mechanism and Machine Science. 2011.
  7. Zhang X, Liu J. Prototype design of a rubik snake robot. Mechanisms and Machine Science. 2016:36.
  8. Liu J, Zhang X, Zhang K, et al. Configuration analysis of a reconfigurable rubik’s snake robot. Proceedings of the Institution of Mechanical Engineers, Part C: Journal of Mechanical Engineering Science. 2019;233(9):3137–3154.
  9. Yim M, Roufas K, Duff D, et al. Modular reconfigurable robots in space applications. Autonomous Robots. 2003;14(2-3):225–237.
  10. Zhang X, Liu J, Feng J, et al. Effective capture of nongraspable objects for space robots using geometric cage pairs. IEEE/ASME Transactions on Mechatronics. 2020;25(1):95–107.
  11. Hull TC, Belcastro SM. Modelling the folding of paper into three dimensions using affine transformations. Linear Algebra and its applications. 2002;348(1-3):273–282.
  12. Tachi T. Simulation of rigid origami. Origami. 2009;4(8):175–187.
  13. Li Z, Hou S, Bishop T. Computational design and analysis of a magic snake. J Mech Rob. 2020;12(5):054501.
  14. Hou S, Chen Y, Li Z. Some mathematical problems related to the rubik’s snake. J Mech Rob. 2021;13(1):014502.
  15. Hou S, Chen Y, Atkins S. A rubik’s snake with general rotation angles. SCIREA Journal of Information Science and Systems Science. 2021;5(6):123–135.
  16. Hou S, Su J, Chen Y. Palindromic, periodic and mobius rubik’s snakes. Int Rob Auto J. 2021;7(3):84–88.
  17. Adams C. The Knot Book: An Elementary Introduction to the Mathematical Theory of Knots. American Mathematical Society. 2004:307.
Creative Commons Attribution License

©2022 Hou, et al. This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, and build upon your work non-commercially.