Design & Analysis of Algorithms (DAA) SPPU Insem Question Paper Sep 2023
All 4 questions from this SPPU insem paper, as printed. Read them here or open the PDF.
- Subject code
- 410241
- Pattern
- 2019 pattern
- Exam
- Insem
- Session
- Sep 2023
- Max. marks
- 30
- Time
- 1 Hour
- Semester
- VII
- Paper code
- [6188]-141
Printed for: B.E. (Computer Engineering) (Insem)
Instructions to the candidates
- Answer the questions Q.1 or Q.2; Q.3 or Q.4.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indictae full marks.
- Assume suitable data, if necessary.
Questions
Q1
- a)[2]
Given the fastest computer and hypothetically infinite memory, do we still need to study algorithms? Justify.
- b)[6]
How can we related algorithms to technology? Briefly explain.
- c)[7]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q2
- a)[8]
What is iterative algorithm? Explain interative algorithm design issues using suitable examples.
- b)[7]
Consider the following algorithm to find the square of a number: int sqr(int n) { if (n= = 0) return 0; else return (2n+sqr(n-1)-1) Prove the correctness of this algorithm using principle of mathematical induction or otherwise.
- a)
Q3
- a)[8]
Briefly explain P and NP problems in the context of complexity theory. Give suitable example.
- b)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[2]
Comment on the statement “Best case analysis of algorithm may not give clear idea of performance”
OR- a)
Q4
- a)[8]
What is SAT AND 3-SAT problem? Prove that 3-SAT problem is NP complete.
- b)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)