...
UPPCL AE 2022
October 23, 2023
Arrays
October 23, 2023
UPPCL AE 2022
October 23, 2023
Arrays
October 23, 2023

Algorithms

Question 58

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

An algorithm Q solves this problem in O(nW) time. Which of the following statements is false?

A
Q solves the subset-sum problem in polynomial time when the input is encoded in unary
B
Q solves the subset-sum problem in polynomial time when the input is encoded in binary
C
The subset sum problem belongs to the class NP
D
The subset sum problem is NP-hard
Question 58 Explanation: 
Note: Out of syllabus.
Correct Answer: B
Question 58 Explanation: 
Note: Out of syllabus.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!