Design and Analysis of Algorithms Question Bank
Design and Analysis of Algorithms Question Bank
Design and Analysis of Algorithms Question Bank
in JNTU World
ld
or
W
PART – A (SHORT ANSWER QUESTIONS)
S. No Question Blooms Course
TU
Taxonomy Outcome
Level
UNIT – I
1 Define the term algorithm and state the criteria the algorithm should satisfy. Remember 1
2 Define order of an algorithm and the need to analyze the algorithm. Remember 2
3 Define asymptotic notations: big ‘Oh’, omega and theta? Remember 2
4 List the two different types of recurrence Remember 4
5 State the best case and worst case analysis for linear search Remember 7
JN
1|Page
ld
19 List out any two drawbacks of binary search algorithm. Remember 7
20 List out the drawbacks of Merge Sort algorithm. Remember 7
UNIT – II
1 Describe union operation on sets Remember 5
2 Describe find operation on sets Remember 5
or
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
W
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
TU
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
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
ld
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
or
10 Define halting problem Remember 12
UNIT - II
1 Explain breadth first search algorithm with example Understand 5
JN
3|Page
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
ld
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
or
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
W
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
TU
4|Page
ld
5 Sort the list of numbers using merge sort Understand 7
33, 44, 2, 10, 25, 79, 86, 47, 14, 36
6 Show that the average case time complexity of quick sort is O(nlogn) Apply 7
7 Understand merge sort on letters H, K, P,C,S,K,R,A,B,L Understand 7
8 Understandstrassen’s matrix multiplication on following matrices Understand 7
4 5 2 10
5 9 , 1 6
or
9 Write and solve recurrence relation for strassen’s matrix multiplication Apply 7
10 Solve the following recurrence relation Understand 4
𝑛
𝑇(𝑛) = {2𝑇 ( ) + 1, 𝑎𝑛𝑑 𝑇(1) = 2
2
UNIT - II
1
W
Illustrate BFS traversal of following graph
Understand 5
TU
5|Page
ld
5 Illustrate DFS traversal of following graph Understand 5
or
Illustrate BFS traversal of following graph Understand 5
W
7 List the articulation points from the following graph Understand 5
TU
JN
6|Page
ld
10 Illustrate DFS traversal of following graph Understand 5
or UNIT - III
Compute the optimal solution for job sequencing with deadlines using
greedy method. N=4, profits (p1,p2,p3,p4) = (100,10,15,27),
Understand 8
W
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
TU
4 Apply single source shortest path algorithm for the following graph Apply 8
JN
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
∞ 12 5 7
ld
11 ∞ 13 6
4 9 ∞ 18
10 3 2 ∞
or
10 Calculate shortest distances using all pairs shortest path algorithm Understand 9
W
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
TU
5 Solve the following instance of travelling sales person problem using Understand 11
Least Cost Branch Bound
8|Page
∞ 12 5 7
11 ∞ 13 6
4 9 ∞ 18
10 3 2 ∞
ld
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
or
Least Cost Branch Bound
W
9 Identify Hamiltonian cycle from the following graph Understand 10
TU
9|Page
ld
6 Explain P type problems with examples Remember 12
or
W
TU
JN
10 | P a g e