P vs NP Guessing and process of elimination

Click For Summary
SUMMARY

The discussion centers on the P vs NP problem, particularly in relation to Sudoku puzzles and chess. It establishes that while Sudoku can often be solved through elimination, harder puzzles may require a more complex thought process akin to forecasting moves in chess. The distinction between problems solvable by elimination and those requiring guessing is emphasized, with the assertion that NP-completeness of Sudoku indicates that a polynomial-time algorithm for Sudoku would imply polynomial-time solutions for all NP problems. The conversation also touches on the implications of NP completeness and the verification of solutions in polynomial time.

PREREQUISITES
  • Understanding of NP-completeness and its implications
  • Familiarity with Sudoku puzzles and their classifications
  • Basic knowledge of Turing machines and oracle tapes
  • Concept of polynomial time verification in computational theory
NEXT STEPS
  • Research the implications of NP-completeness in computational theory
  • Study the relationship between Sudoku and other NP-complete problems
  • Learn about Turing machines and their role in understanding NP problems
  • Explore algorithms for solving Sudoku puzzles, particularly in polynomial time
USEFUL FOR

This discussion is beneficial for computer scientists, mathematicians, and anyone interested in computational complexity, particularly those exploring the nuances of NP-completeness and algorithm design.

Anders Serup Poulsen
Messages
4
Reaction score
0
If we suppose there is an algorithm for P vs NP, would it have to be able to find solutions where we now use trial and error? In harder Sudokus, for example, there are times when you have two or more possible numbers and need to guess whereafter you work the rest of the numbers through to see if what you guessed is right. There is a distinction between problems where the solution is given by the process of elimination and problems where you have to guess. Does P vs NP concern the former only or also the latter? An answer would be very much appreciated!
 
Physics news on Phys.org
Its not that you have to guess but rather you must consider possible numbers in multiple blank squares in the sudoku before determining the correct number for the square of interest. This is like selecting a move in chess where you must forecast a few moves ahead to decide if the current move is a good choice.

https://en.wikipedia.org/wiki/Mathematics_of_Sudoku

and this paper describes the general class of sudoku puzzles as NP-complete:

http://www-imai.is.s.u-tokyo.ac.jp/~yato/data2/SIGAL87-2.pdf

and a discussion here at Math Stack Exchange:

https://math.stackexchange.com/questions/445540/is-the-sudoku-puzzle-np-complete
 
Okay, "guessing" is not the right word then. In a lot of sudokus, you can find the solution by eliminating possible numbers but in the harder ones you get stuck and need to think several steps ahead like you said. Does the P vs NP problem contain both "types"? I feel like the problem gets much more complicated when you need to think steps ahead than when you don't.

From what I understand chess is in a more complex class of problems than sudoku.
 
Thank you for your reply (and sorry for my lack of vocabulary - English is not my first language)
 
##NP## means that a guess is possible. ##N## stands for non-deterministic. If I remember correctly, one can model it by a Turing machine with an oracle tape. Important is, that a guessed or whatever achieved solution can be verified in polynomial time ##P \subseteq NP##. ##NP## completeness of Sudoku means, that if we had a polynomial time algorithm for any Sudoku riddle, we could also decide all other problems in ##NP## in polynomial time, because there is a polynomial time translation from Sudoku into all other problems, e.g. the traveling salesman problem or the Boolean satisfiability problem. The general question behind ##NP=P##, that is ##NP \subseteq P##, is, whether there is a way to solve such problems without a guess, or an oracle tape.
 
Anders Serup Poulsen said:
If we suppose there is an algorithm for P vs NP, would it have to be able to find solutions where we now use trial and error? In harder Sudokus, for example, there are times when you have two or more possible numbers and need to guess whereafter you work the rest of the numbers through to see if what you guessed is right. There is a distinction between problems where the solution is given by the process of elimination and problems where you have to guess. Does P vs NP concern the former only or also the latter? An answer would be very much appreciated!
Are you referring to "proper puzzles" , i.e., those having a unique solution, or to general ones?
 
Those with just one solution.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
3
Views
7K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K