P vs NP Guessing and process of elimination

Click For Summary

Discussion Overview

The discussion revolves around the relationship between the P vs NP problem and the concepts of guessing versus elimination in problem-solving, particularly in the context of Sudoku puzzles and chess. Participants explore whether the P vs NP problem encompasses both types of problem-solving strategies and how complexity increases when anticipating future moves.

Discussion Character

  • Exploratory
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants propose that an algorithm for P vs NP would need to address problems that require guessing, as seen in harder Sudoku puzzles where multiple possibilities exist.
  • Others argue that the term "guessing" may not be appropriate, suggesting that solving Sudoku often involves eliminating possibilities rather than random guessing.
  • A participant highlights the complexity of problems like chess compared to Sudoku, indicating that anticipating several moves ahead adds to the difficulty.
  • One participant explains that NP means a solution can be guessed and verified in polynomial time, and discusses the implications of NP-completeness in relation to Sudoku and other NP problems.
  • Another participant questions whether the discussion pertains to "proper puzzles" with unique solutions or general Sudoku puzzles.

Areas of Agreement / Disagreement

Participants express differing views on the nature of guessing versus elimination in problem-solving related to P vs NP. There is no consensus on whether P vs NP concerns both types of problem-solving strategies or how they relate to the complexity of different problems.

Contextual Notes

Participants reference specific examples and literature related to Sudoku and NP-completeness, but the discussion remains open-ended regarding the definitions and implications of guessing and elimination in the context of P vs NP.

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 9 ·
Replies
9
Views
2K
  • · 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 5 ·
Replies
5
Views
2K