Questions tagged [np-hard]

decision problems that are at least as hard as NP-complete problems

NP-hard problems are NP-complete and harder problems. More precisely, a decision problem $H$ is NP-hard if there is another problem $H'$ that is NP-complete that can be reduced in polynomial time to $H$, i.e. solving $H$ leads to a solution for $H'$.

See also ,

876 questions
130
votes
6 answers

Why hasn't there been an encryption algorithm that is based on the known NP-Hard problems?

Most of today's encryption, such as the RSA, relies on the integer factorization, which is not believed to be a NP-hard problem, but it belongs to BQP, which makes it vulnerable to quantum computers. I wonder, why has there not been an encryption…
Ken Li
  • 3,106
  • 3
  • 24
  • 38
42
votes
3 answers

Decision problems vs "real" problems that aren't yes-or-no

I read in many places that some problems are difficult to approximate (it is NP-hard to approximate them). But approximation is not a decision problem: the answer is a real number and not Yes or No. Also for each desired approximation factor,…
Ran G.
  • 20,884
  • 3
  • 61
  • 117
39
votes
1 answer

Is it NP-hard to fill up bins with minimum moves?

There are $n$ bins and $m$ type of balls. The $i$th bin has labels $a_{i,j}$ for $1\leq j\leq m$, it is the expected number of balls of type $j$. You start with $b_j$ balls of type $j$. Each ball of type $j$ has weight $w_j$, and want to put the…
Chao Xu
  • 3,103
  • 19
  • 34
35
votes
2 answers

NP-Hard problems that are not in NP but decidable

I'm wondering if there is a good example for an easy to understand NP-Hard problem that is not NP-Complete and not undecidable? For example, the halting problem is NP-Hard, not NP-Complete, but is undecidable. I believe that this means that it is a…
oneself
  • 453
  • 4
  • 5
27
votes
2 answers

Selling blocks of time slots

Given $n$ time slots that $k$ people want to buy. Person $i$ has a value $h(i,j)\geq 0$ for each time slot $j$. Each person can only buy one consecutive block of time slots, which could be empty. Is there a polynomial-time algorithm to compute the…
user11550
  • 323
  • 2
  • 8
26
votes
2 answers

Is Dominosa NP-Hard?

Dominosa is a relatively new puzzle game. It is played on an $(n+1)\times(n+2)$ grid. Before the game begins, the domino bones $\left(0,0\right),\left(0,1\right),\ldots,\left(n,n\right)$ are placed on the grid (constituting a perfect tiling).…
Yoav bar sinai
  • 481
  • 3
  • 10
25
votes
2 answers

Reduce hitting set to SAT, and cardinality constraints

Here is the problem. Given $k, n, T_1, \ldots, T_m$, where each $T_i \subseteq \{1, \ldots, n\}$. Is there a subset $S \subseteq \{1, \ldots, n\}$ with size at most $k$ such that $S \cap T_i \neq \emptyset$ for all $i$? I am trying to reduce this…
Aden Dong
  • 1,151
  • 2
  • 11
  • 24
23
votes
1 answer

Natural candidates for the hierarchy inside NPI

Let's assume that $\mathsf{P} \neq \mathsf{NP}$. $\mathsf{NPI}$ is the class of problems in $\mathsf{NP}$ which are neither in $\mathsf{P}$ nor in $\mathsf{NP}$-hard. You can find a list of problems conjectured to be $\mathsf{NPI}$ here. Ladner's…
Mohammad Al-Turkistany
  • 4,477
  • 1
  • 28
  • 37
23
votes
1 answer

Is finding a weight-balanced tree NP-hard?

In the following, we consider binary trees where only the leaves have weights. Let $T$ be a binary tree and $W(T)$ be the sum of the weights of its leaves. Let $T.l$ and $T.r$ be the left child and right child respectively. We define the imbalance…
22
votes
6 answers

Is every NP-hard problem computable?

Is it required that a NP-hard problem must be computable? I don't think so, but I am not sure.
Kevin Meier
  • 471
  • 4
  • 12
21
votes
1 answer

Proving that the conversion from CNF to DNF is NP-Hard

How can I prove that the conversion from CNF to DNF is NP-Hard? I'm not asking for an answer, just some suggestions about how to go about proving it.
21
votes
1 answer

Easy reduction from 3SAT to Hamiltonian path problem

There is a reduction in Sipser's book "Introduction to the theory of computation" on page 286 from 3SAT to Hamiltonian path problem. Is there a simpler reduction? By simpler I mean a reduction that would be easier to understand (for…
Kaveh
  • 22,661
  • 4
  • 53
  • 113
21
votes
2 answers

Subset Sum: reduce special to general case

Wikipedia states the subset sum problem as finding a subset of a given multiset of integers, whose sum is zero. Further it states that it is equivalent to finding a subset with sum $s$ for any given $s$. So I believe as they are equivalent, there…
ipsec
  • 537
  • 3
  • 9
18
votes
4 answers

Is the following problem NP-hard? (or have you seen it before?)

I genuinely don't know if the following problem is NP-hard. I have never seen it mentioned online, but it's hard to even search for exact problems like this. I have been trying to find an efficient algorithm for a while and intuitively it feels very…
QuinnF
  • 283
  • 2
  • 5
16
votes
1 answer

Are "Flow Free" puzzles NP-hard?

A "Flow Free" puzzle consists of a positive integer $n$ and a set of (unordered) pairs of distinct vertices in the $n \times n$ grid graph such that each vertex is in at most one pair. A solution to such a puzzle is a set of undirected paths in the…
user12859
1
2 3
58 59