Define Recurrence Relation.
Design and Analysis of Algorithms
22 questions
What is Space Complexity?
Define Heap.
What is Amortized Analysis?
Define Graph Traversal.
What is Optimal Substructure?
Define Branch and Bound.
What is a Randomized Algorithm?
Define Approximation Algorithm.
What is Floyd-Warshall Algorithm?
Explain Heap Sort algorithm and its time complexity.
Describe Prim's Algorithm for Minimum Spanning Tree with an example.
Explain the activity selection problem using the Greedy approach.
Discuss the Longest Common Subsequence (LCS) problem using Dynamic Programming.
Explain the concept of Graph Coloring and Hamiltonian Cycle.
Describe the Subset Sum problem using Backtracking.
Explain the concept of String Matching algorithms (Naive and KMP).
(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.
(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.
(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.
Explain the concept of Dynamic Programming in detail. Solve the 0/1 Knapsack problem and the Coin Change problem with examples.
(a) Explain the concept of Approximation Algorithms.
(b) Discuss the Vertex Cover Problem and the Travelling Salesman Problem (TSP) approximation algorithms.