Design & Analysis of Algorithms (DAA) SPPU Endsem Question Paper May 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
- May 2023
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- VII
- Paper code
- [6004]-480
Printed for: B.E. (Computer Engineering)
Instructions to the candidates
- Solve 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.
- Figures to the right indicate full marks.
- Assume suitable data, if necessary.
Questions
Q1
- a)[10]
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:Nov 2023
- b)[8]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q2
- a)[8]
What is greedy approach? Explain Job scheduling algorithm using Greedy approach for following examples. Give the sequence of job scheduling. 2 Input: Four jobs with following deadlines and profits Job1D deadline Profit a 4 20 b 1 10 c 1 40 d 1 30 Input: Five Jobs with following deadlines and profits Job1D Deadline Profit a 2 100 b 1 19 c 2 27 d 1 25 e 3 15
- b)[10]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q3
- a)[8]
Explain with suitable example Backtracking: Principle, control abstraction, time analysis of control abstraction.
- b)[9]
Compare between greedy method and dynamic programming with respect to. i) Feasibility. ii) Optimality. iii) Recursion. iv) Memorization. v) Time complexity.
OR- a)
Q4
- a)[8]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[9]
What is Branch and Bound method? Write control abstraction for Least cost search? 3
Also asked:Nov 2022
- a)
Q5
- a)[9]
What is amortized analysis? Explain aggregate and potential function methods used for amortized analysis with respect to stack operations?
- 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)[10]
Write short notes on the following. i) Aggregate analysis. ii) Accounting Analysis. iii) Potential function method. iv) Tractable and Non-tractable problems.
Also asked:Nov 2022
- b)[8]
Write short notes on with suitable example of each. i) Randomized algorithm. ii) Approximation algorithm.
Also asked:Nov 2022
- a)
Q7
- 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]
i) Explain an algorithm for Distributed Minimum Spanning Tree. ii) Write and explain Rabin-Karp algorithm for string matching.
Also asked:Nov 2023
OR- a)
Q8
- a)[10]
Write short notes on the following. i) Multithreaded matrix multiplication. ii) Multithreaded merge sort. iii) Distributed breadth first search. iv) The Rabin-Karp algorithm.
Also asked:Nov 2022
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)