Slashdot Mirror


Solve a 'Simple' Chess Puzzle, Win $1 Million (st-andrews.ac.uk)

An anonymous reader brings an important announcement: Researchers at the University of St Andrews have thrown down the gauntlet to computer programmers to find a solution to a "simple" chess puzzle which could, in fact, take thousands of years to solve, and net a $1 million prize. Computer Scientist Professor Ian Gent and his colleagues, at the University of St Andrews, believe any program capable of solving the famous "Queens Puzzle" efficiently would be so powerful, it would be capable of solving tasks currently considered impossible, such as decrypting the toughest security on the internet. In a paper [PDF] published in the Journal of Artificial Intelligence Research today, the team conclude the rewards to be reaped by such a program would be immense, not least in financial terms with firms rushing to use it to offer technological solutions, and also a $1 million prize offered by the Clay Mathematics Institute in America.

Devised in 1850, the Queens Puzzle originally challenged a player to place eight queens on a standard chessboard so that no two queens could attack each other. This means putting one queen in each row, so that no two queens are in the same column, and no two queens in the same diagonal. Although the problem has been solved by human beings, once the chess board increases to a large size no computer program can solve it.

16 of 125 comments (clear)

  1. Large size? by hcs_$reboot · · Score: 2

    "once the chess board increases to a large size no computer program can solve it"

    How large is that? Many algorithms for simpler problems would fail if the size is multiplied by a big number.

    --
    Slashdot, fix the reply notifications... You won't get away with it...
    1. Re:Large size? by fahrbot-bot · · Score: 2

      "once the chess board increases to a large size no computer program can solve it"

      How large is that? Many algorithms for simpler problems would fail if the size is multiplied by a big number.

      More to the point, anything larger that 8x8 isn't a chess board - problem solved, where's my money?

      --
      It must have been something you assimilated. . . .
  2. misleading title and rebranded P vs NP by z3alot · · Score: 5, Insightful

    First of all, the problem cant in any real sense be considered a chess puzzle, except in the superficial sense of placing queens on a board. Chess reasoning has nothing to do with a solution of the problem.

    Second of all, the $1m prize is exactly the clay millennium prize for the resolution of P vs NP. If n-qeens has a solution in P, being NP-complete, this implies P=NP.

    tldr Sensationalist title is sensationalist

    1. Re:misleading title and rebranded P vs NP by TimothyHollins · · Score: 2

      It's not necessarily the issue of P=NP, though such a solution absolutely would resolve this issue.

      The "problem" here is that there is no cost function. This is an Ariadne's Thread dilemma in that you can only verify your solution once you have placed as many queens as your placement will allow. You cannot place a single queen on an n x n board and then conclude that you are one step closer to a solution. There is no way to subdivide this problem, hence no way to solve it in a "sufficiently" fast manner (i.e. a greedy algorithm/DP or similar). You are constrained to exhaustive/B&B/randomized approaches, guaranteeing a upper bound of O(SUCK).

  3. I solved it by Anonymous Coward · · Score: 2, Funny

    I have discovered a truly remarkable program which this box is too small to contain. I'll complete it after I get back from a duel I have later today.

  4. The actual content of the article by Anonymous Coward · · Score: 4, Informative

    Three researchers proved that the queen problem is NP-complete. The prize is the millennium prize for P=NP. The journal publication is at http://jair.org/papers/paper5512.html.

  5. 8 queens? by fyngyrz · · Score: 2

    anything larger that 8x8 isn't a chess board - problem solved, where's my money?

    Not only that, but if an 8-queen solution works on an 8x8 board, it'll work just as well on a 1000x1000 or a 10k x 10k board, etc. board. Move it over, put it in the same relative location in the 8x8 group at the corner of the larger board, done. So solve for 8x8 and move.

    So you'll need to split that money with me, pal. :)

    Of course, it's just slightly possible that TFS is not an accurate summary of the actual article / problem, but...

    Nah. Besides, everyone knows that reading TFA is un-American. Even reading the summary raises red flags with Homeland Security, and may result in a National Security Letter (which you can read, but can't discuss.)

    --
    I've fallen off your lawn, and I can't get up.
    1. Re:8 queens? by CustomSolvers2 · · Score: 2

      Not only that, but if an 8-queen solution works on an 8x8 board, it'll work just as well on a 1000x1000 or a 10k x 10k board,

      The summary and even the linked page are a bit confusing on this front, but the paper is clearer. Apparently, this isn't an 8-queen problem, but an n-queen problem in an n*n board. The exact conditions aren't too clear either (e.g., "solve the problem really fast"), but it seems that creating an acceptably quick solution for n = 1000 should be enough.

      --
      Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
    2. Re:8 queens? by Anonymous Coward · · Score: 2

      Since this is all really backed by the discussion about NP != P, what you need to do is create a polynomial time solution for it and then that will be "fast enough". If your algorithm executes in exponential time it won't be fast enough.

      If you don't understand what I just said, welcome to Slashdot, we (used to) talk tech stuff here. Read this: en.wikipedia.org/wiki/Time_complexity.

    3. Re:8 queens? by CustomSolvers2 · · Score: 2

      If you don't understand what I just said, welcome to Slashdot, we (used to) talk tech stuff here

      I am a senior programmer with 2 university degrees (one of them in engineering) who has been full-time working on software development for over the last 8 years. I know what your time complexity is and its exact applicability to my work: none. I also have been contributing here relatively often during the last years; most of the times by mostly focusing on "tech" issues. What do you think that is more "tech": actually solving a problem by coming up with the optimal algorithm; or getting lost (read below) on abstract ideas originally intended to precisely help you solve that problem more efficiently.

      In any case, I was plainly highlighting an evident, reality: unclear and misleading description. But I could even say that this whole proposal doesn't make too much sense as far as solving that problem much quicker is relatively easy; but this isn't the intended goal. The goal is to improve the way in which a wrong approach (= using a standard chess engine performing a standard analysis when this specific situation calls for much less than that) solves a problem by plainly ignoring the obvious solution of coming up with the more efficient, to the point approach. So, in the best scenario, this whole proposal is a (confusing) bad example to explain certain theoretical idea whose "tech" character might not be too clear.

      --
      Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
    4. Re:8 queens? by clovis · · Score: 2

      anything larger that 8x8 isn't a chess board - problem solved, where's my money?

      Not only that, but if an 8-queen solution works on an 8x8 board, it'll work just as well on a 1000x1000 or a 10k x 10k board, etc. board. Move it over, put it in the same relative location in the 8x8 group at the corner of the larger board, done. So solve for 8x8 and move.

      So you'll need to split that money with me, pal. :)

      Of course, it's just slightly possible that TFS is not an accurate summary of the actual article / problem, but...

      Nah. Besides, everyone knows that reading TFA is un-American. Even reading the summary raises red flags with Homeland Security, and may result in a National Security Letter (which you can read, but can't discuss.)

      You are correct, the article and the summary are misleading/wrong.
      Here's those guys explaining the problem and prize again.
      https://www.claymath.org/event...

  6. Re:Define "quick" by As_I_Please · · Score: 2

    "Quick" is defined in terms of how the running time for the solver scales with the size of the board. If you plot the time it takes to place N queens on an NxN board, you get an exponential curve for all currently known solvers. Either of two possibilities will result in winning $1 million:

    1. Proving that this is the best one can do and that there are no better algorithms.
    2. Finding a queens-placing algorithm whose running time is bounded by a polynomial function on N.

  7. The story is mis-worded. You did it again editors. by Jack9 · · Score: 4, Informative

    > Dr Jefferson added: “There is a $1,000,000 prize for anyone who can prove whether or not the Queens Puzzle can be solved quickly so the rewards are high.”

    It's not the solution that gets you the prize, but the proof that the solution can be done quickly (without exploring nearly every permutation).

    --

    Often wrong but never in doubt.
    I am Jack9.
    Everyone knows me.
  8. Re:The story is mis-worded. You did it again edito by TimothyHollins · · Score: 2

    Yes it would. The Queen's Puzzle is an NP-complete problem, hence a solution to it would solve every other NP-complete problem.

  9. Visualizer of different algos by gbell · · Score: 3, Interesting

    Really cool in-browser visualizer of 5 different algorithms for solving this problem...

    http://haseebq.com/n-queens-visualizer/

  10. Re:the right tool by alexo · · Score: 2

    too bad that with Prolog solving the queen problem using CLP(FD) (using gprolog for instance) 500 queens can be solved in less than a second...

    The problem is that, as the the paper shows, the n-queen problem is NP-complete, which in layman's terms means that the best algorithm that we know of would take exponential time to solve it.

    To illustrate it, let's assume a hypothetical problem that has an (exponential) algorithm which takes 1 second to solve it with an input of 500 (queens or otherwise), and that the base of the exponent is 2 -- meaning that it would take 2 seconds to solve for an input of 501, 4 seconds for an input of 502, and so on.

    Continuing the series, an input of 506 would take over a minute to solve, 512 will take over an hour, 517 over a day, 521 over a month, 525 over a year... In a million years you will be able to solve the problem with an input of 544. Are you seeing the picture?

    Now the $1M prize is for either finding a polynomial complexity algorithm for solving that class of problems, or for a definite proof that one is not possible. Most mathematicians assume that the second outcome is correct, but no proof has been found, thus no $1M awarded.

    This of course does not take into account quantum computing, but that's a different question.