DAA
DAA
3. Solve the recurrence relation: T(n) = T(n/2) + 1 using the recursion tree method.
8. Describe the 0/1 Knapsack problem and show how it is solved using dynamic programming.
9. Write a brief note on heuristics and their characteristics.
10. Illustrate the brute-force method using the Travelling Salesman Problem (TSP).
13. Describe Kruskal’s algorithm for finding a minimum spanning tree. Write its pseudocode.
1. Discuss the characteristics of an algorithm and explain the performance measurements used to
evaluate it.
Master’s theorem
3. Discuss the application of the greedy strategy to the fractional knapsack problem with a step-by-
step solution.
4. Solve the 0/1 Knapsack problem using dynamic and explain the steps.
5. Describe the branch-and-bound strategy with an illustration of how it applies to solving TSP.
6. Explain BFS and DFS traversal techniques. Illustrate both with examples.
7. Describe Dijkstra’s algorithm for finding the shortest path and trace it for a given graph.
8. What is NP-complete problems? Explain with any two standard NP-complete examples and the
idea of reduction.
9. What do you mean by Huffman coding? Consider the following message and find no of bits
required by Huffman Coding.
aabbbbabbbcccdddeeeccceeeddee
10. Why Dijkstra’s algorithm fails. Explain Bellman Ford Algorithm with the help of example and
pseudocode.
Str1 = s t o n e
Str 2 = l o n g e s t.
12. Discuss approximation and randomized algorithms in detail with one example each. Also,
comment on their importance in solving intractable problems.