RTUComputer ScienceYr 2024 · Sem 5

Design and Analysis of Algorithms

22 questions

Q14 marks

Explain Heap Sort algorithm and its time complexity.

Show Answer
Q24 marks

Describe Prim's Algorithm for Minimum Spanning Tree with an example.

Show Answer
Q34 marks

Explain the activity selection problem using the Greedy approach.

Show Answer
Q44 marks

Discuss the Longest Common Subsequence (LCS) problem using Dynamic Programming.

Show Answer
Q54 marks

Explain the concept of Graph Coloring and Hamiltonian Cycle.

Show Answer
Q64 marks

Describe the Subset Sum problem using Backtracking.

Show Answer
Q74 marks

Explain the concept of String Matching algorithms (Naive and KMP).

Show Answer
Q110 marks

(a) Explain the Strassen's Matrix Multiplication algorithm in detail.

(b) Compare Strassen's algorithm with the conventional matrix multiplication and analyze its time complexity.

Show Answer
Q210 marks

(a) Explain the All-Pairs Shortest Path problem using the Floyd-Warshall algorithm.

(b) Solve a given weighted graph using the Floyd-Warshall algorithm with a suitable example.

Show Answer
Q310 marks

(a) Explain the concept of Huffman Coding using the Greedy approach.

(b) Construct the Huffman tree and derive codes for a given set of characters with their frequencies.

Show Answer
Q410 marks

Explain the concept of Dynamic Programming in detail. Solve the 0/1 Knapsack problem and the Coin Change problem with examples.

Show Answer
Q510 marks

(a) Explain the concept of Approximation Algorithms.

(b) Discuss the Vertex Cover Problem and the Travelling Salesman Problem (TSP) approximation algorithms.

Show Answer