Design & Analysis of Algorithms (DAA) SPPU Endsem Question Paper Nov 2023
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
- Nov 2023
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- I
- Paper code
- [6181]-101
Printed for: B.E. (Computer Engineering)
Instructions to the candidates
- Answer Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indicate full marks.
- Assume suitable data, if necessary.
Questions
Q1
- a)[9]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[9]
Consider the following instance of the knapsack problem. Find the optimal solution by using dynamic programming approach. Item Weight Profit 1 2 $12 2 1 $10 3 3 $20 4 2 $15 Capacity of the knapsack = 5.
Also asked:May 2023
OR- a)
Q2
- a)[12]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[6]
Write steps for Greedy approach for Job sequencing. 2
- a)
Q3
ORQ4
- a)[9]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[8]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q5
- a)[9]
What is amortized analysis? Explain the aggregate method with example.
- b)[9]
What is Potential function method of amortized analysis? To illustrate Potential method, find amortized cost of PUSH, POP and MULTIPOP stack operations.
OR- a)
Q6
- a)[6]
What are special needs of embedded algorithm? Which sorting algorithm is best for embedded systems? Why?
- b)[4]
Explain Randomized and Approximate algorithms. 3
- c)[8]
What is randomized algorithm? Give any example of randomized algorithm? Also explain Random variable, Binomial random variable and-Mathematics for Randomized algorithm.
- a)
Q7
ORQ8
- a)[9]
Write and explain pseudo code for Multi-threaded merge sort algorithm. How parallel merging gives a significant parallelism advantage over Merge Sort?
- b)[8]
This part has equations that don’t show as text. Open the PDF to read it.
- a)