Questions on the topic of NP-Completeness, which comes from Theoretical Computer Science
Questions tagged [np-complete]
717 questions
48
votes
3 answers
What is the $3$-SAT problem?
In the hopes of improving my knowledge on the question, could someone outline the inputs and outputs for the 3-SAT problem? It would also be helpful if you could express how this problem differs in structure to SAT, 2-SAT or 4-SAT problems.
nubela
- 849
32
votes
6 answers
Simple "real life" NP-hard problems?
There are many proofs lying around that games like Lemmings or Sudoku or Tetris are NP-hard (generalized version of those games, of course). The proofs, as I recall, are not difficult but not simple either.
I wish to give my students a question in…
Gadi A
- 19,839
27
votes
1 answer
Why are there only a few known Ramsey numbers?
Can someone explain in a simple way why there are so few known exact Ramsey numbers? I guess it's because there are no efficient algorithms for this task, but are there so many combinations to test?
And an additional question: How are the bounds…
Fred Funks
- 273
20
votes
4 answers
What are NP-complete problems and why are they so important?
I keep hearing questions about whether something is NP-complete, but they never really mention what it is. Why do people care so much about NP-complete problems?
Gordon Gustafson
- 3,475
19
votes
2 answers
What is the complexity of succinct (binary) Nurikabe?
Nurikabe is a constraint-based grid-filling puzzle, loosely similar to Minesweeper/Nonograms; numbers are placed on a grid to be filled with on/off values for each cell, with each number indicating a region of connected 'on' cells of that size, and…
Steven Stadnicki
- 53,147
19
votes
1 answer
Solving SAT by converting to disjunctive normal form
The first well-known $NPC$ problem is the Boolean Satisfiability Problem, which has a proof of being $NPC$ done by Cook (Cook-Levin Theorem).
The problem can easily be described the following way:
In complexity theory, the satisfiability problem…
Yippie-Kai-Yay
- 453
17
votes
6 answers
Example of a problem that is NP-Hard but not NP-Complete
Please, mention one problem that is NP-Hard but not NP-Complete? And, explain why.
I see some papers assert Degree Constrained Minimum Spanning Tree is an NP-Hard problem and some say it's NP-Complete. Why so? Is it something that we don't have a…
user1869
17
votes
3 answers
Must an algorithm that decides a problem in NP also produce a solution?
I think I have a basic misunderstanding in the definition of a decision problem.
It's widely believed that a constructive proof of P=NP with a practical implementation would break all modern cryptography, for…
user256439
- 273
15
votes
6 answers
The practical implication of P vs NP problem
Although whether $$ P = NP $$ is important from theoretical computer science point of view, but I fail to see any practical implication of it.
Suppose that we can prove all questions that can be verified in polynomial time have polynomial time…
Graviton
- 2,364
12
votes
1 answer
How would you input xkcd.com/287 into WolframAlpha?
In this XKCD comic, a stick figure asks an NP-complete problem to order exactly 15.05 worth of appetizers out of a menu that includes the following list of prices: {2.15, 2.75, 3.35, 3.55, 4.20, 5.80}.
What is the mathematical name and procedure for…
Evgeny Zislis
- 223
12
votes
2 answers
Arranging a set of strings to form a palindrome: NP complete?
Is it NP complete to determine if a given set of strings can be arranged to form a palindrome?
Example: The strings {"German" "man" "am" "am" "I" "I" "regal" "a"} can be arranged into "I man am regal a German am I". The strings {"bat" "bat"} cannot…
user253970
12
votes
2 answers
Is finding the length of the shortest addition chain for a number $n$ really $NP$-hard?
I spent a few hours today working through the addition chain problem. Given the starting number 1, how many additions are required to get to some target natural number n? For example, to make 5, we need three additions:
1 + 1 = 2
2 + 2 = 4
4 + 1…
templatetypedef
- 10,888
11
votes
1 answer
Is it possible that P != NP cannot be proved?
I am probably asking a stupid question but what I gather from a layman explanation of Godel's incompleteness theorem is that it is completely possible that a true statement cannot be derived from theorem and axioms.
While all evidence points out…
user114370
- 113
- 3
11
votes
1 answer
Assuming $P \neq NP$, do we know whether there are problems which are in $NP$, not in $P$ and are not $NP$ complete?
Here's a question. Have there been any theoretical results showing that if $P \neq NP$, there must exist some problems in $NP$ which are not $NP$-complete and which are not in $P$ either? Just curious because I've never seen this question…
ted
11
votes
4 answers
what are the applications of the isomorphic graphs?
While studying data structures i was told my instructor that even i am given 3 hour/30 days/3 years to find out whether two graphs are isomorphic or not, it is very very complex and even after spending this much amount of time i will not able to…
Ankur Trapasiya
- 213