Is the n-Queens problem only np-complete for the task of finding all setups or also for finding any solution?

65 Views Asked by At

I have read on Wikipedia that the n-Queens problem is NP-complete when it comes to finding all possible solution implies it that finding one possible solution is also NP-complete?

1

There are 1 best solutions below

0
On BEST ANSWER

The Wikipedia article states "If the goal is to find a single solution, one can show solutions exist for all n ≥ 4 with no search whatsoever." This means that it is easy to find a solution even though it is hard to find all solutions.