Daa Quations
Daa Quations
Daa Quations
4. Give the 0/1 Knapsack LCBB algorithm. Explain how to find optimal solution using variable – tuple
sized approach.
5. Explain the FIFO BB 0/1 Knapsack problem procedure with the knapsack instance for n=4.m=15,
(p1,p2,p3,p4)=(10,10,12,18) (w1,w2,w3,w4) =(2, 4, 6, 9). Draw the portion of the state space tree
and find optimal solution.
6. Draw the portion of state space tree generated by FIFOBB for the job sequencing with deadlines
instance n=5 , (p1,p2,..,p5) =(6,3,4,8,5), (t1,t2,..t5) = (2,1,2,1,1) and (d1,d2,..,d5)=(3,1,4,2,4).What is
the penalty corresponding to an optimal solution.
7. Draw the portion of state space tree generated by LCBB for the 0/1 Knapsack instance: n = 5,
(p1,p2,…,p5) = (10,15,6,8,4), (w1,w2,..,w5) = (4,6,3,4,2) and m=12. Find an optimal solution using
fixed – tuple sized approach.
9. Explain 0/1 Knapsack problem with respect to branch and bound method.
10. What are the differences between FIFO and LC branch and bound solutions?
11. How to search an answer node in branch and bound using Least Cost Search? Explain.
Chapter- 5
1. What is a backtracking? Give the explicit and implicit constraints in 8 queen’s problem.
2. Draw the portion of state space tree for 4 queen’s problem using variable – tuple sized approach.
3. What is a Hamiltonian Cycle? Explain how to find Hamiltonian path and cycle using backtracking
algorithm.
4. Write an algorithm for N – queen’s problem. Give time and space complexity for 8 – queen’s
problem.
5. Give the statement of sum –of subsets problem. Find all sum of subsets for n=4, (w1, w2, w3, w4)
= (11, 13, 24, 7) and M=31.Draw the portion of the state space tree using fixed – tuple sized
approach.
7. Explain the Graph – coloring problem. And draw the state space tree for m= 3 colors n=4 vertices
graph. Discuss the time and space complexity.
8. Explain the basic principle of Backtracking and list the applications of backtracking.
Chapter- 4
1. Draw an Optimal Binary Search Tree for n=4 identifiers (a1,a2,a3,a4) = ( do,if, read, while)
P(1:4)=(3,3,1,1) and Q(0:4)=(2,3,1,1,1).
3. Describe the Dynamic 0/1 Knapsack Problem. Find an optimal solution for the dynamic
programming 0/1 knapsack instance for n=3, m=6, profits are (p1, p2, p3 ) = (1,2,5), weights are
(w1,w2,w3)=(2,3,4).
4. What is All – Pair Shortest Path problem (APSP)? Discuss the Floyd’s APSP algorithm and discuss
the analysis of this algorithm.
7. Construct a system with multiple devices connected parallel in three stages. The costs of the
devices are 25, 10 and 15 respectively. The cost of the system is to be no more than 100. The
reliability of each device type is 0.8, 0.7 and 0.4 respectively.
8. Compute Multistage graphs for following graph shown in figure
Chapter- 7
4. Discuss in detail about the class P, NP, NP-hard and NP-complete problems. Give examples for
each class