DAA Unit Wise Questions
DAA Unit Wise Questions
Unit-I
Unit-II
1. Discuss about all pairs shortest path problem with suitable example.
2. Compute all pair shortest path for following graph shown in figure 1.
3. Describe travelling sales person problem. Find the minimum cost tour for
the following graph using dynamic programming. Costs of the edges are
given by matrix shown in figure 2.
Unit-V
1.
a. Explain the classes of P and NP.
b. Differentiate between NP – complete and NP-Hard.
2. a)Discuss about cook’s theorem. b) What is the satisfiability problem?
3. Draw the portion of the state space tree generated by LCBB for the
knapsack instances: n=5, (P1,P2,…,P5) = (12,10,5,9,3),
(w1,w2,...,w5)=(3,5,2,5,3) and m=12.
4.
a. Write short notes on 3-SAT problem.
b. Briefly explain deterministic and non deterministic algorithms with
example.
5. Give the relation between NP Hard and NP Complete.
6. Draw the portion of the state space tree generated by LCBB for the
following instances: n=5, m=12, (P1…..P5) = (10, 15, 6, 8, 4) (w1…w5)
= (4, 6, 3, 4, 2)
7. Draw the portion of the state space tree generated by LC branch and
bound for an instance n=4, (P1, P2, P3, P4)= (10,10,12,18), (w1, w2, w3,
w4)=(2, 4, 6, 9), and m=15
8. 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.
9. Draw the portion of state space tree for the knapsack problem: N=5,
(P1,P2,…,P5)= (w1,w2,...,w5)=(4,4,5,8,9) and m=15.
10.Consider the traveling salesperson instance defined by the cost matrix and
generate the state space tree using LCBB and also use dynamic
programming design strategy.
11.
12.Identify the articulation points and draw the biconnected components.
13.
14.