1.

The problem of finding a subset of positive integers whose sum is equal to a given positive integer is called as?(a) n- queen problem(b) subset sum problem(c) knapsack problem(d) hamiltonian circuit problemThis question was addressed to me in semester exam.This question is from Backtracking in chapter Backtracking of Data Structures & Algorithms II

Answer»

Correct option is (b) subset sum problem

Easiest explanation - Subset sum problem is the problem of FINDING a subset using the backtracking algorithm when summed, EQUALS a given INTEGER.



Discussion

No Comment Found

Related InterviewSolutions