Gujarat Technological UniversityWinter 2023 examination

GTU 3150703 Analysis and Design of Algorithms (ADA) Winter 2023 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 10:30 AM – 1: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.

7 of 25 questions on this paper were also asked in other years. 11 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 marksAsked in 3 of 7 papers
What is an algorithm? Explain various properties of an algorithm.

Also asked in Winter 2025 Q1b, Summer 2023 Q2a

(b)
4 marksSame type asked in 4 of 7 papers
Solve the following using Master’s theorem:
aT(n) = 2T(n/4) + 1
bT(n)=3T(n/4) + nlgn

Also asked in Summer 2026 Q2b, Winter 2024 Q2c, Summer 2024 Q2b

(c)
7 marks
Write selection sort algorithm and compute running time of algorithm.

Q.2

14 Marks
(a)
3 marksAsked in 3 of 7 papers
Explain general characteristics of greedy algorithms.

Also asked in Winter 2025 Q3a OR, Winter 2024 Q3a OR

(b)
4 marks
What is asymptotic notation? Find out big-oh notation of the f(n) = 3n²+5n+10
(c)
7 marksAsked in 2 of 7 papers

Illustrate the working of the quick sort on input instance: 25, 29, 30, 35, 42, 47, 50, 52, 60. Comment on the nature of input i.e. best case, average case or worst case. Also discuss worst and best case of quick sort algorithm.

Also asked in Summer 2024 Q2c

(c)
7 marks

Give the properties of Heap Tree. Sort the following data using Heap Sort Method: 20, 50, 30, 75, 90, 60, 80, 25, 10, 40.

Q.3

14 Marks
(a)
3 marksSame type asked in 2 of 7 papers

Sort the List “G,U,J,A,R,A,T,S,A,R,K,A,R” in alphabetical order using merge sort.

Also asked in Winter 2025 Q2c OR

(b)
4 marks

Following are the details of various jobs to be scheduled on multiple processors such that no two processes execute at the same on the same processor. Show schedule of these jobs on minimum number of processors using greedy approach. Jobs J1 J2 J3 J4 J5 J6 J7 Start time 0 3 4 9 7 1 6 Finish time 2 7 7 11 10 5

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

Using algorithm find an optimal parenthesization of a matrix chain product whose sequence of dimension is (5,10,3,12,5,50,6) (use dynamic programming).

Also asked in Summer 2025 Q4c, Winter 2024 Q3c

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

Apply counting sort for the following numbers to sort in ascending order. 3, 1, 2, 3, 3,

Also asked in Summer 2026 Q2a, Winter 2024 Q2a

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

Find the Optimal Huffman code for each symbol in following text ABCCDEBABFFBACBEBDFAAAABCDEEDCCBFEBFCAE

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

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

Solve following knapsack problem using dynamic programming algorithm with given capacity W=5, Weight and Value are as follows (2,12),(1,10),(3,20),(2,15)

Also asked in Winter 2025 Q3c, Summer 2024 Q4c OR, Summer 2023 Q3c OR

Q.4

14 Marks
(a)
3 marks

Solve the following Task Assignment problem for minimization using following cost matrix. (Cost matrix represents cost of Task T performed by Person P). T1 T2 T3 P1 10 20 25 P2 20 23 26 P3 12 16 25

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

Given coins of denominations 2, 3 and 4 with amount to be pay is 5. Find optimal no. of coins and sequence of coins used to pay given amount using dynamic method.

Also asked in Summer 2023 Q3c

(c)
7 marks

Write an algorithm to find out the articulation points of an undirected graph. Find out articulation points for the following graph. Consider vertex 0 as the starting point.

(a)
3 marksSame type asked in 2 of 7 papers

Find out the NCR (5

3Using Dynamic Method.

Also asked in Summer 2024 Q3b

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

Write the Kruskal’s Algorithm to find out Minimum Spanning Tree. Apply the same and find MST for the graph given below.

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

(c)
7 marksAsked in 5 of 7 papers

Explain Backtracking Method. What is N-Queens Problem? Give solution of 4- Queens Problem using Backtracking Method.

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

Q.5

14 Marks
(a)
3 marksSame type asked in 2 of 7 papers

Demonstrate Binary Search method to search Key = 14, form the array A = <2,4,7,8,10,13,14,60>.

Also asked in Summer 2024 Q3b OR

(b)
4 marksAsked in 2 of 7 papers

Solve the following knapsack problem using greedy method. Number of items = 5, knapsack capacity W = 100, weight vector = {50,40,30,20,10} and profit vector = {1,2,3,4,5}.

Also asked in Summer 2024 Q4c

(c)
7 marksAsked in 3 of 7 papers
Define P, NP, NP-complete, NP-Hard problems. Give examples of each

Also asked in Winter 2024 Q5c, Summer 2023 Q5c OR

(a)
3 marksAsked in 4 of 7 papers
Explain in Brief: Polynomial reduction.

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

(b)
4 marks

Traverse the following graph using Breadth First Search Technique. Also draw BFS Tree for a given graph.

(c)
7 marksSame type asked in 5 of 7 papers
Explain spurious hits in Rabin-Karp string matching algorithm with example.

Working modulo q=13, how many spurious hits does the Rabin-Karp matcher encounter in the text T = 2359023141526739921 when looking for the pattern P = 26739?

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

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) (Winter 2023, 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