Subject Name: Analysis and Design of Algorithms Subject Code:
BCS401 SEM: 4th DIV: A
Faculty: SUSHMA M
Module-5 Question Bank
SL# Question CO Level Marks
Explain the following with examples
i) P problem
1. ii) NP Problem CO5 L2 10
iii) NP- Complete problem
iv) NP – Hard Problems
2. What is backtracking? Apply backtracking to solve the below
instance of sum of subset problem S={5,10,12,13,15,18} d=30 CO5 L3 10
3. Illustrate N queen’s problem using backtracking to solve 4-
CO5 L2 10
Queens problem
4. Using Branch and Bound technique solve the below instance of
knapsack problem.
Item Weight Value
1 2 12
2 1 10 CO5 L3 10
3 3 20
4 2 5
Capacity=5
5. Solve the following instance of the knapsack problem by the
branch-and-bound algorithm. Construct state-space tree.
Item Weight Value
1 4 $40
2 7 $42 CO5 L3 10
3 5 $25
4 3 $12
The knapsack's capacity W is 10.
6. Differentiate between Branch and Bound technique and
Backtracking. Apply backtracking-to solve the following CO5 L3 10
instance of subset-sum problem S = {3, 5, 6, 7} and d=15.
Construct a state space tree
7. Explain greedy approximation algorithm to solve discrete
CO5 L2 10
knapsack problem.
Faculty Signature