- Computer Science Engineering (CSE)
- Design and Analysis of Algorithms
- What is a subset sum problem?

Q. |
## What is a subset sum problem? |

A. | finding a subset of a set that has sum of elements equal to a given number |

B. | checking for the presence of a subset that has sum of elements equal to a given number and printing true or false based on the result |

C. | finding the sum of elements present in a set |

D. | finding the sum of all the subsets of a set |

Answer» B. checking for the presence of a subset that has sum of elements equal to a given number and printing true or false based on the result | |

Explanation: in subset sum problem check for the presence of a subset that has sum of elements equal to a given number. if such a |

View all MCQs in:
Design and Analysis of Algorithms

- Subset sum problem is an example of NP- complete problem.
- Recursive solution of subset sum problem is faster than dynamic problem solution in terms of time complexity.
- You are given infinite coins of denominations v1, v2, v3,…..,vn and a sum S. The coin change problem is to find the minimum number of coins required to get the sum S. This problem can be solved using
- You are given infinite coins of N denominations v1, v2, v3,…..,vn and a sum S. The coin change problem is to find the minimum number of coins required to get the sum S. What is the time complexity of a dynamic programming implementation used to solve the coin change problem?
- Which of the following is true about the time complexity of the recursive solution of the subset sum problem?
- Which of the following is not true about subset sum problem?
- What is the worst case time complexity of dynamic programming solution of set partition problem(sum=sum of set elements)?
- What will be the auxiliary space complexity of dynamic programming solution of set partition problem(sum=sum of set elements)?
- Given an array, check if the array can be divided into two subsets such that the sum of elements of the two subsets is equal. This is the balanced partition problem. Which of the following methods can be used to solve the balanced partition problem?
- You are given n dice each having f faces. You have to find the number of ways in which a sum of S can be achieved. This is the dice throw problem. Which of the following methods can be used to solve the dice throw problem?

Login to Continue

It will take less than 2 minutes

Report MCQ