Design & Analysis of Algorithms (DAA) SPPU Insem Question Paper Sep 2024
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 2024
- Max. marks
- 30
- Time
- 1 Hour
- Semester
- VII
- Paper code
- [6361]-41
Printed for: B.E. (Computer Engineering) (Insem)
Instructions to the candidates
- Answer Q.1 or Q.2, Q.3 or Q.4.
- Neat diagrams must be drawn wherever necessary.
- Figure to right indicate full marks.
- Assume suitable data, if necessary.
Questions
Q1
- a)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[8]
What is iterative algorithm? Explain iterative algorithm design issues using examples.
OR- a)
Q2
- a)[7]
Prove the correctness of the following algorithm, which finds the factorial of a given number. int fact (int n) { if (n==0) then return 1; else return (n * fact(n-1)); }
- b)[8]
- a)
Q3
- a)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[3]
If an algorithm has a time complexity of both O(f(n)) and g(n)) for the same function f(n) and g(n), then what does it imply? Explain.
- c)[6]
What do and notations mean? When do we use O notation?
OR- a)
Q4
- a)[6]
What is polynomial time reducibility? What is its importance in computational complexity theory?
- b)[6]
What do understand by NP complete and NP hard problems? Give examples.
- c)[3]
This part has equations that don’t show as text. Open the PDF to read it.
- a)