Re:The N-Queens completion problem is NP-hard
by umanwizard on Monday September 04, 2017 @12:58PM
(#15169422)
The time it takes to solve needs to grow at most polynomially with the length of the representation of the input.
[ Parent
| on HN ]
Re:The N-Queens completion problem is NP-hard
by Retric on Monday September 04, 2017 @01:20PM
(#15169558)
The input is just a single number. So grow polynomial from N x N board size?
I really don't get how this is equivalent to NP.
Re:The N-Queens completion problem is NP-hard
by CarolineW on Monday September 04, 2017 @05:27PM
(#15170957)
You either read the earlier version before it was corrected, or you're misunderstanding. The problem is not the N-Queens problem, it's the N-Queens /completion/ problem. The problem is this:
Here's an NxN board with k queens already placed. Is there a way to place another N-k queens so they are all mutually non-attacking?
Most instances will be easy, but current algorithms to solve this are such that for each N, the time taken in the worst case is an exponential function of N.