Sponsored Links

Senin, 08 Januari 2018

Sponsored Links

GrALoG -- Graphs, Algorithms, Logic and Games
src: www.cs.ox.ac.uk

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, resulting in a (possibly infinite) path, called the 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 second-order theory of n successors, 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.


Video Parity game



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.


Maps Parity game



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 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:

A t t r i ( U ) 0 := U A t t r i ( U ) j + 1 := A t t r i ( U ) j ? { v ? V i | ? ( v , w ) ? E : w ? A t t r i ( U ) j } ? { v ? V 1 - i | ? ( v , w ) ? E : w ? A t t r i ( U ) j } A t t r i ( U ) := ? j = 0 ? A t t r i ( U ) j {\displaystyle {\begin{aligned}Attr_{i}(U)^{0}&:=U\\Attr_{i}(U)^{j+1}&:=Attr_{i}(U)^{j}\cup \{v\in V_{i}\mid \exists (v,w)\in E:w\in Attr_{i}(U)^{j}\}\cup \{v\in V_{1-i}\mid \forall (v,w)\in E:w\in Attr_{i}(U)^{j}\}\\Attr_{i}(U)&:=\bigcup _{j=0}^{\infty }Attr_{i}(U)^{j}\end{aligned}}}

In other words, one starts with the initial set U and adds, in every step, all nodes belonging to player 0 that can reach U with a single edge and all nodes belonging to player 1 that must reach U no matter which edge player 1 takes.

Zielonka's algorithm is based on a recursive descent on the number of priorities. If the maximal priority is 0, it is immediate to see that player 0 wins the whole game (with an arbitrary strategy). Otherwise, let p be the largest one and let i = p mod 2 {\displaystyle i=p{\bmod {2}}} be the player associated with the priority. Let U = { v | ? ( v ) = p } {\displaystyle U=\{v\mid \Omega (v)=p\}} be the set of nodes with priority p and let A = A t t r i ( U ) {\displaystyle A=Attr_{i}(U)} be the corresponding attractor of player i. Player i can now ensure that every play that visits A infinitely often is won by player i.

Consider the game G ? = G \ A {\displaystyle G'=G\setminus A} in which all nodes and affected edges of A are removed. We can now solve the smaller game G ? {\displaystyle G'} by recursion and obtain a pair of winning sets W i ? , W 1 - i ? {\displaystyle W'_{i},W'_{1-i}} . If W 1 - i ? {\displaystyle W'_{1-i}} is empty, then so is W 1 - i {\displaystyle W_{1-i}} for the game G, because player 1 - i {\displaystyle 1-i} can only decide to escape from W i {\displaystyle W_{i}} to A which also results in a win for player i.

Otherwise, if W 1 - i ? {\displaystyle W'_{1-i}} is not empty, we only know for sure that player 1 - i {\displaystyle 1-i} can win on W 1 - i ? {\displaystyle W'_{1-i}} as there is no player i escape from W 1 - i ? {\displaystyle W'_{1-i}} to A (because A is an attractor already). We therefore compute to 1 - i {\displaystyle 1-i} attractor B = A t t r 1 - i ( W 1 - i ? ) {\displaystyle B=Attr_{1-i}(W'_{1-i})} of W 1 - i ? {\displaystyle W'_{1-i}} and remove it from G to obtain the smaller game G ? = G \ B {\displaystyle G''=G\setminus B} . We again solve it by recursion and obtain a pair of winning sets W i ? , W 1 - i ? {\displaystyle W''_{i},W''_{1-i}} . It follows that W i = W i ? {\displaystyle W_{i}=W''_{i}} and W 1 - i = W 1 - i ? ? B {\displaystyle W_{1-i}=W''_{1-i}\cup B} .

In simple pseudocode, the algorithm might be expressed as this:

   function                             s          o          l          v          e          (          G          )                    {\displaystyle solve(G)}           p := maximal priority in G       if                             p          =          0                    {\displaystyle p=0}               return                                         W                          0                                ,                      W                          1                                :=          V          ,          {          }                    {\displaystyle W_{0},W_{1}:=V,\{\}}           else           U := nodes in G with priority p                                       i          :=          p                      mod                          2                                          {\displaystyle i:=p{\bmod {2}}}                                           A          :=          A          t          t                      r                          i                                (          U          )                    {\displaystyle A:=Attr_{i}(U)}                                                       W                          0                        ?                    ,                      W                          1                        ?                    :=          s          o          l          v          e          (          G          \          A          )                    {\displaystyle W_{0}',W_{1}':=solve(G\setminus A)}               if                                         W                          i                        ?                    =          V                    {\displaystyle W_{i}'=V}                    return                                         W                          i                                ,                      W                          1              -              i                                :=          V          ,          {          }                    {\displaystyle W_{i},W_{1-i}:=V,\{\}}                                           B          :=          A          t          t                      r                          1              -              i                                (                      W                          1              -              i                        ?                    )                    {\displaystyle B:=Attr_{1-i}(W_{1-i}')}                                                       W                          0                        ?                    ,                      W                          1                        ?                    :=          s          o          l          v          e          (          G          \          B          )                    {\displaystyle W_{0}'',W_{1}'':=solve(G\setminus B)}               return                                         W                          i                                ,                      W                          1              -              i                                :=                      W                          i                        ?                    ,                      W                          1              -              i                        ?                    ?          B                    {\displaystyle W_{i},W_{1-i}:=W_{i}'',W_{1-i}''\cup B}      

Memoization of Parity Games: a practical proposal-Dep.Computer ...
src: www.di.univr.it


Related games and their decision problems

A slight modification of the above game, and the related graph-theoretic problem, makes solving the game NP-hard. The modified game has the Rabin acceptance condition. Specifically, in the above bipartite graph scenario, the problem now is to determine if there is a choice function selecting a single out-going edge from each vertex of V0, such that the resulting subgraph has the property that in each cycle (and hence each strongly connected component) it is the case that there exists an i and a node with color 2i, and no node with color 2i + 1...

Note that as opposed to parity games, this game is no longer symmetric with respect to players 0 and 1.


Uri Zwick Tel Aviv University Simple Stochastic Games Mean Payoff ...
src: images.slideplayer.com


Relation with logic and automata theory

Despite its interesting complexity theoretic status, parity game solving can be seen as the algorithmic backend to problems in automated verification and controller synthesis. The model-checking problem for the modal ?-calculus for instance is known to be equivalent to parity game solving. Also, decision problems like validity or satisfiability for modal logics can be reduced to parity game solving.


Unbelievable!! Developer Forces Parity Between Xbox One X And PS4 ...
src: i.ytimg.com


References

  • Erich Grädel, Phokion G. Kolaitis, Leonid Libkin, Maarten Marx, Joel Spencer, Moshe Y. Vardi, Yde Venema, Scott Weinstein (2007). Finite model theory and its applications. Springer. ISBN 978-3-540-00428-8. CS1 maint: Multiple names: authors list (link)

Uri Zwick Tel Aviv University Simple Stochastic Games Mean Payoff ...
src: images.slideplayer.com


Further reading

  • E. Grädel, W. Thomas, T. Wilke (Eds.) : Automata, Logics, and Infinite Games, Springer LNCS 2500 (2003), ISBN 3-540-00388-6
  • W. Zielonka : Infinite games on finitely coloured graphs with applications to automata on infinite tree, TCS, 200(1-2):135-183, 1998

Xbox boss explains insistence on 'launch parity' for indie games ...
src: cdn.vox-cdn.com


External links

Parity Game Solvers:

  • PGSolver Collection

Source of the article : Wikipedia

Comments
0 Comments