Updated Ads Question Bank New 24.9.24
Updated Ads Question Bank New 24.9.24
Tech-I Semester
Course:Advanced Data Structures and Algorithms Regulation : R23
Academic Year:2024-2025 Branch :CSE
UNIT-1
Part-A
Short Answer Questions (2M)
Q. No Question BL CO PO
1 What is an algorithm? I I III
2 Write the pseudo code for finding the factorial of given
I I I
number.
3 How can you access a member variable of a structure in C+
+? Provide an example using both dot (.) and arrow (->) I I I
operators.
Part-B
Long Answer Questions (10M)
Q. No Question BL CO PO
1 a Explain the principles of Object Oriented Programming. II I I
What are Objects and Classes inObject Oriented
b Programming.? Explain I I I
Page 1 of 11
What is a structure in C++? How does it differ from a
b class?Explain I I II
Page 2 of 11
UNIT-11
Part-A
Short Answer Questions (2M)
Q. No Question BL CO PO
1 Which data structures are used in DFS and BFS I II I
2 How do you delete an element from heap? I II I
3 What are the working principles of divide and conquer with
I II II
finding factorial of ‘n’
4 What is the Difference between DFS and BFS ? I II II
5 Define algorithm. I II II
6 Define pseudo code. I II II
7 Define Connected component and Bi Connected component. I II II
8 Explain the Difference between Time complexity and space II II II
complexity .
9 Define Big Oh Notation for F(n)= 3n+2 I II II
10 Write different asymptotic notations. I II II
11 Explain the stages of divide and conquer? II II II
12 What are the applications of divide and conquer? I II II
13 Write the notations of worst case, best case and average case II
I II
time complexity for quick sort.
14 What are the Data structures using by DFS and BFS? I II II
15 What are the applications of Heap Trees? I II II
16 Write the notations of worst case, best case and average case II
I II
time complexity for Merge sort.
17 What is Convex Hull? I II II
Part-B
Long Answer Questions (10M)
Q. No Question BL CO PO
1 Write a short notes on heap trees and explain the insertion and
a deletion process with an example I II I
UNIT-III
Part-A
Short Answer Questions (2M)
Q. No Question BL CO PO
1 Explain the general method of Greedy method. II III I
2 Write the control abstraction for Greedy method? I III I
3 List the applications of greedy method. V III I
4 Define i) Principles of optimality ii) Feasible solution iii)
Optimal solution I III I
Page 4 of 11
12 Define Dynamic programing I III I
13 What are the features of Dynamic programming? I III I
14 Explain the general method of Dynamic programming. II III I
15 What is meant by All pairs shortest path problem? I III II
16 Define Floyd’s algorithm. I III II
17 Define Optimal Binary Search tree(OBST). I III III
18 Prove that dynamic programming constructs solution in III
bottom up approach. V II
Part-B
Long Answer Questions (10M)
Q. No Question BL CO PO
Write a greedy algorithm for sequencing unit time jobs
1 A with deadlines and profits I III II
ConsiderthefollowinginstanceofKnapsackproble
mN=3,M=20,(p1,p2,p3)=(25,24,15),
(w1,w2,w3)= V III II
(18,15,10) CalculateMaximum profit, Minimum
B weight and Maximum profit per unit weight
Apply
thegreedymethodtosolveKnapsackproblemforg
3 A iven instance Wheren=3,m=20, III III II
(p1,p2,p3)=(25,24,15)andweight
(w1,w2,w3)=(18,15,10).
What isMinimumcostspanningtree?
Explainanalgorithmforgenerating minimum cost
B I III II
spanning tree and list some applications of it.
B ExplaintheworkingprincipleofKruskal’salgorithm II III I
5 Whatisminimumspanningtree?
ExplaintheKruskal’salgorithmtofindtheminimums
A I III II
panningbytakingan illustrative graph
Findshortestpathusingdijkstra’salgorithmforfollowinggra
ph
B I III II
Considerthedirectededge-weightedgraphshownbelow
Page 6 of 11
8 Programming with All Pairs Shortest Path
problem
Write and explain an algorithm to compute the all III
B I II
pairs shortest path using dynamic programming.
What is All – Pair Shortest Path problem (APSP)? III
9 Discuss the Floyd’s APSP algorithm and discuss the
A I II
analysis of this algorithm.
Find all pairs shortest paths for the following graph and III
write the algorithm
B I III
10
A III I
B V I
UNIT-1V
Part-A
Short Answer Questions (2M)
Q. No Question BL CO PO
1 Illustrate an n-queens problem solved with backtracking. II IV III
2 Define Graph colouring problem. I IV II
3 What is the general method of backtracking I IV II
4 Explain the general method of branch and bound II IV II
5 Which data structure is used for implementing a LIFO IV
branch and bound strategy. I II
6 IV
Define: i) State Space tree ii) E – Node and Iii) Dead Node. I I
7 IV
Define: i) Solution space ii) Live – Node and iii) Inactive I I
Node.
Part-B
Long Answer Questions (10M)
Q. No Question BL CO PO
1 Explain Solution space and draw the solution space for N-
Queens problem I IV I
UNIT-V
Part-A
Short Answer Questions (2M)
Q. No Question BL CO PO
1 Design the diagram that illustrates the relationship between
NP Hard and NP Complete.
VI V III
Explain the words, Choice, Failure Success.
4 Define NP-Complete V
I II
Page 9 of 11
what is class P and NP? V
7 I I
8 Define Satisfiability? V
I III
Part-B
Long Answer Questions (10M)
Q. No Question BL CO PO
1 A Explainthefeaturesofnondeterministicalgorithms. II V I
BrieflyexplainaboutNP-hardandNP-completeproblems V
B with example. II I
2 Explainnondeterministicalgorithms? V
A Givesomeexamples. II I
B ExplainthestrategytoprovethataproblemisNPhard. II V I
3 DescribeCook’stheorem and V
A givetheapplicationsofCook’stheorem. II I
GivethecharacteristicsofNP-hardproblems. V
B I III
Explainthesatisfiabilityproblemandwritethealgorithmforth V
B esame. II II
WritetheNondeterministicsortingalgorithmand V
B 6analyzeitscomplexity. I II
7 Explaintheclassesof P , NPandNP- V
A Completegivingexampleproblem for each. II I
Page 10 of 11
8 Howmanystepsarerequiredtoprovethatadecisionpr V
A oblem is NP-Complete? Justify. I II
Page 11 of 11