five lectures on ca 3 synchronization
play

Five Lectures on CA 3. Synchronization Thomas Worsch Department of - PowerPoint PPT Presentation

Five Lectures on CA 3. Synchronization Thomas Worsch Department of Informatics Karlsruhe Institute of Technology http://liinwww.ira.uka.de/~thw/vl-hiroshima/ at Hiroshima University, January 2012 Outline Classical Firing Squad


  1. Five Lectures on CA 3. Synchronization Thomas Worsch Department of Informatics Karlsruhe Institute of Technology http://liinwww.ira.uka.de/~thw/vl-hiroshima/ at Hiroshima University, January 2012

  2. Outline Classical Firing Squad Synchronization Problem General at an arbitrary position Two-dimensional FSSP Outlook

  3. Classical Firing Squad Synchronization Problem General at an arbitrary position Two-dimensional FSSP Outlook

  4. FSSP (Firing Squad Synchronisation Problem) ◮ Fixed: R = Z , N = {− 1 , 0 , 1 } , and Q ′ = { # , g , s , f } ◮ # is the border state ◮ g is the general state ◮ s is the soldier state ◮ f is the firing state ◮ Wanted: CA with Q ⊇ Q ′ and some f , such that ◮ for all local configurations ℓ : if ℓ (0) = # then f ( ℓ ) = # ◮ for all local configurations ℓ : if ∀ n ∈ N : ℓ ( n ) ∈ { # , s } then f ( ℓ ) = ℓ (0) ◮ C transforms each global start configuration #gss · · · s# in a finite number of steps into the firing configuration #fff · · · f# having the same support ◮ such that in no configuration occuring before the firing configuration state f appears anywhere.

  5. FSSP (2) please note: ◮ activities can only start at the general g and spread throughout the grid cell by cell ◮ no matter how large the support of the initial configuration is, it should always be the same Q and the same f ◮ the CA should work for arbitrarily large numbers of s cells How could one try to achieve that?

  6. Algorithm (Balzer)

  7. Algorithm (Balzer) ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> < ) ( 2> < ) ( 3> < ) ( 1> < ) ( 2> < ) ( < <1 ) ( 1> > )

  8. Algorithm (Balzer) ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> < ) ( 2> < ) ( 3> < ) ( 1> < ) ( 2> < ) ( < <1 ) ( 1> > ) ( < <2 ) ( 2> > ) ( < <3 ) ( 3> > ) ( < <1 ) ( 1> > ) ( > <2 ) ( 2> < ) ( > <3 ) ( 3> < ) ( <<1)(1>> ) ( <<1)(1>> )

  9. Algorithm (Balzer) ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> > ( 2> > ( 3> > ( 1> < ) ( 2> < ) ( 3> < ) ( 1> < ) ( 2> < ) ( < <1 ) ( 1> > ) ( < <2 ) ( 2> > ) ( < <3 ) ( 3> > ) ( < <1 ) ( 1> > ) ( > <2 ) ( 2> < ) ( > <3 ) ( 3> < ) ( <<1)(1>> ) ( <<1)(1>> ) ( < <2)(2> > ) ( < <2)(2> > ) ( > <3)(3> < ) ( > <3)(3> < ) ( <<1)(1>> )( <<1)(1>> ) ( <<1)(1>> )( <<1)(1>> )

  10. Algorithm (Balzer) ( 1> > s s s s s s s s s ( 2> > s s s s s s s s ( 3> > s s s s s s s ( 1> > s s s s s s ( 2> > s s s s s ( 3> > s s s s ( 1> > s s s ( 2> > s s ( 3> > s ( 1> < ) ( 2> < ) ( 3> < ) ( 1> < ) ( 2> < ) ( < <1 ) ( 1> > ) ( < <2 ) ( 2> > ) ( < <3 ) ( 3> > ) ( < <1 ) ( 1> > ) ( > <2 ) ( 2> < ) ( > <3 ) ( 3> < ) ( <<1)(1>> ) ( <<1)(1>> ) ( < <2)(2> > ) ( < <2)(2> > ) ( > <3)(3> < ) ( > <3)(3> < ) ( <<1)(1>> )( <<1)(1>> ) ( <<1)(1>> )( <<1)(1>> ) f f f f f f f f f f

  11. Running time (of Balzer’s algorithm) for the synchronisation of n cells approximately t ( n ) ≈ 3 2 n + t ( n 2) which results in t ( n ) ≈ 3 n + lower order terms Is that optimal? Or can you do faster?

  12. Theorem ◮ Goto (1962): There is a CA solving the FSSP for all n ≥ 2 in time 2 n − 2. ◮ Mazoyer (1987): There is such a CA which only uses 7 states. (i.e. only 3 more besides # , g , s , f ) we will see fast algorithms later Theorem Waksman (1966): There is no CA which solves the FSSP for all n and needs only 2 n − 3 steps for one n ≥ 2.

  13. Proof of Waksman’s theorem indirect proof ◮ given: a CA C solving the FSSP ◮ assumption: There is a k for which the C needs at most 2 k − 3 steps. ◮ will show: C does not solve the FSSP for all n

  14. � ✞ ✝ ✝ ✝ ✞ ✞ ✞ ✞ ✞ ✞ ✝ ✟ � ✁ ✁ � ✁ ✄ ✁ ✁ ✝ ✝ ✝ ✂ ✄ ☎ ✆ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✂ ☎✡✠ ☎✡✠ ☎☛✠ ☎☛✠

  15. � ✞ ✝ ✝ ✝ ✞ ✞ ✞ ✞ ✞ ✞ ✝ ✟ � ✁ ✁ � ✁ ✄ ✁ ✁ ✝ ✝ ✝ ✂ ✄ ☎ ✆ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✂ ☎✡✠ ☎✡✠ ☎☛✠ ☎☛✠

  16. � ✁ ✂ ✄ ☎ � ✁ ✂ ✄ ☎ ✁ ☎ ✟ � ✆ ✝ ✝ ✝ ✝ ✝ ✝ ✠ ✆ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ � ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✁ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ☎ ✟ ✁ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ☎ ✟ � ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✝ ✁ ☎ ✟ ✄ ✝ ✝ ✞ ✞ ✞ ✞ ✞ ✞ ✞ ✁ ☎ ✟ ✂ ✞ ✝

  17. 2 k − 1 1 2 3 4 k 1 2 3 4 k g g s s s s s s 0 s s s s s s s s s s s s s s s s s 1 s s s s s s s s s s s s s s s s s s s s s s s s s 2 s s s s s s s s s s s s s s s s s s s s s s k − 2 s s s s s s s s k − 1 s s s s s s s s s s s s s s s s s s 2 k − 4 s s 2 k − 3 s f f f f f f f f Wrong!

  18. Algorithm (Gerken)

  19. Algorithm (Gerken)

  20. Algorithm (Gerken)

  21. Algorithm (Gerken)

  22. Algorithm (Gerken)

  23. Algorithm (Gerken)

  24. Algorithm (Gerken)

  25. Algorithm (Gerken)

  26. Algorithm (Gerken)

  27. Algorithm (Gerken)

  28. Algorithm (Mazoyer) 7 states are sufficient for that!

  29. Algorithm (infinitely many signals with different speeds) > <> 1 <> 1 <0 <> 1 0 < <> 1 1 < <> 1 1 <0 < <> 1 <0 0 < < <> 1 0 1 < < <> 1 0 1 <0 < < <> 1 0 < 0 < < < <> 1 1 1 < < < <> 1 1 1 <0 < < < 1 1 < 0 < < < < 1 1 <0 1 < < < 1 <0 0 1 <0 < < < 1 0 0 < 0 < < < 1 0 0 < 1 < < < 1 0 1 1 <0 < < 1 0 1 < 0 < < < 1 0 1 < 1 < < 1 0 1 <0 1 <0 < < 1 0 < 0 < 0 < < 1 1 0 < 1 < < 1 1 0 < 1 <0 < 1 1 1 < 0 < < 1 1 1 < 1 < 1 1 1 < 1 <0 < 1 1 1 <0 < 0 < 1 1 < 0 < 1 < 1 1 <0 0 < 1 <0 1 <0 0 0 < < 0 < 1 0 0 1 < 1 1 0 0 1 < 1 <0 1 0 0 1 < < 0 1 0 0 1 <0 < 1

  30. Classical Firing Squad Synchronization Problem General at an arbitrary position Two-dimensional FSSP Outlook

  31. Problem ◮ Fixed: R = Z , N = {− 1 , 0 , 1 } , and Q ′ = { # , g , s , f } ◮ Wanted: CA with Q ⊇ Q ′ and some f , such that ◮ for all local configurations ℓ : if ℓ (0) = # then f ( ℓ ) = # ◮ for all local configurations ℓ : if ∀ n ∈ N : ℓ ( n ) ∈ { # , s } then f ( ℓ ) = ℓ (0) ◮ C transforms each global start configuration #ss · · · sgs · · · s# in a finite number of steps into the firing configuration #fff · · · f# having the same support ◮ such that in no configuration occuring before the firing configuration state f appears anywhere.

  32. Theorem Each configuration to be fired has the form #s a gs b # for some a , b ∈ N 0 . Let k = min { a , b } and n = a + 1 + b . ◮ The FSSP with a General at an arbitrary position can be solved in 2 n − 2 − k = a + b + max { a , b } steps. ◮ For n ≥ 2 this time is optimum.

  33. Proof ◮ upper bound: algorithm; see later ◮ lower bound: analogously to the proof by Waksman: Each end must “know”, how far the other end is away. Therefore time 2( n − k ) − 2 in general is not enough.

  34. � ✁ � ✂ � ✄ Algorithm

  35. Classical Firing Squad Synchronization Problem General at an arbitrary position Two-dimensional FSSP Outlook

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