一种改进的求置换识别所需个数的近似算法
Improved Approximation Algorithm for the Number of Queries Necessary to Identify a Permutation
摘要:
在过去的三十年里,从算法的角度来看,演绎游戏已经变得很有趣。演绎博弈是两个局中人在不完全信息下的零和博弈。第一个玩家,称为“codemaker”,选择一个密码,第二个玩家,称为“codebreaker”,试图通过尽可能少的猜测来破解密码,利用每次猜测后由codemaker给出的信息。一个著名的演绎游戏是著名的主谋游戏。在本文中,我们考虑所谓的黑钉变体的主谋,其中唯一的信息有关的猜测是位置的数量,在该猜测符合密码。更准确地说,我们处理一个特殊版本的黑钉游戏与n孔和k >= n颜色,其中不允许重复的颜色。我们提出了一个策略,确定秘密代码在O(n log n)查询。我们的算法改进了Ker-I Ko和Shia-Chung Teng(1985)的结果,在k = n的情况下几乎是原来的2倍。据我们所知,没有以前的工作处理的情况k > n。关键词:摄魂师;组合问题;排列;算法
英文摘要:
In the past three decades, deductive games have become interesting from the algorithmic point of view. Deductive games are two players zero sum games of imperfect information. The first player, called "codemaker", chooses a secret code and the second player, called "codebreaker", tries to break the secret code by making as few guesses as possible, exploiting information that is given by the codemaker after each guess. A well known deductive game is the famous Mastermind game. In this paper, we consider the so called Black-Peg variant of Mastermind, where the only information concerning a guess is the number of positions in which the guess coincides with the secret code. More precisely, we deal with a special version of the Black-Peg game with n holes and k >= n colors where no repetition of colors is allowed. We present a strategy that identifies the secret code in O(n log n) queries. Our algorithm improves the previous result of Ker-I Ko and Shia-Chung Teng (1985) by almost a factor of 2 for the case k = n. To our knowledge there is no previous work dealing with the case k > n. Keywords: Mastermind; combinatorial problems; permutations; algorithms
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。