entropy and speed of turing machines
play

Entropy and Speed of Turing machines E. Jeandel LORIA (Nancy, - PowerPoint PPT Presentation

Entropy and Speed of Turing machines E. Jeandel LORIA (Nancy, France) E. Jeandel, Entropy and Speed of Turing machines 1/39 Context Turing machines with one head and one tape . States Q Symbols . Transition map: Q ! Q {


  1. Entropy and Speed of Turing machines E. Jeandel LORIA (Nancy, France) E. Jeandel, Entropy and Speed of Turing machines 1/39

  2. Context Turing machines with one head and one tape . States Q Symbols Σ . Transition map: Q ⇥ Σ ! Q ⇥ Σ ⇥ { � 1 , 1 } Turing machines as a dynamical system: M : Q ⇥ Σ Z ! Q ⇥ Σ Z (the tape moves, not the head) No specified initial state (very important) No specified initial configuration (crucial) Might have final states (anecdotal) E. Jeandel, Entropy and Speed of Turing machines 2/39

  3. TM as a DS Seeing Turing machines as a dynamical system changes a lot of things: Interested in the behaviour starting from all configurations, not only one configuration. Hard to conceive of a TM with no (temporally) periodic configurations. Nevertheless, intricate TMs do exist. E. Jeandel, Entropy and Speed of Turing machines 3/39

  4. TM as a DS Theorem (essentially Turing 1937) There is no algorithm to decide whether a TM does not halt on its input configuration. Theorem (Hooper 1966) There is no algorithm to decide whether a TM does not halt on some input configuration. simplified proof by Kari-Ollinger (2008), which leads to the undecidability of the existence of a periodic point. E. Jeandel, Entropy and Speed of Turing machines 4/39

  5. TM as a DS Theorem (essentially the definition) 1 class S, there exists a TM for which the set S 0 of inputs For every Π 0 (starting from the initial state) on which the TM halts is Medvedev equivalent to S. Theorem (Jeandel 2012) 1 class S, there exists a TM for which the set S 0 of inputs For every Π 0 on which the TM halts is Muchnik equivalent to S. E. Jeandel, Entropy and Speed of Turing machines 5/39

  6. Dynamical Systems Part of a recent trend which sees computational models as dynamical systems. Good alternative to the classical Robinson technique for tilings: Turing machines (as a Dyn. Sys.) can be easily encoded into piecewise affine maps. Piecewise affine maps can be easily encoded into tilings The previous result about Muchnik equivalence can be transcoded into a result about tilings, which would be slightly weaker than Simpson 2013 (which have a Medvedev equivalence). E. Jeandel, Entropy and Speed of Turing machines 6/39

  7. This talk We will show why some thing are actually computable for 1-tape Turing machines, namely: its speed its entropy E. Jeandel, Entropy and Speed of Turing machines 7/39

  8. Speed For c a configuration, let S n ( c ) be the set of (different) cells visited during the first n steps of the computation on input c , and s n ( c ) = # S n ( c ) s n ( c ) is (Kingman)-subadditive s n + m ( c )  s n ( c ) + s m ( M n ( c )) If d ( x , y )  2 � s n ( x ) then d ( M n ( x ) , M n ( y ))  1 / 2. E. Jeandel, Entropy and Speed of Turing machines 8/39

  9. Speed s ( c ) = lim sup s n ( c ) s ( c ) = lim inf s n ( c ) n n If lim inf = lim sup, we denote by s ( c ) the speed of c . E. Jeandel, Entropy and Speed of Turing machines 9/39

  10. Some example(s) Consider a Turing machine that stays in the same direction when reading a symbol a , and changes direction when reading a b (changing it into an a ) E. Jeandel, Entropy and Speed of Turing machines 10/39

  11. Some example(s) Consider a Turing machine that stays in the same direction when reading a symbol a , and changes direction when reading a b (changing it into an a ) If c contains only a ’s, 0 n n n s ( c ) = 1. t E. Jeandel, Entropy and Speed of Turing machines 10/39

  12. Some example(s) Consider a Turing machine that stays in the same direction when reading a symbol a , and changes direction when reading a b (changing it into an a ) If c contains only b ’s, 0 n n ( 2 n � 1 ) s ( c ) = 0. t E. Jeandel, Entropy and Speed of Turing machines 10/39

  13. Some example(s) Consider a Turing machine that stays in the same direction when reading a symbol a , and changes direction when reading a b (changing it into an a ) 2 n � 1 02 n � 2 2 n If c contains b at posi- 3 . 2 n � 2 tions ( � 2 ) i s ( c ) = 1 / 3 , s ( c ) = 1 / 2 9 . 2 n � 2 � 2 t E. Jeandel, Entropy and Speed of Turing machines 10/39

  14. The speed Definition s n ( c ) s n ( c ) S ( M ) = max c 2 C s ( c ) = max c 2 C s ( c ) = lim n sup = inf n sup n n c c All definitions are indeed equivalent. This is due to compactness of the set of configurations and subadditivity. Note that it is a maximum, not a supremum. E. Jeandel, Entropy and Speed of Turing machines 11/39

  15. A few notes about the speed The maximal speed is “usually” not reached by random configurations Nevertheless, S ( M ) = R s d µ for some invariant measure µ . R s ( c ) = s d µ for µ -random points if µ ergodic (generalization of Birkhoff theorem to Kingman subadditive functions obtained by combining V’yugin + Hochman (2009)) E. Jeandel, Entropy and Speed of Turing machines 12/39

  16. Entropy Here is an equivalent definition, from Oprocha(2006). For c a configuration, let T ( c ) be the trace of the configuration, i.e. the sequence (states, symbols) visited by the machine. Let T be the set of all traces Definition (Oprocha (2006)) H ( M ) = H ( T ) = lim 1 n log | T n | where T n are all possible words of length n of the trace Note: The machine in the example has zero entropy (any word of T n has “few” symbols b ) E. Jeandel, Entropy and Speed of Turing machines 13/39

  17. In this talk Theorem Entropy and speed are computable for one-tape Turing machines. That is, there is an algorithm, that given every ✏ , can compute an approximation upto ✏ . Furthermore, the speed is always a rational number Plan of the talk Link between entropy and speed Some technical lemmas Graphs E. Jeandel, Entropy and Speed of Turing machines 14/39

  18. Comments Surprising, usually every dynamical quantity is semi-computable but not computable The speed is not computable as a rational number. Starting from M , we can effectively produce a TM M 0 for which S ( M 0 ) ⇠ 2 � t where t is the number of steps before M halts on empty input. There is no algorithm to decide if the entropy is zero. None of the techniques work with multi-tape TM. The entropy is not computable anymore. E. Jeandel, Entropy and Speed of Turing machines 15/39

  19. Plan Entropy vs Speed 1 Technical lemmas 2 Core of the proof 3 E. Jeandel, Entropy and Speed of Turing machines 16/39

  20. Entropy = Complexity The (average) complexity of a infinite word u is K ( u ) = lim sup K ( u 1 ... n ) n (same with K ( u ) ) Theorem (Brudno 1983, see also Simpson 2013) For a subshift T , h ( T ) = max u 2 T K ( u ) = max u 2 T K ( u ) (More exactly, the maximum is reached µ -a.e, for µ ergodic of maximal entropy) Note: equivalence between the two max also follows by subadditivity: K ( u 1 . . . u n + m )  K ( u 1 . . . u n ) + K ( u n + 1 . . . u n + m ) + O ( 1 ) E. Jeandel, Entropy and Speed of Turing machines 17/39

  21. Consequences H ( M ) = max c 2 C K ( T ( c )) (Similar to the formula for the speed) E. Jeandel, Entropy and Speed of Turing machines 18/39

  22. Consequences T ( c ) 1 ... n can be computed if we know the s n ( c ) symbols read, the initial position of the head, and the initial state. K ( T ( c ) 1 ... n ) = K ( c | S n ( c ) ) + O ( log s n ( c )) + O ( log n ) K ( T ( c ) 1 ... n )  s n ( c ) | log Σ | + O ( log n ) H ( M )  S ( M ) log | Σ | S ( M ) � H ( M ) log | Σ | E. Jeandel, Entropy and Speed of Turing machines 19/39

  23. (Topological) Pressure Let M A be the same as the machine M , but over the alphabet Σ ⇥ A , that ignores the alphabet A . H ( M A ) S ( M ) = lim log | Σ ⇥ A | | A | !1 The speed is the entropy for a very large alphabet relative to its size . If we denote P s ( x ) = H ( M A ) for x = log | A | , P s ( x ) is called the topological pressure of ( s n ) n 2 N . This result has been proven in this context in Feng-Hang,2010. E. Jeandel, Entropy and Speed of Turing machines 20/39

  24. Consequences Proofs for entropy and speed are relatively the same. We will deal with speed in the talk. E. Jeandel, Entropy and Speed of Turing machines 21/39

  25. Plan Entropy vs Speed 1 Technical lemmas 2 Core of the proof 3 E. Jeandel, Entropy and Speed of Turing machines 22/39

  26. The goal s n ( c ) S ( M ) = max c 2 C s ( c ) = inf n sup n c S ( M ) is computable from above due to the last definition. We need to prove it is computable from below. What is the behaviour of a configuration of maximal speed ? E. Jeandel, Entropy and Speed of Turing machines 23/39

  27. Lemma 1 Starting from c (of maximal speed) M will visit each cell finitely many times. If the TM zigzags on input c , then it is losing time. E. Jeandel, Entropy and Speed of Turing machines 24/39

  28. Corollary The maximal speed is obtained for a configuration that never goes back to the cell at 0. The maximal speed is obtained (wlog) for a configuration that visits only cells with nonnegative coordinates. E. Jeandel, Entropy and Speed of Turing machines 25/39

  29. Lemma 2 Let f n ( c ) be the first time we visit cell n , and l n ( c ) the last time we visit cell n : n n S ( M ) = max lim f n ( c ) = max lim l n ( c ) c c 1 / S ( M ) is somehow the “average running time”. E. Jeandel, Entropy and Speed of Turing machines 26/39

  30. Plan Entropy vs Speed 1 Technical lemmas 2 Core of the proof 3 E. Jeandel, Entropy and Speed of Turing machines 27/39

Recommend


More recommend