ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 1812.08480
20
16

The Query Complexity of a Permutation-Based Variant of Mastermind

20 December 2018
P. Afshani
Manindra Agrawal
Benjamin Doerr
Carola Doerr
Kasper Green Larsen
K. Mehlhorn
    LRM
ArXivPDFHTML
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,π)(z,\pi)(z,π) which consists of a binary string z∈{0,1}nz \in \{0,1\}^nz∈{0,1}n and a permutation π\piπ of [n][n][n]. The secret must be unveiled by asking queries of the form x∈{0,1}nx \in \{0,1\}^nx∈{0,1}n. For each such query, we are returned the score \[ f_{z,\pi}(x):= \max \{ i \in [0..n]\mid \forall j \leq i: z_{\pi(j)} = x_{\pi(j)}\}\,;\] i.e., the score of xxx is the length of the longest common prefix of xxx and zzz with respect to the order imposed by π\piπ. The goal is to minimize the number of queries needed to identify (z,π)(z,\pi)(z,π). This problem originates from the study of black-box optimization heuristics, where it is known as the \textsc{LeadingOnes} problem. In this work, we prove matching upper and lower bounds for the deterministic and randomized query complexity of this game, which are Θ(nlog⁡n)\Theta(n \log n)Θ(nlogn) and Θ(nlog⁡log⁡n)\Theta(n \log \log n)Θ(nloglogn), respectively.

View on arXiv
Comments on this paper