Price of Locality in Permutation Mastermind: Are TikTok influencers Chaotic Enough?
arXiv:2601.19161
Abstract
In the permutation Mastermind game, the goal is to uncover a secret permutation by making a series of guesses which must also be permutations of , and receiving as feedback after guess the number of positions for which . While the existing literature on permutation Mastermind suggests strategies in which and might be widely different permutations, a resurgence in popularity of this game as a TikTok trend shows that humans (or at least TikTok influencers) use strategies in which consecutive guesses are very similar. For example, it is common to see players attempt one transposition at a time and slowly see their score increase. Motivated by these observations, we study the theoretical impact of two forms of "locality" in permutation Mastermind strategies: -local strategies, in which any two consecutive guesses differ in at most positions, and the even more restrictive class of -local strategies, in which consecutive guesses differ in a window of length at most . We show that, in broad terms, the optimal number of guesses for local strategies is quadratic, and thus much worse than the guesses that suffice for non-local strategies. We also show NP-hardness of the satisfiability version for -local strategies, whereas in the -local variant the problem admits a randomized polynomial algorithm.
Accepted at FUN2026 (v2 fixes typos and improves an explanation)