twoplusthree's blog

By twoplusthree, history, 14 months ago, In English

One of my friends VS-Codes recently introduced me to an Alice-Bob game problem (Newton School CodeRush September '23 — Problem C) which goes as follows —

The Problem

The solution to this is a pretty straightforward result which I arrived at after making a few lucky guesses as to how the game would proceed.

The Solution

However, the real challenge was to prove that this solution works. After many trials and revisions, I came up with a proof that looked reasonably complete. Would love to hear the community's suggestions on it, and if I could have made it shorter somehow (I tried my best).

Proof
Less mathy (proof?)
  • Vote: I like it
  • +46
  • Vote: I do not like it

»
14 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by twoplusthree (previous revision, new revision, compare).

»
13 months ago, # |
  Vote: I like it +11 Vote: I do not like it

Thanks for sharing this nice problem!

At first glance, your proof looks good. Though I didn't look closely on all cases because there are so many of them...

Here is my attempt to write a shorter proof. It basically uses the same winning strategy, but it doesn't need the Alice / Bob casework:

Proof
  • »
    »
    13 months ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    ...and the only terminal $$$1$$$-good state is the sink state itself ($$$[m - 1, 2]$$$ does not arise because of the earlier proof), along with the fact that every game ends in a finite number of moves, implies that every game ends in the sink state, right?

    Wow. Thank you so much, this was brilliant.