Gujarat Technological UniversityWinter 2024 Examination

GTU 3150703 Analysis and Design of Algorithms (ADA) Winter 2024 Paper Solution & PDF

B.E. · Computer Engineering · Semester 5 · Subject Code: 3150703
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours10:30 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)
Define the following terms:
i)Function in mathematics
ii)Linear inequalities
3 Marks
(b)
Explain the need of amortized notation. Explain with suitable example.
4 Marks
(c)

Write an algorithm for insertion sort. Calculate the best, average and worst case complexity of it.

7 Marks

Question 2

14 MarksMedium
(a)

Sort the following elements using counting sort. 2, 5, 3, 0, 2, 3, 0,

3 Marks
(b)

Sort the following elements using bucket sort. 10, 21, 29, 41, 52

4 Marks
(c)
Write the Master theorem. Solve following recurrence using it.
i)T(n)= 3T(n/2) + n2
ii)T(n)=2T(n/2) + n log n
7 Marks
OR OPTION
(c)

Write binary search algorithm using recursion. Derive its recurrence relation. Calculate its complexity using master theorem.

7 Marks

Question 3

14 MarksMedium
(a)
Explain the steps of greedy strategy for solving a problem.
3 Marks
(b)

Write an algorithm for Max-Min problem using divide and conquer approach. Calculate its complexity.

4 Marks
(c)

The matrices A(5X10), B(10X15), C(15X20), and D(20X25) are given. Solve the matrix chain multiplication problem using dynamic programming.

7 Marks
OR OPTION
(a)
Enlist the general characteristics of greedy algorithms.
3 Marks
(b)

Write an algorithm for matrix multiplication using divide and conquer approach. Calculate its complexity.

4 Marks
(c)

For the given set of items and knapsack capacity = 5 kg, find the optimal solution for the 0/1 knapsack problem using dynamic programming.

ItemWeightValue
I123
I234
I345
I456
7 Marks

Question 4

14 MarksMedium
(a)
Explain DFS with suitable example.
3 Marks
(b)
Enlist the advantages and disadvantages of dynamic programming.
4 Marks
(c)

Define minimum spanning tree. Explain Prim’s algorithm with suitable example.

7 Marks
OR OPTION
(a)
Explain BFS with suitable example.
3 Marks
(b)

Define principal of optimality. Explain its use in Dynamic Programming Method.

4 Marks
(c)

"A greedy strategy will work for fractional Knapsack problem but not for 0/1", is this true or false? Explain with suitable example.

7 Marks

Question 5

14 MarksMedium
(a)
Define string matching problem. Define valid shift and invalid shift.
3 Marks
(b)
Define the followings:
i)Articulation point
ii)Acyclic Directed Graph
iii)Back Edge
iv)Tree
4 Marks
(c)
Explain P, NP, NP complete and NP-Hard problems. Give examples of each.
7 Marks
OR OPTION
(a)

Explain Backtracking Method. Give solutions for 4-queens problem using backtracking method.

3 Marks
(b)
Explain in-order, pre-order and post-order traversals of the graph.
4 Marks
(c)
Write short note on the followings:
i)Approximation algorithms
ii)Randomized algorithms
7 Marks
College Exam Groups

Studying for Analysis and Design of Algorithms?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Analysis and Design of Algorithms (ADA) (Winter 2024, B.E. · Computer Engineering, Sem 5). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

Download PDF