Consider two -vertex graphs and , where we interpret as a social network with edges representing friendships and as a movement graph with edges representing adjacent positions. The friends-and-strangers graph is a graph on the permutations , where two configurations are adjacent if and only if one can be obtained from the other by swapping two friends located on adjacent positions. Friends-and-strangers graphs were first introduced by Defant and Kravitz, and generalize sliding puzzles as well as token swapping problems. Previous work has largely focused on their connectivity properties. In this paper, we study the diameter of the connected components of . We extend the result of Kornhauser, Miller, and Spirakis on sliding puzzles to general graphs in two ways. First, we show that the diameter of is polynomially bounded when both the friendship and the movement graphs have large minimum degree. Second, when both the underlying graphs and are Erdős-Rényi random graphs, we show that the distance between any pair of configurations is almost always polynomially bounded under certain conditions on the edge probabilities.

生成讲解博客的中文版本

生成AI智能校验的中文版本