Next Article in Journal
Nature-Inspired Optimization Algorithms for Text Document Clustering—A Comprehensive Analysis
Previous Article in Journal
Person Re-Identification across Data Distributions Based on General Purpose DNN Object Detector
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hardness of Approximation for Langton’s Ant on a Twisted Torus

by
Takeo Hagiwara
1,†,‡ and
Tatsuie Tsukiji
2,*,‡
1
Department of Science and Engineering, Tokyo Denki University, Tokyo 120-8551, Japan
2
Graduate School of Advanced Science and Technology, Tokyo Denki University, Tokyo 120-8551, Japan
*
Author to whom correspondence should be addressed.
Current address: Oaza Ishizuka, Hikigun Hatoyama-tyou, Saitama 350-0394, Japan.
These authors contributed equally to this work.
Algorithms 2020, 13(12), 344; https://doi.org/10.3390/a13120344
Submission received: 3 December 2020 / Revised: 12 December 2020 / Accepted: 13 December 2020 / Published: 16 December 2020

Abstract

:
Langton’s ant is a deterministic cellular automaton studied in many fields, artificial life, computational complexity, cryptography, emergent dynamics, Lorents lattice gas, and so forth, motivated by the hardness of predicting the ant’s macroscopic behavior from an initial microscopic configuration. Gajardo, Moreira, and Goles (2002) proved that Langton’s ant is PTIME -hard for reachability. On a twisted torus, we demonstrate that it is PSPACE hard to determine whether the ant will ever visit almost all vertices or nearly none of them.

1. Introduction

In 1986, Chris Langton proposed an artificial life on square lattice Z × Z [1,2,3,4,5] where each vertex is either to-right (white) or to-left (black). An ant, represented by an arrow in Figure 1, travels along edges with unit speed and four possible directions. It turns to either right or left, corresponding to the vertex’s white or black color it is heading and switches the color simultaneously. Since then, it is one of the most widely studied cellular automata in many fields, for example, discrete propagation kinetics [6,7,8], Lorentz lattice gas [9,10,11], particle diffusion dynamics [12,13], computational complexity [14,15,16], emergent dynamics [17,18], and cryptography [19,20,21,22,23].
This paper’s motivation is the following chaotic trajectory of Langton’s ant. Placed on the all-white vertices, the ant stays within 45 × 48 area for about 10,000 moves unpredictably, and then it suddenly starts dancing a highway of 104 steps drawn in Figure 2 and moving diagonally in speed 2 / 52 [13]. After decades of exploration, this phenomenon has been taking place with no exception, giving rise to a famous conjecture—the highway must eventually appear regardless of any initial configuration with finite support. If so, the ant’s long-run behavior is predictable except for reflection and transposition. Grosfils, Boon, Cohen, and Bunimovich [12] developed diffusion dynamics proving the highway conjecture and measuring the diffusion speed on triangular lattice. Meanwhile, Gajardo, Moreira, and Goles (GMG, [14]) constructed a finite configuration to evaluate a given boolean circuit. We note that these theoretical results fundamentally affected the related fields. For example, suppose that Langton’s ant is a particle system where a finite initial configuration and its consequent macroscopic quantities are the only observables. If highway conjecture holds, macroscopic observables are fixed constants regardless of the initial state. In any case, they must have some calculation from the initial finite configuration since the system is deterministic. GMG demonstrates that calculus PSPACE-hard if macroscopic quantities rely on an ant’s microscopic behavior called reachability.
This paper aims to strengthen GMG in both computational complexity and highway conjecture. Computational complexity measures time and space (memory) that modern computers, that is, Turing machines, must spend for solving a given computational problem (see computational complexity textbooks, for example, Reference [24]). GMG proved that the ant’s trajectory could simulate any computation spending a polynomial ( n c for some constant c 1 ) time for any bit-length n instance. GMG constructed a boolean circuit evaluator since circuit evaluation is a PTIME -complete problem, that is, simulating any polynomial-time calculation. Similarly, QCNF is a PSPACE -complete problem to execute any polynomial-space computation [25]. QCNF evaluates a given Conjunctive Normal Form (CNF) with bounded quantifiers. For example, QCNF evaluates x 1 , x 2 , ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) = TRUE, since for any x 1 {TRUE, FALSE}, there exists x 2 {TRUE, FALSE}, making the 2-term 2-variable CNF ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) = TRUE. PSPACE-complete problems take exponential time for any known algorithms, although P ≠ PSPACE is merely a conjecture. We note that GMG constructed a universal Turing machine but using an infinite number of black vertices for the initial configuration.
This paper aims to obtain the first result that the ant’s trajectory is unpredictable, even for a macroscopic measurement [3]. Let Z n = { n 1 2 , , 1 , 0 , 1 , , n 1 2 } . For a coloring θ n with black vertices in only Z n × Z n , let f θ n ( N , T ) be the number of vertices in Z N × Z N that the ant starting from the origin will visit after T steps. We call Z n × Z n microscopic field, while Z N × Z N macroscopic one. If highway conjecture holds, we have θ = { θ n } n , ρ 1 ( θ ) = 11 / 2 for ρ c ( θ ) : = lim n lim N lim T f θ n ( N , T ) / N c . However, we do not even know θ , ρ 2 ( θ ) < 1 , that is, the ant may visit almost all vertices for some θ . The only known previous result is θ , ρ 1 ( θ ) > 0 , that is, the ant’s trajectory must always be unbounded [10]. Although ρ 2 ( θ ) measures N 2 -order convergence rather than more accurate N-order one required in highway conjecture, its impact is substantial on the related fields. For example, if θ , ρ 2 ( θ ) = 0 , mathematical analysis may have a chance to prove highway conjecture on square lattice, as they have done in triangular lattice [9,12] and one-dimensional lattice [7,12]. If θ , ρ 2 ( θ ) = 1 , cryptographic applications [19,20,21,22,23] may find finite configurations producing infinitely long pseudo-random bits generated by the ant’s trajectory.
This paper will show that ρ 2 ( θ ) is hard to approximate on a twisted torus. A torus is the standard boundary condition to extend a coloring ϕ on Z N × Z N to Z × Z by ϕ ( x , y ) = ϕ ( x + N , y ) = ϕ ( x , y + N ) for ( x , y ) Z × Z . Long-run computer simulation of square lattice cellular automata usually takes this topology [19,20,22]. An h-twist ( h / N -pitch) of the torus is ϕ ( x , y ) = ϕ ( x + N , y ) = ϕ ( x + h , y + N ) . It appears in related models, for example, square-lattice Ising models (Langton’s ant is a typical one) [26,27]. When h = ± 11 , ρ 2 ( θ ) = 1 may occur even under highway emergence, as described in Figure 3. For this specific case, we can prove the following theorem.
Theorem 1.
On ±11-twist torus, it is PSPACE hard to distinguish between ρ 2 ( θ ) = 1   a n d   0
It states that modern computers cannot predict whether the ant on the twisted torus will ever visit almost all vertices or nearly none of them, even under the promise that either of these cases must occur. Notice that ρ 2 ( θ ) is a time-independent measurement, counting the ever visiting vertices. Our proof will measure the period that an initial configuration of the cellular automaton appears again, too. Any closed loop of Langton’s ant’s propagating configurations must contain the initial one [6]. Let g θ n ( N ) be the period of Langton’s ant on Z N × Z N with an initial coloring θ n on Z n × Z n . Let ξ c ( θ ) : = lim n lim N g θ n ( N ) / N c .
Theorem 2.
On ±11-twist torus, it is PSPACE hard to distinguish between ( ρ 2 ( θ ) , ξ 2 ( θ ) ) = ( 1 , 208 11 ) and ( 0 , 0 ) .
Consequently, no computer-aided analysis can calculate Langton’s ant’s macroscopic quantities from an initial finite configuration in polynomial time, unless P = PSPACE. We note that even under the (twisted) tours’s boundary condition, Lorentz lattice gas can measure the ant’s diffusion speed for triangular lattice [9], particle diffusion dynamics can do it for both triangular and one-dimensional lattices [12], and discrete propagation kinetics the diffusion speed or period of the ant’s rules for one-dimensional lattice [7]. Theorem 2 indicates that these currently known methods cannot measure them for square lattice.

A Proof Outline

Figure 4 reduces QCNF to Langton’s ant problem of distinguishment between ( ρ 2 ( θ ) , ξ 2 ( θ ) ) = ( 0 , 0 ) and ( 1 , 208 11 ) . It maps a given QCNF instance Φ = { Φ n } , say Φ n 0 = x 1 , x 2 , ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) for a sufficiently large n 0 to encode it on Z n 0 × Z n 0 , to a coloring θ ( Φ ) = { θ n ( Φ n ) } on microscopic field. The ant starting from the port (i.e., edge) S of TURN-A gate walks along a line and gets into the G [ Φ ] chip (a collection of gates) at the entrance port I. The ant evaluates Φ and gets out from either the exit port F if it is FALSE or T if it is TRUE. In the former case, the ant reaches TURN-B gate. Since each TURN gate reverses the ant (i.e., putting the ant on the same port in the opposite direction), it must repeat a closed-loop between TURN-A and TURN-B gates due to time-reversibility; the reversed ant must travel back and rewind all steps it has taken in the time-reversing order. This loop holds the ant on microscopic field and thus makes a reduction Φ = FALSE ρ 2 ( θ ( Φ ) ) , ξ 2 ( θ ( Φ ) ) = ( 0 , 0 ) . Similarly, the latter case induces another loop between TURN-A and TURN-C gates, passing through Hamiltonian-tour gate on the way, which drives the ant to visit almost all vertices in macroscopic field. It yields Φ = TRUE ρ 2 ( θ ( Φ ) ) , ξ 2 ( θ ( Φ ) ) = ( 1 , 208 11 ) , where 208 11 = 4 / 11 · 2 / ( 2 / 52 ) . Since these TURN gates take binary states flipping at the ant’s every visit, the ant travels Figure 3’s Hamiltonian-tour four times until revisiting the initial configuration. Each Hamiltonian-tour consists of ( N O ( n ) ) / 11 rounds of length- 2 N diagonals, taking ( N O ( n ) ) / 11 · 2 N / ( 2 / 52 ) time since the ant’s speed is 2 / 52 [13].
Our previous paper [15] has already provided a coloring for the G [ Φ ] chip to evaluate a QCNF formula Φ , but using gray vertices at which the ant goes straight without changing the color [10]. Since it has permitted only a single gray vertex at each TURN gate and nowhere else, we are enough to exhibit only a new TURN gate with no gray vertex. However, open square lattice topology prohibits it because it tessellates the vertices of Z × Z into chess-board symmetry of { H , V } -polarity: Every H-vertex (resp. V-vertex) permits the ant to come Horizontally (resp. Vertically) and go vertically (resp. horizontally). Even-twist torus preserves { H , V } -polarity, but odd-twist torus breaks it. If the ant living in odd-twist torus travels around vertically and comes back to the initial place, it can visit the world where every vertex possesses the opposite polarity. Figure 5 realizes a TURN gate in virtue of this polarity switching phenomenon. The ant enters at the port S, passing through FL (FLipper) gate, and reaching HW (HighWay) gate. The ant gets on Figure 2’s highway and travels towards a 2 N away destination place in a diagonal direction. The odd-twist torus’s topology brings the ant to a new world possessing the same address but the opposite polarity. Accordingly, after getting off the highway, the ant passes through the FL gate again and gets out the TURN gate from the same port S that it has entered but in the opposite direction.
A Hamiltonian-tour gate to visit almost all vertices is easy to realize: Let the ant get on a highway at the entrance port I of top-left H 2 in Figure 4. It brings the ant to a Hamiltonian tour along screwing diagonals of Figure 3: Each diagonal transports the ant by a horizontal and vertical distance N, bringing it back to the same address but a horizontal displacement ± 11 due to the twisted torus topology. This gap number 11 fits the highway width, providing an exhaustive, mutually exclusive vertex cover. The highway must assume white color of the underlying vertices, so it remains at most n 2 vertices inside microscopic field unvisited. Figure 6 paves gates along the border between microscopic and macroscopic fields to generate consecutive multiple highways H1, H2, …, H4 surrounding the G [ Φ ] chip. The ant must pass through all these highways in order: It gets on each Hi at the entrance port I of Figure 6 placed in Figure 4’s left Hi, making a trip to the right Hi, getting off there at the exit port O 2 , and walking along a line guiding to the next left Hi+1’s entrance port.
We follow an analysis of Reference [16] in making efficient embedding of Figure 4’s cellular automaton to the square lattice, although it allowed using gray color freely in CROSS gates. Reference [15] prohibits it there, but their CROSS gate was large and complex. This paper will maintain the efficiency of Reference [16] by providing a new construction of CROSS gate having size 9 × 9 in Figure 7.

2. Gates

A gate is a coloring on a limited lattice area for embedding the corresponding part of Figure 4’s cellular automaton to square lattice. This section describes the necessary gates composing all parts of Figure 4. These gates must endure repeated usage under contamination by the ant’s passage. Time reversibility of Langton’s ant recovers the initial state: The ant passes a gate by I O , that is, entering at I, staying inside the gate for a while, and finally exiting at O, changing the gate’s state C D . After that, the ant placed on O 1 , the same port O but the opposite direction, must proceed as O 1 I 1 and changes the gate’s state as D C . We say that the ant’s inverse trip must charge the dry gate for the next passage.
Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12 display gates and their state diagrams called Straight PATH, Bending PATH, JOIN (called CONJ in Reference [15]), S&P (Switch and Pass), and SWitch (SW in short), respectively. These state diagrams are Mealy machines outputting ant’s tracks when state transitions occur. When C D occurs, the ant must travel from I to O inside the gate along the track (a series of the ant’s moves to either the Left (L) or Right (R) directions). We write it as I [ X ] C / D O [ X ] or C [ X ] I / O D [ X ] . For example, PATH can stretch upwards by alternating Figure 8 with its H&D (H-symmetry and Dual, that is, flipping Horizontally and swapping C ↔ D), I[PATH] I / O O[PATH] →I[H&D PATH] I / O O[H&D PATH] →I[PATH] I / O O[PATH] →⋯, forming a width-2 line, possibly bending to right by Figure 9. It can stretch and turn by 90 degrees to arbitrary directions by taking the symmetric and dual figures. PATH, S&P, and JOIN have the same configurations as Reference [15]. Differences from Reference [15] are parsing a S&T (Switch and Turn) gate in Reference [15] into three gates (SW, HW, FL) in Figure 5, providing a new TURN gate with no gray-color vertex, and a new CROSS gate having a much smaller size.

2.1. Turns

Figure 12, Figure 13 and Figure 14 present configurations of SW, FL, and HW, respectively. Any automatic method can check the correctness of these configurations. In Figure 14, the ant gets in HW at the entrance port I, passing through I O 1 for highway generation, riding on a highway propagation O 1 O 2 , and getting out of it at the exit port O 2 and walking away along a path starting from O 2 . Figure 15 paves consecutive highways where each HW attaches an SW (horizontally flipped Figure 12) to share HW’s right-most two vertices with SW’s left-most ones. In this manner, Figure 4 paves the k TURNs ( G 1 and G 2 with k = 2 there) for the k variables of Φ .
Lemma 1.
Every visit of the ant to Figure 5 induces S [ T U R N ] S 1 [ T U R N ] , accompanied by C F [ S W ] I 1 / O C T [ S W ] (resp. C T [ S W ] O 1 / I 1 1 C F [ S W ] ) at each odd (resp. even) time visit.
Proof. 
In each odd time visit to Figure 5, the ant gets in from the entrance port S, travels along S I [ FL ] C 1 C 2 / D 1 C 2 O 1 [ FL ] I [ HW ] C 1 C 2 / D 1 C 2 O 1 [ HW ] D 1 C 2 / D 1 D 2 I 1 [ SW ] C F / C T O [ SW ] O 2 [ HW ] * O 2 1 [ FL ] D 1 C 2 / D 1 D 2 I 1 [ FL ] S 1 , and exits from the S it has entered but in the opposite direction. Here, the ant at * can get into the FL gate from the exit port O 2 since the ant lives in the opposite polarity world before and after taking the HW trip. Each even time visit induces the reversed travel S I [ FL ] D 1 D 2 / D 1 C 2 O 2 [ FL ] O 2 1 [ HW ] D 1 D 2 / D 1 C 2 O 1 [ SW ] C T / C F I 1 1 [ SW ] O 1 1 [ HW ] D 1 C 2 / C 1 C 2 I 1 [ HW ] O 1 1 [ FL ] D 1 C 2 / C 1 C 2 I 1 [ FL ] S 1 . Observe that the SW’s state has transited as claimed. □

2.2. Crosses

Figure 16 draws a state diagram of Figure 7’s CROSS gate constituting from 4 sub gates A–D; Figure 17, Figure 18, Figure 19 and Figure 20 show their configurations. It is automatic to check their correctness.

3. Lattice Embedding

A previous paper [16] transformed the G [ Φ ] chip to a planar cellular circuit over {S&P, S&T, JOIN, CROSS} gates by Figure 21, Figure 22 and Figure 23 for Φ = x 1 , x 2 , ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) .
Lemma 2
([16]). A quantified CNF formula of k boolean variables, having m clauses, and ℓ occurrences of the literals can be computed by a planar cellular circuit having k + S&P, k S&T, 1 + k JOIN, and 2 ( + m / 2 ) 2 + 9 k CROSS gates.
The planar cellular circuit takes a classical Visual Representation (VR) [28,29] for square lattice embedding in Reference [16]. Notice that VR embedding have several aesthetic criteria, say draw edge as straight as possible, vertices should be evenly distributed, minimize bends in the lines. It represents each {S&P, JOIN, CROSS, SW, HW, FL} gate by a horizontal line segment and each path is connecting between them by a vertical line segment. Figure 7’s CROSS gate has size 9 × 9 with just one port on each side, around which the ant can move by paths of width 2. Consequently, its VR embedding enjoys both horizontal and vertical sizes 9 + 2 · 2 = 13 .
Lemma 3.
Any cellular {S&P, JOIN, CROSS, SW, HW, FL}-circuit consisting of S CROSS gates and the other o ( S ) gates have a VR embedding on Z ( 13 + o ( 1 ) ) S × Z ( 8 + o ( 1 ) ) S .
Proof. 
VR embedding takes a height 13 to embed each CROSS vertex and a width 8 for the four lines of width-2 emitted from it. Since there are only o ( S ) of the other kinds of vertices, the total height and width are no larger than 13 S + o ( S ) and 8 S + o ( S ) , respectively. □

4. Hardness of Approximation for Langton’s Ant

We say that a function f : { 0 , 1 } * { 0 , 1 } * has a deterministic or non-deterministic computation of t-time and s-space if it has that kind of Turing machine T halting in t steps by using s walk-tape cells such that x { 0 , 1 } * , f ( x ) = T ( x ) . A language L : { 0 , 1 } * { 0 , 1 } has a closed QCNF expression if there exists a sequence of closed QCNF expressions { Φ ( x 1 , , x k ) } k 1 such that k , x { 0 , 1 } k , L ( x ) = Φ ( x 1 , , x k ) ; a closed QCNF is a QCNF with all k variables quantified. CNF’s size sums the numbers of variables in the terms; QCNF’s size is its CNF’s size.
Theorem 3
([25]). Let s be any integer larger than the number of input bits. Any language having a non-deterministic computation using s space admits a closed QCNF representation of size c s 2 for some universal constant c > 0 .
The next theorem demonstrates Theorems 1 and 2 by a reduction from the above theorem.
Theorem 4.
Let h = ± 11 and s 4 n N . A given closed QBF Φ of size c s 2 is transformable by a deterministic computation of n O ( 1 ) time and O ( log n ) space to a coloring θ n ( Φ ) on Z n × Z n of h-twist torus Z N × Z N , such that if Φ = FALSE then N 2 n 2 lim T f θ n ( N , T ) N 2 and 208 11 ( N 2 n 2 ) g θ n ( Φ ) ( N ) 208 ( 1 11 N 2 + 2 c s 2 N ) , else lim T f θ n ( Φ ) ( N , T ) n N and g θ n ( Φ ) ( N ) 208 · 2 c s 2 N .
Proof. 
Lemmas 2 and 3 embed the G [ Φ ] chip to Z n ˜ × Z n ˜ for s 4 n ˜ n in the claimed time and space due to VR embedding algorithms [28,29]. A previous paper [15] proved that if Φ is TRUE (resp. FALSE), then the ant getting in G [ Φ ] ’s entrance port I must get out from the exit port T (resp. F). As explained by Figure 4 in Section 1, if Φ is TRUE, the ant repeats S 1 [ TURN - A ] I [ G [ Φ ] ] C / D S [ G [ Φ ] ] S [ TURN - B ] C / D S 1 [ TURN - B ] T 1 [ G [ Φ ] ] D / C I 1 [ G [ Φ ] ] S [ TURN - A ] C / D S 1 [ TURN - A ] S [ TURN - A ] D / C S 1 [ TURN - A ] . The ant visits only n ˜ 2 vertices of the G [ Φ ] chip plus 11 N of each HW gate for the k variables of Φ , yielding f θ n ( N , T ) n ˜ 2 + k · 11 N N n . The ant switches the vaiables’ values for 2 k + 2 times since each of the four trips between TURN-A and TURN-B may consult at most 2 k bit patterns to evaluate QCNF. Switching a variable takes at most 52 N steps for tripping HW in the TURN gate. Between them, the ant travels the same polarity, so each S&P, SW, and CROSS gate allow twice passages, and the other gates only once (see their state diagrams). Since the G [ Φ ] chip contains at most O ( s 4 ) gates and n ˜ 2 total path length, g θ n ( N ) 2 k + 2 · ( 52 N + O ( s 4 ) + n ˜ 2 ) 208 · 2 c s 2 N .
If Φ is FALSE, S 1 [ TURN - A ] I [ G [ Φ ] ] C / D F [ G [ Φ ] ] H 1 [ I ] C / D H 1 [ O 2 ] H j [ I ] C / D H j [ O 2 ] S [ TURN - C ] D / C S 1 [ TURN - C ] H j [ O 2 1 ] D / C H j [ I 2 1 ] H 1 [ O 2 1 ] D / C H 1 [ I 2 1 ] F 1 [ G [ Φ ] ] D / C I 1 [ G [ Φ ] ] S [ TURN - A ] C / D S 1 [ TURN - A ] S [ TURN - A ] D / C S 1 [ TURN - A ] . Here, j n ˜ ( j = 4 in Figure 4) is the number of Figure 6’s HW gates surrounding the G [ Φ ] chip, one of which ( H 2 in Figure 4) becomes a Hamiltonian tour. Consequently, lim T f θ n ( N , T ) N 2 n ˜ 2 > N 2 n 2 , and g θ n ( N ) > ( N 2 n 2 ) · 208 11 . An upper bound of g θ n ( N ) is the Hamiltonian tour time-bound 208 11 N 2 plus the G [ Φ ] ’s evaluation 208 · 2 c s 2 N .
The only difference between Figure 4’s cellular automaton and the previous one in Reference [15] is parsing each k S&T gate inside Figure 22 and Figure 23 to Figure 5’s (SW, HW, FL) gates, and moving out both HW and SW to the outside but remaining the FL there. Observe that the SW gate entails three lines connecting I[SW]– I 1 [JOIN], F[SW]- I 1 [CROSS], and T[SW]– I 2 [CROSS], and the HW gate two lines I[HW]– O 1 [FL] and O 2 [FL]– O 2 [HW]. Each of these lines incurs 2 additional cross gates for preserving planarity through moving-out their gates outside of the k-times cascaded Figure 22 and Figure 23. Consequently, our cellular automaton may conttain 5 · 2 · k ( k 1 ) / 2 more cross gates than that in Lemma 2. The above analysis still holds even suffering this cross-gate incrementation. □

5. Conclusions

We have shown that it is PSPACE hard to predict whether the ant residing in h-twist torus will visit almost all vertices or nearly none of them, for h = ± 11 . We have embedded a closed QCNF Φ to Z n × Z n of the twisted torus Z N × Z N and measured the following quantities by dividing N 2 and taking the limit N . If Φ is TRUE, then the density of ever visiting vertices is 1, and the period is 208 11 . Otherwise, both are 0. The same argument proves the following result for any odd number h 11 . Let h mod 11 : = h 11 h / 11 . If Φ is TRUE, then the density is 1 | h | mod 11 | h | , and the period is 208 11 · ( 1 | h | mod 11 | h | ) since we have Figure 24’s screwing highway inserting | h | mod 11 spaces between jth and ( j + 1 ) th diagonals for every j j / 11 · N . For example, for | h | = 23 , Figure 24 paves two consecutive screw highways H 1 and H 2 by Figure 6. For | h | { 1 , 3 , 5 , 7 , 9 } , we can prove that the ant’s reachability problem is PSPACE hard, since Figure 5’s TURN makes [15]’s PSPACE completeness proof valid. However, we have not yet found any non-zero density trajectory of Langton’s ant for 1 | h | 10 . For every even number h, particularly the standard torus h = 0 , Langton’s ant’s known computational complexity is only the PTIME-hardness of Gajardo, Moreira, and Goles [14]. Proving PSPACE-hardness for even-twist torus is wide open.

Author Contributions

Conceptualization, T.T.; methodology, T.T.; software, T.H.; validation, T.H.; formal analysis, T.H.; investigation, T.H. and T.T.; writing—original draft preparation, T.T.; writing—review and editing, T.T.; visualization, T.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Langton, C.G. Studying artificial life with cellular automata. Phys. Nonlinear Phenom. 1986, 22, 120–149. [Google Scholar] [CrossRef] [Green Version]
  2. Moreira, A.; Gajardo, A.; Goles, E. Dynamical behavior and complexity of Langton’s ant. Complexity 2001, 6, 46–52. [Google Scholar] [CrossRef]
  3. Hamann, H.; Schmickl, T.; Crailsheim, K. Thermodynamics of emergence: Langton’s ant meets Boltzmann. In Proceedings of the 2011 IEEE Symposium on Artificial Life (ALIFE), Paris, France, 11–15 April 2011; pp. 62–69. [Google Scholar]
  4. Rao, K.N.; Divya, M.; Pallavi, M.; Priyanka, B.N. Modeling Artificial Life: A Cellular Automata Approach. In Computational Intelligence Techniques for Comparative Genomics; Springer: Berlin/Heidelberg, Germany, 2015; pp. 73–85. [Google Scholar]
  5. Schiff, J.L. Order from Chaos. In The Mathematical Universe; Springer: Berlin/Heidelberg, Germany, 2020; pp. 120–167. [Google Scholar]
  6. Gale, D.; Propp, J.; Sutherland, S.; Troubetzkoy, S. Further travels with my ant. arXiv 1995, arXiv:math/9501233. [Google Scholar]
  7. Gajardo, A.; Goles, E. Dynamics of a class of ants on a one-dimensional lattice. Theor. Comput. Sci. 2004, 322, 267–283. [Google Scholar] [CrossRef] [Green Version]
  8. Gale, D. Tracking the Automatic Ant: And Other Mathematical Explorations; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  9. Kong, X.; Cohen, E. Diffusion and propagation in triangular Lorentz lattice gas cellular automata. J. Stat. Phys. 1991, 62, 737–757. [Google Scholar] [CrossRef]
  10. Bunimovich, L.A.; Troubetzkoy, S.E. Recurrence properties of Lorentz lattice gas cellular automata. J. Stat. Phys. 1992, 67, 289–302. [Google Scholar] [CrossRef]
  11. Rechtman, A.; Rechtman, R. Equivalence of deterministic walks on regular lattices on the plane. Phys. Stat. Mech. Its Appl. 2017, 466, 69–78. [Google Scholar] [CrossRef] [Green Version]
  12. Grosfils, P.; Boon, J.P.; Cohen, E.; Bunimovich, L. Propagation and organization in lattice random media. J. Stat. Phys. 1999, 97, 575–608. [Google Scholar] [CrossRef] [Green Version]
  13. Boon, J.P. How fast does Langton’s ant move? J. Stat. Phys. 2001, 102, 355–360. [Google Scholar] [CrossRef]
  14. Gajardo, A.; Moreira, A.; Goles, E. Complexity of Langton’s ant. Discret. Appl. Math. 2002, 117, 41–50. [Google Scholar] [CrossRef] [Green Version]
  15. Tsukiji, T.; Hagiwara, T. Recognizing the repeatable configurations of time-reversible generalized Langton’s ant is PSPACE-hard. Algorithms 2011, 4, 1–15. [Google Scholar] [CrossRef]
  16. Hagiwara, T.; Tsukiji, T.; Chen, Z.Z. Computational Complexity of Predicting Periodicity in the Models of Lorentz Lattice Gas Cellular Automata. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. 2016, 99, 1034–1049. [Google Scholar] [CrossRef]
  17. Stewart, I. Systems with Emergent Dynamics. In AIP Conference Proceedings; American Institute of Physics: College Park, MD, USA, 2002; Volume 627, pp. 27–36. [Google Scholar]
  18. Heiney, K.; Tufte, G.; Nichele, S. On Artificial Life and Emergent Computation in Physical Substrates. arXiv 2020, arXiv:2009.04518. [Google Scholar]
  19. Hosseini, S.M.; Karimi, H.; Jahan, M.V. From Complexity to Random Behaviors; Generate Random Numbers by Confusion in Cellular Automata State’s. In Proceedings of the International Conference on Scientific Computing (CSC), Las Vegas, NV, USA, 18–21 July 2011; p. 1. [Google Scholar]
  20. Abu Dalhoum, A.L.; Mahafzah, B.A.; Awwad, A.A.; Aldhamari, I.; Ortega, A.; Alfonseca, M. Digital image scrambling using 2D cellular automata. IEEE Multimed. 2012, 19, 28–36. [Google Scholar] [CrossRef] [Green Version]
  21. Pospíchal, J. How Random Is Spatiotemporal Chaos of Langton’s Ant? J. Appl. Math. Stat. Inform. 2015, 11, 5–13. [Google Scholar]
  22. Wang, X.; Xu, D. A novel image encryption scheme using chaos and Langton’s Ant cellular automaton. Nonlinear Dyn. 2015, 79, 2449–2456. [Google Scholar] [CrossRef]
  23. Dey, D.; Giri, D.; Jana, B.; Maitra, T.; Mohapatra, R.N. Linear-feedback shift register-based multi-ant cellular automation and chaotic map-based image encryption. Secur. Priv. 2018, 1, e52. [Google Scholar] [CrossRef] [Green Version]
  24. Arora, S.; Barak, B. Computational Complexity: A Modern Approach; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  25. Chandra, A.K.; Kozen, D.C.; Stockmeyer, L.J. Alternation. JACM 1981, 28, 114–133. [Google Scholar] [CrossRef]
  26. Vallés, J.; Leung, K.; Zia, R. Driven nonequilibrium lattice systems with shifted periodic boundary conditions. J. Stat. Phys. 1989, 56, 43–58. [Google Scholar]
  27. Anderson, M.J., Jr. Cooperative Behavior in Driven Lattice Systems with Shifted Periodic Boundary Conditions. Ph.D. Thesis, Virginia Tech, Blacksburg, VA, USA, 1998. [Google Scholar]
  28. Rosenstiehl, P.; Tarjan, R.E. Rectilinear planar layouts and bipolar orientations of planar graphs. Discret. Comput. Geom. 1986, 1, 343–353. [Google Scholar] [CrossRef] [Green Version]
  29. Tamassia, R.; Tollis, I.G. A unified approach to visibility representations of planar graphs. Discret. Comput. Geom. 1986, 1, 321–341. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The rule of the ant’s move.
Figure 1. The rule of the ant’s move.
Algorithms 13 00344 g001
Figure 2. A highway.
Figure 2. A highway.
Algorithms 13 00344 g002
Figure 3. A screwing highway.
Figure 3. A screwing highway.
Algorithms 13 00344 g003
Figure 4. An ant’s travel for QCNF.
Figure 4. An ant’s travel for QCNF.
Algorithms 13 00344 g004
Figure 5. TURN.
Figure 5. TURN.
Algorithms 13 00344 g005
Figure 6. Paving consecutive HW.
Figure 6. Paving consecutive HW.
Algorithms 13 00344 g006
Figure 7. Cross gate.
Figure 7. Cross gate.
Algorithms 13 00344 g007
Figure 8. Straight PATH.
Figure 8. Straight PATH.
Algorithms 13 00344 g008
Figure 9. Bending PATH.
Figure 9. Bending PATH.
Algorithms 13 00344 g009
Figure 10. JOIN.
Figure 10. JOIN.
Algorithms 13 00344 g010
Figure 11. S&P.
Figure 11. S&P.
Algorithms 13 00344 g011
Figure 12. SW.
Figure 12. SW.
Algorithms 13 00344 g012
Figure 13. FL.
Figure 13. FL.
Algorithms 13 00344 g013
Figure 14. HW.
Figure 14. HW.
Algorithms 13 00344 g014
Figure 15. Paving consecutive HW with SW.
Figure 15. Paving consecutive HW with SW.
Algorithms 13 00344 g015
Figure 16. Cross diagram.
Figure 16. Cross diagram.
Algorithms 13 00344 g016
Figure 17. Cross A.
Figure 17. Cross A.
Algorithms 13 00344 g017
Figure 18. Cross B.
Figure 18. Cross B.
Algorithms 13 00344 g018
Figure 19. Cross C.
Figure 19. Cross C.
Algorithms 13 00344 g019
Figure 20. Cross D.
Figure 20. Cross D.
Algorithms 13 00344 g020
Figure 21. G [ ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) ] ] .
Figure 21. G [ ( x 1 ¬ x 2 ) ( ¬ x 1 x 2 ) ] ] .
Algorithms 13 00344 g021
Figure 22. G [ ( x ) f ] ] .
Figure 22. G [ ( x ) f ] ] .
Algorithms 13 00344 g022
Figure 23. G [ ( x ) f ] .
Figure 23. G [ ( x ) f ] .
Algorithms 13 00344 g023
Figure 24. Screwing highways for h = 23 .
Figure 24. Screwing highways for h = 23 .
Algorithms 13 00344 g024
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hagiwara, T.; Tsukiji, T. Hardness of Approximation for Langton’s Ant on a Twisted Torus. Algorithms 2020, 13, 344. https://doi.org/10.3390/a13120344

AMA Style

Hagiwara T, Tsukiji T. Hardness of Approximation for Langton’s Ant on a Twisted Torus. Algorithms. 2020; 13(12):344. https://doi.org/10.3390/a13120344

Chicago/Turabian Style

Hagiwara, Takeo, and Tatsuie Tsukiji. 2020. "Hardness of Approximation for Langton’s Ant on a Twisted Torus" Algorithms 13, no. 12: 344. https://doi.org/10.3390/a13120344

APA Style

Hagiwara, T., & Tsukiji, T. (2020). Hardness of Approximation for Langton’s Ant on a Twisted Torus. Algorithms, 13(12), 344. https://doi.org/10.3390/a13120344

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop