Questions tagged [np-complete]

NP-Complete refers to the hardest known problems within the complexity class NP. The "Traveling salesman problem" is one of the most widely known NP-Complete problems.

The classic method of attacking NP-complete problems is to try and prove that P = NP. Once a PTIME solution has been proven to exist for at least one NP-complete problem, that could be used to solve all of the others via reduction.

This is an active area of research. Communications of the ACM Volume 52, Number 9 (2009), Pages 78-86: The Status of the P vs NP Problem gives a good overview of the problem and current approaches to resolving it. (The article is freely available here.)

Apart from that, there are some approaches that can be used to get useful—although not optimal—solutions to NP-complete problems in practice:

  • Brute force
  • Heuristics that produce "reasonably good" results most of the time
  • Arbitrary approximation algorithms that can produce increasingly better solutions the longer they are allowed to run
  • Genetic algorithms, which try to find multiple "reasonably good" solutions and then "mutate" these solutions to get even better solutions.
340 questions
-1
votes
1 answer

Why is A _< B always true in a Polynomial Reduction?

I'm extremely knew to Computer Science, particularly the theoretical side, so am trying to understand (without an answer going too far over my head) why is always true in a polynomial time reduction, and whether my naive theory as to why explains…
-1
votes
1 answer

NP complete or NP hard, in a equivalences problems?

I ran into a question. Finding of all cycle in a graph is NP-Complete. I see this note on Google search. counting all cycle in a graph is NP-Complete. are these two sentence equivalences ? can we say these two is NP-Hard? Thanks for every…
user4733521
-1
votes
1 answer

example of reduction a polynomial decision to an NP-complete

I know if I reduce an NP-complete problem to a unknown problem P then I'm sure that P is itself NP-complete. And I know if I reduce a Problem P to an NP-complete problem there is no conclusion. So I want to give an example to show that we can reduce…
user3070752
  • 694
  • 4
  • 23
-1
votes
1 answer

How I can prove that 2-CNF is not NP-complete?

I want to know how I can show that 2-CNF is not NP-hard or NP complete?
-2
votes
1 answer

How to estimate that this task is in class NP?

Here is my problem: Given numbers x1, ... xn. Numbers meet n files size and memory disk capacity D. We must understand, can we that files divided into 3 disks. The amount of file size recorded on any disc cannot exceed the disk capacity D. Let’s…
-2
votes
1 answer

If P != NP, are there more P than non-P problems or vice versa?

If P != NP, are there then more Polynomial problems than SuperPolynomial problems, or vice versa?
Albert Hendriks
  • 1,979
  • 3
  • 25
  • 45
-2
votes
1 answer

Fastest Algorithm for Finding a Minimum Set Cover

What is the most time-efficient and correct algorithm that finds the minimum set cover? I don't need the code itself. I would like an explanation or pseudo code on how it works. For an example, we have Set S = {1,2,3,..,12} Subsets S1 =…
-3
votes
1 answer

Possible solution to find a Hamiltonian path in polynomial time

I was thinking recently about a possible solution to find, in polynomial time, whether an undirected graph has a Hamiltonian path or not. The main concept used as part of this implementation is based on an observation that I noticed while trying to…
-4
votes
1 answer

Prove that any minimum vertex cover of a clique of size n must have exactly n-1 vertices

How to prove that any minimum vertex cover of a clique of size n must have exactly n-1 vertices? THx
-10
votes
3 answers

Java: Traveling Salesman - Found polynomial algorithm

Edit: An improvement to this algorithm been found. Your are welcome to see it. This question is the an improvement of my old question. Now I want to show you Java code sample, and explain my algorithm in more details. I think that I found a…
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
1 2 3
22
23