Design & Analysis of Algorithms (DAA) SPPU Endsem Question Paper May 2025
All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Subject code
- 410241
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- May 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- VII
- Paper code
- [6404]-81
Printed for: B.E.(Computer Engineering)
Instructions to the candidates
- Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
- Neat diagrams must be drawn wherever necessary.
- Assume suitable data, if necessary.
- Figures to the right indicate full marks.
Questions
Q1
- a)[8]
Give a mathematical formulation for: i) Fractional Knapsack problem ii) 0/1 Knapsack problem.
- b)[9]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q2
- a)[7]
With respect to dynamic programming, what is the principle of optimality? Give a mathematical representation for the same.
- b)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q3
- a)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[4]
Prove that the full state space tree of finding sum of subset of n elements using backtracking will have (excluding the leaf nodes)2 n -1 nodes.
- c)[4]
What are the major drawbacks of branch and bound method?
Also asked:Nov 2024
OR- a)
Q4
- a)[8]
State the sum of subsets problem. Write an algorithm to solve this problem using backtracking method. Comment on the time complexity of this algorithm.
- b)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q5
- a)[6]
Give an amortized analysis of a k bit binary counter using aggregate method.
- b)[7]
What are tractable and non-tractable problems? Give examples.
- c)[4]
Does randomized algorithm for quick sort, improves the average case time complexity?
Also asked:Nov 2025
OR- a)
Q6
- a)[6]
Explain with the help of example the methods of amortized analysis.
- b)[7]
What is an approximation algorithm? How does performance ratios useful in approximation algorithms?
- c)[4]
What are randomized algorithms? Enlist few reasons to use randomized algorithms.
Also asked:May 2024
- a)
Q7
- a)[8]
Write a simple multithreaded matrix multiplication algorithm based on parallelizing relevant loops of the conventional procedure.
- b)[4]
Explain in brief race condition in multithreaded algorithms.
- c)[6]
What do you understand by spawn and sync keywords used in multithreaded programming?
Also asked:May 2024
OR- a)
Q8
- a)[8]
Write distributed breadth search algorithm. What is its advantage over the conventional approach?
- b)[10]
Write a Rabin-Karp string matching algorithm. Input to the algorithm be: Original text “t” of length n and pattern text being matched is “p” of length m. What is the expected runtime and worst-case runtime of this algorithm? … … …
- a)