Computer Science > Data Structures and Algorithms
[Submitted on 30 Oct 2016 (this version), latest version 13 Feb 2022 (v9)]
Title:Linear-Time Algorithm for Update Games via Trap-Alternating-Strongly-Connected Components
View PDFAbstract:An arena is a finite directed graph whose vertices are divided into two classes, $V_{\square}$ and $V_{\ocircle}$; this forms the basic playground for a plethora of 2-players pebble games. We introduce and study a notion of connectivity for arenas, named \emph{trap-alternating-connectivity}, where Player~$\square$ attempts to reach vertices while Player~$\ocircle$ works against. It is shown that every arena decomposes into \emph{trap-alternating-strongly-connected components (ta-SCCs)}. Our main result is a linear time and space algorithm for computing this unique decomposition. Both the graph structures and the algorithm generalize the classical decomposition of a directed graph into its strongly-connected components (SCCs). The algorithm builds on a generalization of depth-first search (DFS), taking inspiration from Tarjan's SCC{s} classical algorithm. The structures of palm-trees and jungles described in Tarjan's original paper need to be revisited and generalized (\ie ta-palm-trees and ta-jungles) in order to handle the 2-players pebble-game's setting. This theory has direct applications in solving Update Games (UGs) faster. Dinneen and Khoussainov showed in 1999 that deciding who's the winner in a given UG costs $O(mn)$ time, where $n$ is the number of vertices and $m$ is the number of arcs. We solve that problem in $\Theta(m+n)$ linear time and space. The result is obtained by observing that the UG is a win for Player~$\square$ if and only if the arena comprises one single ta-SCC. It is also observed that the ta-palm-tree returned by the algorithm encodes routing information that an $\Theta(n)$-space agent can consult to win the UG in $O(1)$ time per move. Finally, the polynomial-time complexity for deciding Explicit McNaughton-Müller Games is also improved.
Submission history
From: Carlo Comin [view email][v1] Sun, 30 Oct 2016 17:22:00 UTC (66 KB)
[v2] Sat, 19 Nov 2016 20:23:11 UTC (66 KB)
[v3] Tue, 22 Nov 2016 13:07:27 UTC (66 KB)
[v4] Mon, 28 Nov 2016 11:01:58 UTC (66 KB)
[v5] Sun, 9 Jun 2019 10:18:10 UTC (76 KB)
[v6] Fri, 5 Jun 2020 21:19:02 UTC (80 KB)
[v7] Wed, 10 Jun 2020 16:46:03 UTC (82 KB)
[v8] Sat, 5 Dec 2020 16:40:48 UTC (81 KB)
[v9] Sun, 13 Feb 2022 17:07:15 UTC (86 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.