• closed by
1,897 views
0 0 votes
closed as a duplicate of: GATE CSE 2008 | Question: 44

The subset-sum problem is defined as follows: Given a set S of n positive integers and a positive integer W, determine whether there is a subset of S whose elements sum to W. An algorithm Q solves this problem in O(nW) time. Which of the following statements is false?

  1. Q solves the subset-sum problem in polynomial time when the input is encoded in unary
  2. Q solves the subset-sum problem in polynomial time when the input is encoded in binary
  3. The subset sum problem belongs to the class NP
  4. The subset sum problem is NP-hard

Please explain me how the option 1 is true.

 

Position:
Show:

Related questions

119 119 votes
11 answers 11 answers
31.6k
31.6k views
Ishrat Jahan asked Oct 28, 2014
31,553 views
When $n = 2^{2k}$ for some $k \geqslant 0$, the recurrence relation$T(n) = √(2) T(n/2) + √n$, $T(1) = 1$evaluates to :$√(n) (\log n + 1)$$√(n) \log n$$√(n) \log √(n)$$n \...
20 20 votes
2 answers 2 answers
17.8k
17.8k views
Kathleen asked Sep 12, 2014
17,752 views
The subset-sum problem is defined as follows: Given a set $S$ of $n$ positive integers and a positive integer $W$, determine whether there is a subset of $S$ whose elemen...
0 0 votes
1 1 answer
344
344 views
admin asked Jan 6, 2024
344 views
In software cost estimation, base estimation is related to :cost of similar projects already completed.cost of the base model of the present project.cost of the project w...
0 0 votes
1 1 answer
2.5k
2.5k views
rishu_darkshadow asked Sep 26, 2017
2,541 views
Which level is called as “defined” in capability maturity model?level $0$ level $3$level $4$ level $1$