Abstract

In this work we determine the metric dimension of Zn×Zn×Zn as ⌊3n/2⌋ for all n≥2. We prove this result by investigating a variant of Mastermind.Mastermind is a famous two-player game that has attracted much attention in the literature in recent years. In particular we consider the static (also called non-adaptive) black-peg variant of Mastermind. The game is played by a codemaker and a codebreaker. Given c colors and p pegs, the principal rule is that the codemaker has to choose a secret by assigning colors to the pegs, i.e., the secret is a p-tuple of colors, and the codebreaker asks a number of questions all at once. Like the secret, a question is a p-tuple of colors chosen from the c available colors. The codemaker then answers all of those questions by telling the codebreaker how many pegs in each question are correctly colored. The goal is to find the minimal number of questions that allows the codebreaker to determine the secret from the received answers. We present such a strategy for this game for p=3 pegs and an arbitrary number c≥2 of colors using ⌊3c/2⌋+1 questions, which we prove to be both feasible and optimal.The minimal number of questions required for p pegs and c colors is easily seen to be equal to the metric dimension of Zcp plus 1 which proves our main result.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call