Design and Analysis of Algorithms Questionbank
Design and Analysis of Algorithms Questionbank
) Computer Science
DESIGN AND ANALYSIS OF ALGORITHMS QUESTION BANK
UNIQUE PAPER CODE: 32341401
1
23. What is knapsack problem? State knapsack problem formally.
24. Distinguish Greedy method and Dynamic Programming.
25. Define spanning tree. Compute a minimum cost spanning tree for the graph of figure using
kruskal’s algorithm.
26. What is back tracking? Where Back tracking is used to solve the problem.
27. What is the difference between 0/1 Knapsack problem and fractional Knapsack problem.
28. Explain the Quick Sort algorithm with an example and also draw the tree structure of the recursive
calls made.
29. Explain the Merge Sort algorithm with an e.g. and also draw the tree structure of the recursive calls
made.
30. Give the Binary search algorithm and analyze the efficiency.
31. Write an algorithm of BFS? Also give an example.
32. Write an algorithm of DFS? Also give an example.
33. Explain the various criteria used for analyzing algorithms.
34. List the properties of various asymptotic notations.
35. What is the average case complexity of linear search algorithm?
36. Differentiate dynamic programming and divide and conquer.
37. State the time complexity of bubble sort algorithm.
38. Apply backtracking technique to solve the following instance of the subset sum problem S =
[1,3,4,5} and d=11 16
39. Explain subset-sum problem and discuss the possible solution strategies using backtracking.
40. What is tree edge and cross edge?
41. Define back edge and tree edge.
42. Explain graph coloring.