The Game of Attrition works by players successively subtracting their own remaining number of points from their opponents points until one player is left with a nonpositive point total. Assume player A has N points to begin the game and always goes first against his opponent B.
What is the largest point total that B can start with such that A will still win?
Let's say that B has initial points of P>N, since obviously if P≤N, then A will win in the first move. After one round of both A and B's moves, A will have 2N−P points remaining and B will have P−N, both of which are binomials in terms of N and P.
Let An and Bn be the point total for A and B, respectively after n full turns. One full turn of gameplay gives the following recurrence:
An+1=2An−BnBn+1=Bn−AnA0=N,B0=PIf we assume, as after the first turn, that both An and Bn are binomials in terms of N and P, say An=anN+bnP and Bn=cnN+dnP, then the above recurrence becomes an+1=2an−cnbn+1=2bn−dncn+1=cn−andn+1=dn−bna0=d0=1,b0=c0=0 We note that player A will win after n steps if Bn≤0, or equivalently, if P≤−cndnN. The largest possible point total that B can start with such that A will still win is thus sup{−cndnN:n∈N}.
Letting xn=(an,bn,cn,dn)T, and M=(20−10020−1−10100−101), we can express the reccurence more compactly in matrix notation as: xn=Mxn−1=⋯=Mnx0, where x0=(1,0,0,1)T. The matrix M has eigenvalues λ±=3±√52, each of order 2, associated with eigenvectors u±=√25∓√5(101∓√520)andv±=√25∓√5(0101∓√52). So let's define L=(10100101−√5−120√5+1200−√5−120√5+12), D=(5−√5200005−√5200005+√5200005+√52)=LTL and Λ=(3+√5200003+√5200003−√5200003−√52). Then the eigendecomposition of M can be given by M=QΛQT, where Q=LD−1/2. In particular, for any integer n≥1, Mn=QΛnQT=(LD−1/2)Λn(LD−1/2)T=LD−1ΛnLT.
For any integer n≥1, D−1ΛnLTx0=(25−√5(3+√52)n−√55(3+√52)n25+√5(3−√52)n√55(3−√52)n). So the recurrence relationship can be written as xn=Mnx0=LD−1ΛnLTx0, which is given by xn=Mnx0=(10100101−√5−120√5+1200−√5−120√5+12)(25−√5(3+√52)n−√55(3+√52)n25+√5(3−√52)n√55(3−√52)n)=(25−√5(3+√52)n+25+√5(3−√52)n−√55(3+√52)n+√55(3−√52)n−√55(3+√52)n+√55(3−√52)n√5(√5−1)10(3+√52)n+√5(√5+1)10(3−√52)n). Therefore, we have −cndnN=√55(3+√52)n−√55(3−√52)n√5(√5−1)10(3+√52)n+√5(√5+1)10(3−√52)nN, which is a monotonically increasing sequence with limn→∞−cndnN=sup{−cndnN:n∈N}=√5+12N. That is, if P≤√5+12N, then A will still win, or more specifically, the function P(N)=⌊√5+12N⌋ gives the maximal value that B can start with but lose to A, who starts with N and goes first.
No comments:
Post a Comment