Design & Analysis of Algorithms
Design & Analysis of Algorithms
com
1|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
UNIT – II
1 Describe union operation on sets Remember 5
2 Describe find operation on sets Remember 5
3 Definea spanning tree and minimal spanning tree Remember 6
4 Define depth first search Remember 5
5 Define breadth first search Remember 5
6 Differentiate Breadth first search and depth first search Remember 5
7 Describe AND/OR graph Remember 5
8 Explain game tree Remember 5
9 Define an articulation point? Remember 5
10 Define aconnected and bi-connected component. Remember 5
UNIT – III
1 Define greedy method Remember 8
2 Define job sequencing with deadlines problem Remember 8
3 Define minimum cost spanning tree Remember 8
4 State the principle of optimality Remember 8
5 Define prims algorithm Remember 8
6 Definekruskal algorithm Remember 8
7 Define single source shortest path problem Remember 8
8 Define dynamic programming. Remember 8
9 List the features of dynamic programming Remember 8
10 Distinguish greedy method and dynamic programming Remember 8,9
UNIT – IV
1 State the principle of Backtracking Remember 10
2 Write control abstraction for backtracking Apply 10
3 List the applications of backtracking? Remember 10
4 Define a dead node Remember 10
5 Differentiate live node and dead node Remember 10
6 Define state space tree Remember 10
7 Define is solution space Remember 10
8 Define solution states and answer state? Remember 10
2|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
UNIT – V
1 Define class P Remember 12
2 Compare NP-hard and NP-completeness Remember 12
3 Define NP- hard problem Remember 12
4 Define NP-complete problem Remember 12
5 Define deterministic problem? Remember 12
6 Define non-deterministic problem Remember 12
7 Define a decision problem? Remember 12
8 Explain optimization problem Understand 12
9 Explainmaxclique problem? Understand 12
10 Define halting problem Remember 12
UNIT - II
1 Explain breadth first search algorithm with example Understand 5
2 Explain depth first search algorithm with example Understand 5
3 Discuss various tree traversal techniques with examples Understand 5
4 Compare and contrast BFS and DFS. Understand 5
5 Explain in detail about AND/OR graphs Understand 5
6 Explain waiting rule for finding UNION of sets and collapsing rule Understand 5
7 Differentiate divide and conquer and greedy method Understand 8,9
8 Discuss game trees Understand 5
3|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
UNIT - III
1 Explain in detail job sequencing with deadlines problem with example Apply 8
2 Explain single source shortest path problem with example Apply 8
3 Explain knapsack problem with example Apply 8
4 Explain prims algorithm with example Understand 8
5 Explainkruskal algorithm with example Understand 8
6 Explain the concept multistage graphs with example. Understand 8
7 Explain optimal binary search tree algorithm with example Understand 8
8 Explain 0/1 knapsack problem with example Understand 8
9 Explain all pairs shortest path problem with example Understand 8
10 Describe the travelling salesman problem and discuss how to solve it Understand 9
using dynamic programming?
UNIT – IV
1 Write an algorithm for N-queens problem using backtracking Apply 11
2 Explain subset-sum problem and discuss the possible solution strategies Apply 10
using backtracking.
3 Describe graph coloring problem and write an algorithm for m-coloring Understand 10
problem
4 Write an algorithm for Hamiltonian cycle with an example Apply 10
5 Explain properties of LC search Apply 11
6 Describe control abstraction for LC Search Understand 11
7 Explain principle of FIFO branch and bound Apply 11
8 Explain principle of LIFO branch and bound Apply 11
9 Explain the method of reduction to solve travelling sales person problem Apply 11
using branch and bound
10 Explain TSP using branch and bound method with example Apply 11
UNIT – V
1 State and prove cook’s theorem Remember 12
2 Explain deterministic and non-deterministic algorithms Apply 12
3 Write non deterministic algorithm for sorting and searching Apply 12
4 Write a non-deterministic knapsack algorithm Apply 12
5 Explainhow P and NP problems are related Apply 12
6 Distinguish NP- hard and NP-complete problems Understand 12
7 Explain decision problem with an example Apply 12
8 Explain chromatic number decision problem and clique decision problem Apply 12
9 Explain the strategy to prove that a problem is NP-hard Apply 12
10 Explain intractable problems with examples Apply 12
4|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
5|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
6|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
UNIT - III
1 Compute the optimal solution for job sequencing with deadlines using Understand 8
greedy method. N=4, profits (p1,p2,p3,p4) = (100,10,15,27),
Deadlines (d1,d2,d3,d4) = (2,1,2,1)
2 Compute the optimal solution for knapsack problem using greedy Understand 8
methodN=3, M= 20, (p1,p2,p3)= (25,24,15), (w1,w2,w3) =(18,15,10)
3 Construct minimum cost spanning tree using Understand 8
a) prims algorithm b) kruskal algorithm
4 Apply single source shortest path algorithm for the following graph Apply 8
5 Use optimal binary search tree algorithm and compute wij, cij, rij, Understand 9
0<=i<=j<=4,p1=1/10, p2=1/5, p3=1/10, p4=1/120, q0=1/5, q1=1/10,
q2=1/5, q3=1/20,q4=1/20.
6 Construct optimal binary search for (a1, a2, a3, a4) = (do, if,int, while), Understand 9
p(1 : 4) = (3,3,1,1) q(0 : 4)= (2,3,1,1,1)
7|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
∞ 12 5 7
11 ∞ 13 6
4 9 ∞ 18
10 3 2 ∞
10 Calculate shortest distances using all pairs shortest path algorithm Understand 9
UNIT - IV
1 Sketch the state space tree degenerated by 4 queens problem Understand 10
2 Apply the backtracking algorithm to solve the following instance of the Understand 10
sum of subsets problem S={5,10,12,13,15,18} and d=30
3 Sketch the state space tree generated all possible 3-color,4-node graph Understand 10
5 Solve the following instance of travelling sales person problem using Understand 11
Least Cost Branch Bound
8|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
∞ 12 5 7
11 ∞ 13 6
4 9 ∞ 18
10 3 2 ∞
6 Draw the portion of state space tree generated by LCBB by the following Understand 11
knapsack problem n=5 , (p1,p2,p3,p4,p5) =(10,15,6, 8, 4),
(w1,w2,w3,w4,w5)=(4,6,3,4,2) and m=12
7 Draw the portion of state space tree generated by FIFO knapsack for the Understand 11
instance N=4 , (P1, P2, P3, P4)= ( 10, 10, 12, 18 ) , ( w1, w2,w3,w4) = (
2, 4, 6, 9 ) , m=15
8 Solve the following instance of travelling sales person problem using Understand 11
Least Cost Branch Bound
9|Page
Specworld.in jntuworld.xyz
smartworld.asia smartzworld.com
10 | P a g e
Specworld.in jntuworld.xyz