ISRO Scientist/Engineer CSE 2018Algorithms › Design Techniques and Graph Algorithms
ISRO Scientist/Engineer CSE 2018 PYQ: The following paradigm can be used to find the solution of the problem in minimum time: Given a set of…
The following paradigm can be used to find the solution of the problem in minimum time:
Given a set of non-negative integer and a value $K$, determine if there is a subset of the given set with sum equal to $K$:
- ADivide and Conquer
- BDynamic ProgrammingCorrect answer
- CGreedy Algorithm
- DBranch and Bound
Answer
(B) Dynamic Programming
Approach
The problem asks which paradigm finds a subset of non-negative integers summing exactly to K in minimum time. This is the classic Subset Sum problem, a decision problem that is solved efficiently using Dynamic Programming by building up reachable sums.
Reviewed by ISRO IQ Editorial Team.