Gujarat Technological UniversitySummer 2025 examination

GTU 3150703 Analysis and Design of Algorithms (ADA) Summer 2025 Question Paper & PDF

B.E. · Computer Engineering · Semester 5 · Subject code 3150703
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 2:30 PM – 5:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

6 of 25 questions on this paper were also asked in other years. 3 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 39 repeated 3150703 questions, most asked first

Q.1

14 Marks
(a)
3 marks

Find Big-oh (O) notation of following functions f(n)=3n⁶ + 2 n * lg n + 6n, h(n)= 3n²+ 6n*lgn+ 2n2.5

(b)
4 marks
Define Omega and Theta notations with graph.
(c)
7 marksAsked in 3 of 7 papers

Write binary search algorithm and analyze it for worst case time complexity. Represent its time complexity using Big-oh (O) notation.

Also asked in Winter 2024 Q2c OR, Summer 2023 Q2c

Q.2

14 Marks
(a)
3 marks
Prove that (n + 6)³ = Ө( n³).
(b)
4 marks

If P(n) = a0+ a1 n + a2 n2 + . . . . . . + amnm then prove that P(n) = Ω(nm). Here a0, a1, a2 …..am are constants and am>0.

(c)
7 marks

Solve following recurrence relation using suitable method and express your answer using Big-oh (O) notation. T(n) = T(n/6) + T(5n/6) + Ө(n)

(c)
7 marks

Solve following recurrence relations using suitable method and express your answer using Big-oh (O) notation.

1T(n) = 2 T(n/2) + n log n 2. T(n) = 4 T(n/4) + n

Q.3

14 Marks
(a)
3 marks

Arrange the following growth rates from the lowest to highest asymptotic order: O(n log n), O(n2n), Ω(log n), O(n0.5), O(n!), Ω(2n), O(n0.5 log n)

(b)
4 marks

Write the recurrence relation for the quick sort on input instance: 15, 19, 20, 25, 32, 37, 50, 62, 70. Comment on the nature of input i.e. best case, average case or worst case.

(c)
7 marksAsked in 2 of 7 papers

Write greedy algorithm for activity selection problem. Give its time complexity. For following intervals, select the activities according to your algorithm. I1 (1-3), I2 (0-2), I3 (3-6), I4 (2-5), I5 (5-8), I6 (3-10), I7 (7-9).

Also asked in Winter 2025 Q3b OR

(a)
3 marks
Prove that Log(√n ) = O(log n).
(b)
4 marks

Write any algorithm (need not to have meaningful) which has a time complexity of O(1) and also includes a loop statement. Also, confirm its time complexity of O(1) using tabular method.

(c)
7 marks
Write DFS traversal and draw DFS tree corresponds to following graph.

Also, write time complexity of DFS algorithm. C G A B F H D E

Q.4

14 Marks
(a)
3 marksAsked in 6 of 7 papers

What is Principle of Optimality in dynamic programming? Explain it with example.

Also asked in Summer 2026 Q3a, Winter 2025 Q3a, Winter 2024 Q4b OR, Summer 2024 Q3a, Summer 2023 Q3a

(b)
4 marks

What is knapsack problem? Using greedy algorithm find an optimal solution for fractional knapsack instance n=7, M =17, profits p[ ] = {10,5,15,7,6,16,4} and weights w[ ] = {2,3,5,7,1,4,1}.

(c)
7 marksSame type asked in 3 of 7 papers

Find the optimal way of multiplying following matrices using dynamic programming. Also indicate optimal number of multiplications required. A:2 x 3, B: 3 x 5, C:5 x 6, D: 6 x 2, E: 2 x

Also asked in Winter 2024 Q3c, Winter 2023 Q3c

(a)
3 marks

What is the Travelling Salesman Problem (TSP)? Why TSP is considered an NP-hard problem?

(b)
4 marksSame type asked in 5 of 7 papers

Illustrate the working of Kruskal’s algorithm using greedy technique. Take the suitable graph for illustration.

Also asked in Summer 2026 Q4c, Winter 2025 Q4c OR, Winter 2023 Q4b OR, Summer 2023 Q4c OR

(c)
7 marksSame type asked in 4 of 7 papers

Find the longest common subsequence for the following two sequences using dynamic programming. Show the complete process and indicate the time complexity. X = 10101010011 Y = 101001

Also asked in Summer 2026 Q3c OR, Winter 2025 Q3c OR, Summer 2024 Q3c

Q.5

14 Marks
(a)
3 marks
Define P and NP problems. Also give example of each type of problem.
(b)
4 marksAsked in 5 of 7 papers

Explain the backtracking strategy to solve optimization problem. Explain how it can be applied to find the solution for 4-queen problem.

Also asked in Winter 2025 Q5c, Winter 2024 Q5a OR, Summer 2024 Q5b, Winter 2023 Q4c OR

(c)
7 marksAsked in 4 of 7 papers

Given a text and a pattern, write the naive string matching algorithm to find all occurrences of the pattern in the text. Use the text "ABCABCABC" and the pattern "ABC". Also, give time complexity of naive string matching algorithm.

Also asked in Winter 2025 Q5a, Summer 2024 Q5b OR, Summer 2023 Q5b

(a)
3 marksAsked in 4 of 7 papers

What is a polynomial reduction? Explain its role in proving NP- completeness.

Also asked in Winter 2025 Q5a OR, Winter 2023 Q5a OR, Summer 2023 Q5a OR

(b)
4 marks

Give example of any NP complete problem. Explain how to prove that particular problem is NP complete.

(c)
7 marks
Show that Hamiltonian cycle is a NP problem.

More Analysis and Design of Algorithms papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Analysis and Design of Algorithms (ADA) (Summer 2025, 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.

ViewDownload PDF