Professional Documents
Culture Documents
3 Color the following graph using graph coloring algorithm. What is the j,d Knowledge 4
minimum number of colors required?
5 Write the procedure to solve matrix chain multiplication problem j,d Application 4
For the chain matrix problem, like other dynamic programming
problems, involves determining the optimal structure (in this case, a
parenthesization). We would like to break the problem into
subproblems, whose solutions can be combined to obtain a solution to
the global problem.
Ai .. j ≡ Ai Ai + 1 ... Aj , where i ≤ j,
7 What is NP-Hard problem? How to handle NP-hard problems to find b,j Knowledge 4
solution?
PART B
Answer all the questions 2*15=30 marks
Sl.No Question
8 a) Discuss the algorithm for solving Sum of Subsets problem.
Let the instances be n = 6, Sum m = 30 and
w[1 : 6 ] = {5,10,12, 13, 15, 18 }. Draw the portion of state space tree generated for the above
instances.
[7 MARKS]
Three Solutions exists
8 b) Explain the procedure for solving 0/1 knapsack problem using the branch and bound technique.
Assume knapsack capacity W = 10:
9 a) Calculate the minimum cost path from‘s’ to ‘t’ in the following multistage graph. Solve the problem
using Forward approach.
Explanation is required in steps
9 b) Solve the following Travelling Salesmen Problem using branch and bound technique:
[10 MARKS]
State Space tree
[3 MARKS]