RTUComputer ScienceYr 2023 · Sem 5

Design and Analysis of Algorithms

22 questions

Q14 marks

Explain the different asymptotic notations (Big-O, Omega, Theta) with examples.

Show Answer
Q24 marks

Describe the Binary Search algorithm and analyze its time complexity.

Show Answer
Q34 marks

Explain the Merge Sort algorithm with an example and analyze its time complexity.

Show Answer
Q44 marks

Discuss Kruskal's Algorithm for finding Minimum Spanning Tree.

Show Answer
Q54 marks

Explain the concept of Dynamic Programming with the Fibonacci example.

Show Answer
Q64 marks

Describe the N-Queens problem using Backtracking.

Show Answer
Q74 marks

Explain the concept of P and NP complexity classes.

Show Answer
Q110 marks

(a) Explain the methods of solving recurrence relations: Substitution Method, Recursion Tree Method, and Master Theorem.

(b) Solve T(n) = 2T(n/2) + n using the Master Theorem.

Show Answer
Q210 marks

(a) Explain the Quick Sort algorithm in detail with a suitable example.

(b) Analyze the best case, average case, and worst case time complexity of Quick Sort.

Show Answer
Q310 marks

(a) Explain Dijkstra's Algorithm for Single Source Shortest Path with a suitable example.

(b) Explain the Bellman-Ford Algorithm and compare it with Dijkstra's Algorithm.

Show Answer
Q410 marks

Explain the 0/1 Knapsack problem using Dynamic Programming with a suitable example. Also explain the Matrix Chain Multiplication problem using Dynamic Programming.

Show Answer
Q510 marks

(a) Explain the concept of NP-Completeness.

(b) Discuss Cook's Theorem and its significance.

(c) Explain the Travelling Salesman Problem (TSP) and its complexity.

Show Answer