ArticleslgStudy

computer science

Parity game

Parity game is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Parity game rather than just read about it. In short: A parity game is played on a colored directed graph, where each node has been colored by a priority – one of (usually) finitely many natural numbers. Two players, 0 and 1, move a (single, shared) token along the edges of the graph.

Parity game — main illustration
Parity game — illustration

Key takeaways

  • Parity game belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Parity game to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Parity game from memory before moving on to harder problems.

Reference excerpt

A parity game is played on a colored directed graph, where each node has been colored by a priority – one of (usually) finitely many natural numbers. Two players, 0 and 1, move a (single, shared) token along the edges of the graph. The owner of the node that the token falls on selects the successor node (does the next move). The players keep moving the token, resulting in a (possibly infinite) path, called a play. The winner of a finite play is the player whose opponent is unable to move. The winner of an infinite play is determined by the priorities appearing in the play. Typically, player 0 wins an infinite play if the largest priority that occurs infinitely often in the play is even. Player 1 wins otherwise. This explains the word "parity" in the title. Parity games lie in the third level of the Borel hierarchy, and are consequently determined. Games related to parity games were implicitly used in Rabin's proof of decidability of the monadic second-order theory of n successors (S2S for n = 2), where determinacy of such games was proven. The Knaster–Tarski theorem leads to a relatively simple proof of determinacy of parity games. Moreover, parity games are history-free determined. This means that if a player has a winning strategy then that player has a winning strategy that depends only on the current board position, and not on the history of the play.

Solving a game

Solving a parity game played on a finite graph means deciding, for a given starting position, which of the two players has a winning strategy. It has been shown that this problem is in NP and co-NP, more precisely UP and co-UP, as well as in QP (quasipolynomial time). It remains an open question whether this decision problem is solvable in PTime. Given that parity games are history-free determined, solving a given parity game is equivalent to solving the following simple looking graph-theoretic problem. Given a finite colored directed bipartite graph with n vertices V = V 0 ∪ V 1 {\displaystyle V=V_{0}\cup V_{1}} , and V colored with colors from 1 to m, is there a choice function selecting a single out-going edge from each vertex of V 0 {\displaystyle V_{0}} , such that the resulting subgraph has the property that in each cycle the largest occurring color is even.

Recursive algorithm for solving parity games Zielonka outlined a recursive algorithm that solves parity games. Let G = ( V , V 0 , V 1 , E , Ω ) {\displaystyle G=(V,V_{0},V_{1},E,\Omega )} be a parity game, where V 0 {\displaystyle V_{0}} resp. V 1 {\displaystyle V_{1}} are the sets of nodes belonging to player 0 resp. 1, V = V 0 ∪ V 1 {\displaystyle V=V_{0}\cup V_{1}} is the set of all nodes, E ⊆ V × V {\displaystyle E\subseteq V\times V} is the total set of edges, and Ω : V → N {\displaystyle \Omega :V\rightarrow \mathbb {N} } is the priority assignment function. Zielonka's algorithm is based on the notation of attractors. Let U ⊆ V {\displaystyle U\subseteq V} be a set of nodes and i = 0 , 1 {\displaystyle i=0,1} be a player. The i-attractor of U is the least set of nodes A t t r i ( U ) {\displaystyle Attr_{i}(U)} containing U such that i can force a visit to U from every node in A t t r i ( U ) {\displaystyle Attr_{i}(U)} . It can be defined by a fix-point computation:

… excerpt ends here. Continue reading the full article.

Illustrations

Parity game: A parity game. Circular nodes belong to player 0, rectangular nodes belong to player 1. On the left side is the winning region of player 0, on the right side is the winning region of player 1.
A parity game. Circular nodes belong to player 0, rectangular nodes belong to player 1. On the left side is the winning region of player 0, on the right side is the winning region of player 1.
Parity game: Most common applications of parity game solving.
Most common applications of parity game solving.

Worked examples

Example 1 — a first encounter with Parity game

Start with the simplest possible case. Write down what Parity game claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Parity game before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Parity game ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Parity game

In research
Parity game appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Parity game in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Parity game is common in secondary-school and first-year university syllabi. It links to neighbouring topics Finite model theory, Game theory game classes, Quasi-polynomial time algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Parity game outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Parity game” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Parity game in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Parity game means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Parity game out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Parity game in simple terms?

A parity game is played on a colored directed graph, where each node has been colored by a priority – one of (usually) finitely many natural numbers. Two players, 0 and 1, move a (single, shared) token along the edges of the graph.

Why does Parity game matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Parity game?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Parity game.

Tags

  • Finite model theory
  • Game theory game classes
  • Quasi-polynomial time algorithms

Keep exploring