← Student tools · Problem 38 · Lecture 14 · Round 3 (40 pts)

Generalized Geography · play against the computer

Two players move a token along a directed graph. No vertex repeats. Last mover wins.

CLO-4R3·40 ptsL14
🔊 Listen

Generalised Geography (GG) abstracts the children's word game "Geography" (each next word starts with the previous word's last letter) into a graph game:

Rules

Given a directed graph G and starting vertex s. A token is placed at s. Players alternate turns. On your turn, you move the token to an unvisited successor of its current position. If you can't move (the token's successors are all already visited), you lose.

The decision problem

GG = {⟨G, s⟩ : Player 1 has a winning strategy on G starting at s}.

PSPACE-complete (Sipser Theorem 8.11)

In PSPACE: recursive minimax evaluation uses O(n) stack depth and stores only the current path's visited set. PSPACE-hard: TQBF reduces to GG via gadget construction (Problem 39).

The "no vertex repeats" rule is what makes the game terminate. Without it, players could move in cycles forever, and the question "does player 1 win?" would have no well-defined answer.

🔊 Listen
Watch optimal play from a fixed graph Auto-plays
🔊 Listen
🔊 Listen
🔊 Listen

Sipser: §8.3, Theorem 8.11. Lecture notes: Module 6 slide 3. Companion problems: P36 (TQBF), P39 (TQBF → geography), P40 (chess hardness).