The Query Complexity of a Permutation-Based Variant of Mastermind

Abstract We study the query complexity of a permutation-based variant of the guessing game Mastermind. In this variant, the secret is a pair ( z , π ) which consists of a binary string z ∈ { 0 , 1 } n and a permutation π of [ n ] . The secret must be unveiled by asking queries of the form x ∈ { 0 , 1 } n . For each such query, we are returned the score f z , π ( x ) ≔ max { i ∈ [ 0 . . n ] ∣ ∀ j ≤ i : z π ( j ) = x π ( j ) } ; i.e., the score of x is the length of the longest common prefix of x and z with respect to the order imposed by π . The goal is to minimize the number of queries needed to identify ( z , π ) . This problem originates from the study of black-box optimization heuristics, where it is known as the LeadingOnes problem. In this work, we prove matching upper and lower bounds for the deterministic and randomized query complexity of this game, which are Θ ( n log n ) and Θ ( n log log n ) , respectively.

[1]  Benjamin Doerr,et al.  Playing Mastermind with Many Colors , 2013, SODA.

[2]  Leslie G. Valiant,et al.  The Complexity of Enumeration and Reliability Problems , 1979, SIAM J. Comput..

[3]  Paul Erdgs,et al.  ON TWO PROBLEMS OF INFORMATION THEORY bY PAUL ERDGS and ALFRJ~D RgNYI , 2001 .

[4]  Carola Doerr,et al.  The (1+1) Elitist Black-Box Complexity of LeadingOnes , 2016, GECCO.

[5]  Kurt Mehlhorn,et al.  The Query Complexity of Finding a Hidden Permutation , 2013, Space-Efficient Data Structures, Streams, and Algorithms.

[6]  Stephen R. Marsland,et al.  Convergence Properties of (μ + λ) Evolutionary Algorithms , 2011, AAAI.

[7]  Andrew Chi-Chih Yao,et al.  Probabilistic computations: Toward a unified measure of complexity , 1977, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977).

[8]  Benjamin Doerr,et al.  Black-Box Complexity: Breaking the O(n logn) Barrier of LeadingOnes , 2011, Artificial Evolution.

[9]  Thomas Jansen,et al.  UNIVERSITY OF DORTMUND REIHE COMPUTATIONAL INTELLIGENCE COLLABORATIVE RESEARCH CENTER 531 Design and Management of Complex Technical Processes and Systems by means of Computational Intelligence Methods Upper and Lower Bounds for Randomized Search Heuristics in Black-Box Optimization , 2004 .

[10]  Carola Doerr,et al.  Complexity Theory for Discrete Black-Box Optimization Heuristics , 2018, Theory of Evolutionary Computation.

[11]  Per Kristian Lehre,et al.  Faster black-box algorithms through higher arity operators , 2010, FOGA '11.

[12]  Thomas Jansen,et al.  On the analysis of the (1+1) evolutionary algorithm , 2002, Theor. Comput. Sci..