arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.08246cs.DScs.DMmath.COmath.OC
收藏

寻找第一个和最美丽的皇后,通过编程

Finding First and Most-Beautiful Queens by Integer Programming

Matteo Fischetti, Domenico Salvagnin

摘要:

n皇后难题是一个著名的组合问题,需要在n × n棋盘上放置n个皇后,使得没有两个皇后可以互相攻击。自19世纪以来,许多数学家和计算机科学家都在研究这个问题。虽然找到n皇后难题的任何解决方案都是相当简单的,但找到字典上第一个(或最小)可行的解决方案是非常具有挑战性的。在文献中已知n <= 55时这类问题的解,而对于一些较大的棋盘,只知道部分解。本文的动机是问题的可解线性规划(ILP)是否可以用来计算一些开放的情况下的解决方案。我们描述了替代ILP为基础的解决方案的方法,并表明,他们确实能够计算(有时在意想不到的短计算时间)许多新的字典最佳解决方案的n范围从56到115。所提出的算法之一是一个纯粹的切割平面方法的基础上的组合变种的经典Gomory削减。我们还解决了一个有趣的“词典瓶颈”(或最小-最大)的问题,需要找到一个最美丽的(在一个定义良好的意义上)的位置的变体,并报告其解决方案n至176。

英文摘要:

The n-queens puzzle is a well-known combinatorial problem that requires to place n queens on an n x n chessboard so that no two queens can attack each other. Since the 19th century, this problem was studied by many mathematicians and computer scientists. While finding any solution to the n-queens puzzle is rather straightforward, it is very challenging to find the lexicographically first (or smallest) feasible solution. Solutions for this type are known in the literature for n <= 55, while for some larger chessboards only partial solutions are known. The present paper was motivated by the question of whether Integer Linear Programming (ILP) can be used to compute solutions for some open instances. We describe alternative ILP-based solution approaches, and show that they are indeed able to compute (sometimes in unexpectedly-short computing times) many new lexicographically optimal solutions for n ranging from 56 to 115. One of the proposed algorithms is a pure cutting plane method based on a combinatorial variant of classical Gomory cuts. We also address an intriguing "lexicographic bottleneck" (or min-max) variant of the problem that requires finding a most beautiful (in a well defined sense) placement, and report its solution for n up to 176.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑