ebook img

Crushing candies on the line PDF

0.07 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Crushing candies on the line

Crushing candies on the line January 15, 2015 5 1 0 2 1 The candy crush game n a J In this paper we investigate stability properties of a probabilistic cellular 4 automaton. The model is based on the candy crush game (see e.g. [1],[2]). 1 The idea of the game is that each point (these are the candies) in a rect- ] angular grid has a certain color. All candies making a horizontal or vertical R monochromaticchaindisappearsimultaneouslyandcandiesfallfromthetop P to fill in the gaps. If the resulting configuration again contains such chains, . h a sequence of reactions occurs and the player is awarded bonus points. This t a game inspired us to study a somewhat simplified model, where one of the m main questions is under what conditions infinite sequences of reactions can [ occur. 1 v 1 2 Model based on the game 5 3 Our model is defined on Zd with the Euclidean metric. The points in Zd 3 0 are called sites. We choose n different colors and define the color set C = 1. {c1,...,cn}. Furthermore, we choose a stability constant κ ∈ N,κ ≥ 2. A 0 coloring or configuration is a map η : Zd → C. Given the coloring, we will 5 define the notion of stability. Sites x ,...,x ∈ Zd satisfying 1 1 m : v x −x = x −x , ||x −x || = 1 and η(x ) = η(x ) i i i−1 2 1 i i−1 i 1 X r for i= 2,...,m are said to make a monochromatic chain of length m. Sites a that are in a monochromatic chain of length greater than or equal to κ are called unstable. All other sites are stable. Given a configuration η we define a stability function σ :Zd → {0,1} by η σ (x) = . η {xisstableinη} 1 A coloring η is stable if and only if σ (x) = 1 for all x ∈ Zd. A stable η configuration in which the color of each site only depends on the parity of the sum of its coordinates will be referred to as a chessboard coloring. The set of all configurations will be denoted by Λ. 1 Inourmodel,thedynamicsaresimplerthanin thegame. We willuseatime variable t, taking values in N. The configuration at time t will be denoted by η , so η is the initial configuration. All sites that are unstable at time t t 0 (that is, sites x for which σ (x) = 0) will be recolored simultaneously and ηt independentlyaccordingtosomeprobabilitydistributionponC toconstruct η . For η ∈ Λ, we will denote the random configuration that results from t+1 recoloring the unstable sites by R(η), so η = R(η). t+1 3 The one-dimensional case with two colors Let d = 1 and κ = 3. Furthermore, let the color set be coded by C = {0,1} and choose equal recoloring probabilities, so p = (1,1). Then we have the 2 2 following result: Theorem 1 Choose an unstable initial configuration η . Suppose there ex- 0 ists M ∈ N such that σ (x) = 1 for all |x| ≥ M. Then η0 P (∃t : η is stable for all t ≥ t ) = 1. p 0 t 0 Proof. First define the number of unstable sites at time t: I = |{x :σ (x) = 0}|, t ≥ 0. t ηt NotethatI isboundedby2M+4t+1forallt.Wewillshowthatlim I = t t→∞ t 0 a.s. We define an upper bounds for the probability that an unstable site is instable again after k time steps as follows: pIk = supη∈ΛP(σRk(η)(x) = 0 |ση(x) = 0), pIkII = supη∈ΛP(σRk(η)(x) = 0 |ση(x−1) = ση(x) = ση(x+1) = 0). By translation invariance, these upperbounddonotdependon x.Note that pIII ≤ pI. In a similar way we define upper bounds for the probability that k k a stable site is instable after k recolorings of the configuration. Since this probability highly depends on the distance to instable regions, we condition here on stability of a neighborhood of x: m m+1 pSk(n,m)= supP(σRk(η)(x) = 0| ση(x+i)= 1, ση(x+i) = n+m+1), η∈Λ i=−n i=−n−1 Y X where n,m are non-negative and allowed to take the value ∞. First we remark that these probabilities are symmetric: pS(n,m) = pS(m,n). Since k k a stable site can not get instable if a large enough neighborhood is stable, the probabilities pS(n,m) satisfy the following property: k pS(n,m) = 0 if n,m ≥ 2k. (1) k 2 Furthermore, if there are at least 2k stable sites at one side, pS(n,m) does k not depend on the exact number of them: pS(n ,m) = pS(n ,m)= pS(∞,m) if n ,n ≥ 2k, k 1 k 2 k 1 2 (2) pS(n,m ) = pS(n,m )= pS(n,∞) if m ,m ≥ 2k. k 1 k 2 k 1 2 Let η ∈ Λ. A set {x,x+1,...,x+g} is called a bounded stable region of size g if σ (x) = ... = σ (x+g) = 1 and σ (x−1) = σ (x+g +1) = 0. η η η η Suppose G is a bounded stable region of size g, then the expected number of sites in G that get instable in k steps is bounded from above by g pS(i−1,g−i). (3) k i=1 X This sum is the same for all g > 4k, since in that case g 2k g pS(i−1,g−i) = pS(i−1,∞)+ pS(∞,g−i) k k k i=1 i=1 i=g−2k+1 X X X 2k 4k = pS(i−1,4k−i)+ pS(i−1,4k−i) k k i=1 i=2k+1 X X 4k = pS(i−1,4k−i), k i=1 X by the properties (1) and (2). If η is such that σ (x) = 1 and σ (y) = η η 0 for all y < x, then the set {y ∈ Z :y < x} is called a left-unbounded stable region. A right-unbounded stable region is defined similarly. For an unbounded stable region, the expected number of sites that gets instable is at most ∞ 2k 4k pS(i−1,∞) = pS(i−1,∞) = pS(4k−i,∞). k k k i=1 i=1 i=2k+1 X X X where we used (1) for the second equality. Exploiting (2), we arrive at ∞ 2k 4k 1 1 pS(i−1,∞) = pS(i−1,4k−i)+ pS(4k−i,i−1), k 2 k 2 k i=1 i=1 i=2k+1 X X X 4k 1 = pS(i−1,4k−i). 2 k i=1 X Since an instable region consists of at least 3 sites, at least a third of the unstable sites has two unstable neighbors. For the same reason, the number 3 of bounded stable regions in η is at most I /3−1. Furthermore, since I is t t t finite, there are two unbounded stable regions in η . Therefore t g 4k 1 2 I E[I |I ] ≤ pIIII + pII +( t −1) max pS(i−1,g−i)+ pS(i−1,4k−i) t+k t 3 k t 3 k t 3 1≤g≤4k k k i=1 i=1 g X X 1 2 1 ≤ pIII + pI + max pS(i−1,g−i) I . 3 k 3 k 31≤g≤4k k ! t i=1 X (4) Our next goal is to show that there exists k for which the constant in front of I is smaller than 1. In order to do this, we compute pI and pS(n,m) for t k k 0 ≤ n,m < 2k for some values of k. First we take k = 1. Let η ∈ Λ. Then P(σR1(η)(0) = 0) only depends on η(x) and σ (x) for −2 ≤ x ≤ 2. So to find the probabilities pI and pS(n,m), we η k k can justcheck all possibilities. In the table below we listed them for the case σ (0) = 0, without loss of generality assuming that η(0) = 0 and omitting η (symmetrically) equivalent cases: (η(x))xx==−22 (ση(x))xx==−22 P(σR1(η)(0) = 0) 00000 00000 1/2 00001 00001 1/2 00010 00010 1/2 00010 00011 3/8 00011 00011 5/8 10001 10001 1/2 It follows that pI = 5/8 and pIII = 1/2. As a second example, we compute 1 1 pS1(1,2). So here we maximize P(σR1(η)(0) = 0) over configurations η for which σ (−2) = 0 and σ (x) = 1 if −1 ≤ x ≤ 2. Again we assume that η η η(0) = 0. Then the following cases are possible: (η(x))xx==−22 P(σR1(η)(0) = 0) 01001 0 01010 0 01011 0 10010 1/2 10011 1/2 Therefore, pS(1,2) = 1/2. For other values of n and m a similar calculation 1 leads to the following values of pS(n,m): 1 m = 0 m =1 m = 2 n= 0 1/2 3/4 1/2 n= 1 3/4 1/2 1/2 n= 2 1/2 1/2 0 4 Using (2) the maximal value of the sum in (4) turns out to be equal to 2 (for g = 4), whence 1 1 2 5 1 5 E[I |I ] ≤ · + · + ·2 I = I . t+1 t t t 3 2 3 8 3 4 (cid:18) (cid:19) For other values of k, we can proceed analogously. The key observation is that P(σRk(η)(0) = 0) is completely determined by η(x) and ση(x) for −2k ≤ x ≤ 2k. For k = 4, we find the desired inequality E[I |I ] ≤ cI t+k t t with c< 1. Below is a summary of the computational results. E[I |I ] ≤ 1 · 29 + 2 · 61 + 1 · 19 I = 121I , t+2 t 3 64 3 128 3 8 t 96 t E[I |I ] ≤ 1 · 5037 + 2 · 2687 + 1 · 2495 I = 55705I , t+3 t (cid:0)3 16384 3 8192 3(cid:1)1024 t 49152 t E[I |I ] ≤ 1 · 15371121 + 2 · 518955 + 1 · 2371247 I = 200344049I . t+4 t (cid:0)3 67108864 3 2097152 3(cid:1)1048576 t 201326592 t (cid:0) (cid:1) The values of pS(n,m) can be written as fractions. Their numerators are 4 given in the table below. Entries in the same column have the same denom- inator, which is written in the second line of the table. All denominators are powers of 2. For example pS(5,6) = pS(6,5) = 358 (= 179 ). 4 4 2048 1024 n=0 n=1 n=2 n=3 n=4 n=5 n=6 n=7 n=8 denom. 536870912 67108864 67108864 4194304 131072 2048 512 16 1 (=229) (=226) (=226) (=222) (=217) (=211) (=29) (=24) (=20) m=0 109921252 m=1 125921345 14557783 m=2 116330096 17164756 15205719 m=3 131398816 15993296 18114414 926907 m=4 118712000 17449960 14234240 1036746 21623 m=5 128603456 15641520 16272448 860952 27214 307 m=6 112440704 16537568 12895872 948720 17728 358 47 m=7 119681024 14745472 14295552 773184 21120 256 62 1 m=8 105200384 14745472 11496192 773184 14336 256 32 1 0 Now we have the inequality 200344049 E[I |I ] ≤ cI , with c= < 1. t+4 t t 201326592 Taking expectations, E[I ]= E[E[I |I ]] ≤cE[I ]. t+4 t+4 t t Therefore, for all t ∈N, we obtain E[I ] ≤ ctE[I ] ≤ct(2M +1). 4t 0 5 Since I is positive integer-valued and the events {I ≥ 1} are decreasing, 4t 4t we get ∞ ∞ P(∃t :I = 0) = P {I = 0} = 1−P {I ≥ 1} 4t 4t 4t ! ! t=0 t=0 [ \ = 1− lim P({I ≥ 1})≥ 1− lim E[I ] 4t 4t t→∞ t→∞ ≥ 1− lim ct(2M +1) = 1, t→∞ where we used Markov’s inequality. If I = 0, then η is stable for all 4t0 t t ≥ 4t . Therefore 0 P(∃t : η is stable for all t ≥ t ) = 1. 0 t 0 (cid:3) References [1] http://www.games.com/play/king/candy-crush [2] http://en.wikipedia.org/wiki/Candy Crush Saga 6

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.