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/32 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/32

  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/32

  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/32

  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/32

  5. 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 E. Jeandel, Entropy and Speed of Turing machines 5/32

  6. 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 6/32

  7. 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 7/32

  8. 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 8/32

  9. 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 9/32

  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 ) If c contains only a ’s, 0 n n n s ( c ) = 1. t E. Jeandel, Entropy and Speed of Turing machines 9/32

  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 b ’s, 0 n n ( 2 n − 1 ) s ( c ) = 0. t E. Jeandel, Entropy and Speed of Turing machines 9/32

  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 ) 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 9/32

  13. The speed Definition s n ( c ) s n ( c ) S ( M ) = max c ∈C s ( c ) = max c ∈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 10/32

  14. 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 11/32

  15. 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 12/32

  16. 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 ′ for which S ( M ′ ) ∼ 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 13/32

  17. Plan Entropy vs Speed 1 Main idea 2 Core of the proof 3 E. Jeandel, Entropy and Speed of Turing machines 14/32

  18. Entropy = Complexity Kolmogorov complexity K ( x ) of a word x is the size of the smallest program that outputs x 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 ∈T K ( u ) = max u ∈T K ( u ) (More exactly, the maximum is reached µ -a.e, for µ ergodic of maximal entropy) E. Jeandel, Entropy and Speed of Turing machines 15/32

  19. 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 16/32

  20. Plan Entropy vs Speed 1 Main idea 2 Core of the proof 3 E. Jeandel, Entropy and Speed of Turing machines 17/32

  21. The goal s n ( c ) S ( M ) = max c ∈C s ( c ) = inf n sup n c S ( M ) (and H ( M ) ) is computable from above due to the last definition. We need to prove it is computable from below. We need lower bounds on the speed and the entropy. E. Jeandel, Entropy and Speed of Turing machines 18/32

  22. Main idea T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . E. Jeandel, Entropy and Speed of Turing machines 19/32

  23. Main idea 0 1 2 1 2 3 2 1 2 3 T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . E. Jeandel, Entropy and Speed of Turing machines 19/32

  24. Main idea 0 1 2 1 2 3 2 1 2 3 T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , ◦ )( q 3 , ◦ )( q 1 , c )( q 3 , ◦ )( q 1 , ◦ )( q 2 , ◦ )( q 3 , ◦ ) . . . Deleted information can be recovered (no loss in Kolmogorov complexity) E. Jeandel, Entropy and Speed of Turing machines 19/32

  25. Main idea 0 1 2 1 2 3 2 1 2 3 T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , ◦ )( q 3 , ◦ )( q 1 , c )( q 3 , ◦ )( q 1 , ◦ )( q 2 , ◦ )( q 3 , ◦ ) . . . 0 → 1 1 → 2 2 → 1 1 → 2 2 → 3 3 → 2 2 → 1 1 → 2 2 → 3 3 → 4 . . . E. Jeandel, Entropy and Speed of Turing machines 19/32

  26. Main idea 0 1 2 1 2 3 2 1 2 3 T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , ◦ )( q 3 , ◦ )( q 1 , c )( q 3 , ◦ )( q 1 , ◦ )( q 2 , ◦ )( q 3 , ◦ ) . . . 0 → 1 1 → 2 2 → 1 1 → 2 2 → 3 3 → 2 2 → 1 1 → 2 2 → 3 3 → 4 . . . T ′ ( c ) = aq 1 bq 2 q 1 q 2 q 3 q 1 cq 3 q 1 q 2 cq 3 E. Jeandel, Entropy and Speed of Turing machines 19/32

  27. Main idea 0 1 2 1 2 3 2 1 2 3 T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , a )( q 3 , a )( q 1 , c )( q 3 , c )( q 1 , a )( q 2 , c )( q 3 , b ) . . . T ( c )=( q 1 , a )( q 2 , b )( q 1 , c )( q 1 , ◦ )( q 3 , ◦ )( q 1 , c )( q 3 , ◦ )( q 1 , ◦ )( q 2 , ◦ )( q 3 , ◦ ) . . . 0 → 1 1 → 2 2 → 1 1 → 2 2 → 3 3 → 2 2 → 1 1 → 2 2 → 3 3 → 4 . . . T ′ ( c ) = aq 1 bq 2 q 1 q 2 q 3 q 1 cq 3 q 1 q 2 cq 3 T ′ ( c ) = aq 1 bq 2 q 1 q 2 q 3 q 1 cq 3 q 1 q 2 cq 3 In the rest of the talk, states will be colored E. Jeandel, Entropy and Speed of Turing machines 19/32

  28. Main idea T ′ ( c ) is well defined when c matters. The speed on c is the average number of boxed symbols. The complexity of c is the average of the complexity of T ′ ( c ) . The speed and the complexity are easier to compute using T ′ . E. Jeandel, Entropy and Speed of Turing machines 20/32

  29. Lemma 1 If c is of maximum speed/entropy, then M will visit each cell finitely many times. If the TM zigzags on input c , then it is losing time. Corollary T ′ ( c ) is well defined. E. Jeandel, Entropy and Speed of Turing machines 21/32

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend