GTU 3150703 Analysis and Design of Algorithms (ADA) Summer 2026 Paper Solution & PDF
Question 2
Perform Counting Sort on the input array A = [4, 2, 2, 8, 3, 3, 1]. Show all steps counting array, cumulative count, and the final sorted output.
Question 3
Explain the Principle of Optimality in Dynamic Programming with a suitable example.
Explain the Huffman Coding algorithm with a suitable example and construct the Huffman Tree.
Weights = [2, 3, 4, 5], Values = [3, 4, 5, 6], Capacity = 5.
State and explain the basic characteristics of problems that can be solved using Dynamic Programming.
Describe the Knapsack Problem and mention why the Greedy approach works for the fractional version but not for the 0/1 version.
For the two strings X = AGGTAB and Y = GXTXAYB, find the Longest Common Sub-sequence using Dynamic Programming.
Question 4
Explain the basic concepts of graphs with suitable examples. Differentiate between directed and undirected graphs.
Vertices: A, B, C, D, E Edges: (A, B), (A, C), (B, D), (C, D), (D, E). Write the order of traversal.
Vertices = {A, B, C, D, E} Edges with weights: A-B: 2, A-C: 3, B-C: 1, B-D: 4, C-E: 5, D-E: 2.
Explain the Breadth First Search (BFS) algorithm. Illustrate the traversal process using an example graph.
Find one possible topological ordering for the directed graph with edges: (5→2),(5→0), (4→0), (4→1), (2→3), (3→1).Given items with weights (w) and profits (p): Item 1: (w=10, p=60), Item 2: (w=20, p=100), Item 3: (w=30, p=120), Capacity (W)=50. Solve using the Greedy method based on profit/weight ratio.
Question 5
Discuss the Eight Queens Problem in detail. Write the backtracking algorithm and demonstrate the solution process.
For the Rabin-Karp algorithm, given T = '31415926535', P = '26', base d = 10, and prime q = 13: Compute hash values of pattern and first few text substrings. Identify matching positions.
Describe the Travelling Salesman Problem (TSP). Why is it considered NP-hard? Discuss any one approximation algorithm for TSP.
Explain the Travelling Salesman Problem (TSP) using the Branch and Bound approach with a suitable example.
Given text T = 'AABAACAADAABAABA' and pattern P = 'AABA', trace the Knuth- Morris-Pratt algorithm execution step-by-step. Show all comparisons and matched positions.
Explain the class P SPACE and how it differs from P and NP. Provide suitable examples of P SPACE problems.
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) (Summer 2026, 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.