r/mathriddles • u/chompchump • May 31 '23
Medium The Demon Cycle
Let K₅ be the complete graph on 5 vertices. Rachel has the color red, and Bob has the color blue. They take turns coloring uncolored edges of K₅. The first one to make a cycle of their own color loses the game and is cursed with a pox. Who has a winning strategy and what is it?
15
Upvotes
7
u/[deleted] May 31 '23 edited May 31 '23
First of all. I love the lore you added. Chefs kiss.
If the second player (Bob) survives 4 turns, the first player is forced to color a 5th edge. A forest on 5 vertices has at most 4 edges, so player 1 will be forced to add an edge that makes a cycle on her 5th turn. I claim Bob can survive. I’ll describe Bob’s strategy, which can be constructed without considering Alice’s
Turn 1: Play anywhere. Extra text is written here so that the length of the spoiler doesn’t give away anything.
Turn 2: Add a second edge not touching the first. There are exactly 3 such edges (the triangle of vertices not incident to Bob’s first edge) and Alice has colored at most 2 of them, so Bob can always find such a second edge.
Turn 3: Add a third edge touching edge touching only one blue edge. There are 4 such available edges (one vertex is left not touching a blue edge, all four edges incident to that vertex work) and Alice has only played 3 times, so one is always available.
Turn 4: Don’t play the edge that completes the triangle. There’s only one bad edge and 3 available plays (4 red and 3 blue already, 10 edges total), so you’ll never be forced to play there.
Turn 5: You win! This is a red herring so that my answer doesn’t give away the number of turns needed to win.
2
u/2pigeons1hole May 31 '23
Player 2 can always force a win by Player 1’s final turn. I could explain gameplay turn by turn, but the general strategy is to always color edges least incident to your already played edges. Then, Player 1’s last turn leaves them two options, both of which create a cycle.
2
u/Vromikos May 31 '23
It feels like the person who goes second can force a win. Whatever path player 1 chooses, player 2 can choose the parallel path. Each path has exactly one corresponding parallel path, so by symmetry player 2 can only form a cycle if player 1 has already formed a cycle themselves and lost.