Skip to content

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$:

  1. A
    Divide and Conquer
  2. B
    Dynamic Programming
    Correct answer
  3. C
    Greedy Algorithm
  4. D
    Branch 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.