Professional Documents
Culture Documents
Daa 03 11 2023
Daa 03 11 2023
Q1.Define 0/1 Knapsack Problem. Solve the following given instance Using Greedy
Approach. Is this solution Optimal? Capacity of Item Weight Value
Knapsack is 50. 1 10 60
2 20 100
Q2. Describe an algorithm to sort n given integers in the 3 30 120
range 1 to k in O(n+k) processing time.
Q3. Distinguish between divide-and-conquer and dynamic programming with suitable examples.
Q4. What do you mean by complexity? Explain space and time complexity of a program.
Page 1 of 1