Code Monkey home page Code Monkey logo

no3's Introduction

no3

SAT solvers and scripts to find solutions to Martin Gardner's minimum no-3-in-a-line problem. Utilizes the sat13 SAT solver written by D. E. Knuth in the CWEB programming language by Knuth and Levy, the Stanford GraphBase (SGB) by Knuth, adaptations of scripts by Knuth to encode the no3 problem in Conjunctive Normal Form (CNF)--these scripts are contained in in the folder nothree. We also added scripts to convert this encoding to the DIMACS format & back in order to search exhaustively for solutions to the no3 problem using a blocking clause, all-solutions SAT solver.

Using this software we were able to find good placements of n+1 queens on only odd rows and columns for odd n up to n = 41. Previously there were only upper bounds established for up to n=18.

Additionally, we found exhaustive lists of good placements of up to n+1 queens for odd n up to 19. These findings are summarized in the following table:

Board Size (n) | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 |
-----------------+---+---+---+----+----+----+----+-----
# of Placements | 1 | 2 | 2 | 6 | 15 | 23 | 44 | 65 |

The number of placements are up to listed symmetry; e.g. placements which differed only by a reflection or a rotation were not counted multiple times.

Based on these results, we suggest an upper bound of n+1 for odd n. With Cooper, Pikhurko, Schmitt, and Warrington's result, this would confine the problem solution to {n,n+1} except when n is congruent to 3 modulo 4, where one fewer queen may suffice.

no3's People

Contributors

tobyweed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.