English

The Query Complexity of Mastermind with $\ell_p$ Distances

Data Structures and Algorithms 2019-09-25 v1 Discrete Mathematics Combinatorics

Abstract

Consider a variant of the Mastermind game in which queries are p\ell_p distances, rather than the usual Hamming distance. That is, a codemaker chooses a hidden vector y{k,k+1,,k1,k}n\mathbf{y}\in\{-k,-k+1,\dots,k-1,k\}^n and answers to queries of the form yxp\Vert\mathbf{y}-\mathbf{x}\Vert_p where x{k,k+1,,k1,k}n\mathbf{x}\in\{-k,-k+1,\dots,k-1,k\}^n. The goal is to minimize the number of queries made in order to correctly guess y\mathbf{y}. Motivated by this question, in this work, we develop a nonadaptive polynomial time algorithm that works for a natural class of separable distance measures, i.e.\ coordinate-wise sums of functions of the absolute value. This in particular includes distances such as the smooth max (LogSumExp) as well as many widely-studied MM-estimator losses, such as p\ell_p norms, the 1\ell_1-2\ell_2 loss, the Huber loss, and the Fair estimator loss. When we apply this result to p\ell_p queries, we obtain an upper bound of O(min{n,nlogklogn})O\left(\min\left\{n,\frac{n\log k}{\log n}\right\}\right) queries for any real 1p<1\leq p<\infty. We also show matching lower bounds up to constant factors for the p\ell_p problem, even for adaptive algorithms for the approximation version of the problem, in which the problem is to output y\mathbf{y}' such that yypR\Vert\mathbf{y}'-\mathbf{y}\Vert_p\leq R for any Rk1εn1/pR\leq k^{1-\varepsilon}n^{1/p} for constant ε>0\varepsilon>0. Thus, essentially any approximation of this problem is as hard as finding the hidden vector exactly, up to constant factors. Finally, we show that for the noisy version of the problem, i.e. the setting when the codemaker answers queries with any q=(1±ε)yxpq = (1\pm\varepsilon)\Vert\mathbf{y}-\mathbf{x}\Vert_p, there is no query efficient algorithm.

Keywords

Cite

@article{arxiv.1909.10668,
  title  = {The Query Complexity of Mastermind with $\ell_p$ Distances},
  author = {Manuel Fernandez and David P. Woodruff and Taisuke Yasuda},
  journal= {arXiv preprint arXiv:1909.10668},
  year   = {2019}
}

Comments

Full version of APPROX 2019 paper