In the $(s,d)$-spy game over a graph $G$, $k$ guards and one spy occupy some vertices of $G$ and, at each turn, the spy may move with speed $s$ (along at most $s$ edges) and each guard may move along one edge. The spy and the guards may occupy the same vertices. The spy wins if she reaches a vertex at distance more than the surveilling distance $d$ from every guard. This game was introduced by Cohen et al. in 2016 and is related to two well-studied games: Cops and robber game and Eternal Dominating game. The guard number $gn_{s,d}(G)$ is the minimum number of guards such that the guards have a winning strategy (of controlling the spy) in the graph $G$. In 2018, it was proved that deciding if the spy has a winning strategy is NP-hard for every speed $s\geq 2$ and distance $d\geq 0$. In this paper, we initiate the investigation of the guard number in grids and in graph products. We obtain a strict upper bound on the strong product of two general graphs and obtain examples with King grids that match this bound and other examples for which the guard number is smaller. We also obtain the exact value of the guard number in the lexicographical product of two general graphs for any distance $d\geq 2$. From the algorithmic point of view, we prove a positive result: if the number $k$ of guards is fixed, the spy game is solvable in polynomial XP time $O(n^{3k+2})$ for every speed $s\geq 2$ and distance $d\geq 0$. In other words, the spy game is XP when parameterized by the number of guards. This XP algorithm is used to obtain an FPT algorithm on the $P_4$-fewness of the graph. As a negative result, we prove that the spy game is W[2]-hard even in bipartite graphs when parameterized by the number of guards, for every speed $s\geq 2$ and distance $d\geq 0$, extending the hardness result of Cohen et al. in 2018.
翻译:在 $(d) 的 PSpy 游戏中, 以美元取代一个G$, 以美元保镖和一位间谍 占据一些0美元远端的O美元。 在2 G$的游戏中, 间谍可以以美元的速度移动( 最多以美元为边缘), 而每个卫兵可以沿着一个边缘移动。 间谍和卫兵可以使用同一个顶端。 如果间谍到达一个顶点的距离大于每个卫兵的俯冲距离, 间谍就会获胜。 这个游戏由 Cohen 等人在2016年推出, 与两个经过仔细研究的游戏有关: 警察和抢劫游戏以及永恒的游戏。 卫兵的 $( 最多以美元为边缘 ) 。 间谍和卫兵的最小值可能以美元为底端。 2018年, 事实证明, 间谍的赢球员策略是否以美元为底限, 以美元为底限。 在这张纸上, 我们用高端的游戏中以2 美元为底值 。