Gujarat Technological UniversitySummer 2024 Examination

GTU 2150703 Analysis and Design of Algorithms Summer 2024 Paper Solution & PDF

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

Question 1

14 MarksMedium
(a)

Define the following terms: algorithm, set, function, relation, vector, matrix, linear inequality.

7 Marks
(b)
1State the general characteristics of the greedy method.
2State the general characteristic of the dynamic programming method.
7 Marks

Question 2

14 MarksMedium
(a)

Apply asymptotic notations to sequential search and binary search techniques and find their time complexities in best case, average case and worst case.

7 Marks
(b)

Solve the following recurrence relations.

1T(n) = 2T(n/2) + n
2T(n) = T(n-1) + n
7 Marks
OR OPTION
(b)
Prove that Hamiltonian problem is NP-Complete problem.
7 Marks

Question 3

14 MarksMedium
(a)

Solve sorting problem using divide and conquer strategy and show its working applying steps on the array [27, 45, 90, 12, 5, 60].

7 Marks
(b)

Solve following knapsack problem using greedy method. Knapsack capacity = 60 kg.

ItemWeightValue
A530
B2277
C1040
D1545
7 Marks
OR OPTION
(a)
1Illustrate the operation of BUILD-MAX-HEAP on the array A = (5, 3, 17, 10, 84, 19, 6, 22, 9).
2Illustrate the operation of HEAPSORT on the array A = (5, 13, 2, 25, 7, 17, 20, 8, 4).
1)Illustrate the operation of BUILD-MAX-HEAP on the array A = (5, 3, 17, 10, 84, 19, 6, 22,
9). 2. Illustrate the operation of HEAPSORT on the array A = (5, 13, 2, 25, 7, 17, 20, 8,
4).
7 Marks
(b)

Explain how assembly line scheduling problem can be solved using dynamic programming method.

7 Marks

Question 4

14 MarksMedium
(a)

Solve the following instance of making change problem using dynamic programming method. N=Rs. 8, Coins: Rs. 1, Rs. 4, Rs.

7 Marks
(b)
Write depth first search algorithm and show its execution on a sample graph.
7 Marks
OR OPTION
(a)

Solve the following instance of making change problem using greedy method. N=Rs. 8, Coins: Rs. 1, Rs. 4, Rs.

7 Marks
(b)
Write breadth first search algorithm and show its execution on a sample graph.
7 Marks

Question 5

14 MarksMedium
(a)

Apply and illustrate how 8-Queen problem can be solved using backtracking method.

7 Marks
(b)

Write Naïve string matching algorithm. Apply it to the pattern P = 0001 and the text T = 000010001010001. Compute the number of comparisons required to find pattern P in the text T.

7 Marks
OR OPTION
(a)
Find all the connected components from the following graph.
7 Marks
(b)

Define NP-Complete problem. Define class P and class NP. List the problems that fall under classes P, NP and NPC.

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 (Summer 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