Lab - Questions
Lab - Questions
Create a program for recursive and non-recursive algorithms and examine the
order of growth from log2n to n!
A=123 B=223
345 145
5 43 643
a b
c d
8. Create a program for the given instance of problem to obtain the optimal
solution for the knapsack problem using Dynamic Programming
Capacity W=5
Character A B C D E -
Probability 0.1 0.5 0.35 0.5 0.4 0.2
10. Create a program using Greedy Techniques to Construct the Huffman’s Tree
& code for the following data
Character m n o p q r
Probability 0.5 0.1 0.4 0.3 0.2 0.5
11. Create a program for N-Queen (5 Queen) problem using Backtracking
12. Create a program to find the optimal solution using Branch and Bound method
for the following assignment problem.
13. Create a program to find the optimal solution using Branch and Bound method
for the following assignment problem.
14. Create a program for recursive and non-recursive algorithms and examine the
order of growth from log2n to n!
15. Write a program using Divide and Conquer Strassen's Matrix Multiplication to
multiply the two square matrices A and B, each of size n x n.
A=123 B=223
345 145
6 43 643
20. Create a program to find the transitive closure of the digraph specified in the
following graph using Warshall's algorithm.
a b
c d
21. Create a program for the given instance of problem to obtain the optimal
solution for the knapsack problem using Dynamic Programming
Capacity W=5
22. Create a program using Greedy Techniques to Construct the Huffman’s Tree
& code for the following data
Character A B C D E -
Probability 0.1 0.5 0.35 0.5 0.4 0.2
23. Create a program using Greedy Techniques to Construct the Huffman’s Tree
& code for the following data
Character m n o p q r
Probability 0.5 0.1 0.4 0.3 0.2 0.5