DEPARTMENT OF MATHEMATICS
DATA STRUCTURE AND ALGORITHMS
Max Mark: 50 marks
Section A – (5 * 2 = 10 marks)
Answer ALL the questions
1. Define Algorithm
2. Explain the usage of Stack in recursive algorithm implementation
3. Define Binary Search.
4. Explain Knapsack problem.
5. What is graph coloring? Explain with an example.
Section B - (5 * 5 = 25 marks)
Answer ANY 5 Questions
6. Give an algorithm to find Merge sort with an example.
7. Define stack. Explain the usage of stack with an algorithm.
8. Prove Kruskal’s algorithm generates a minimum cost spanning tree.
9. Give an algorithm to find shortest path in a graph.
10. Brief the procedure for the sum of subsets problem.
11. Explain in brief Hamiltonian cycle problem.
Section C – (1 * 15 = 15 marks)
Answer ANY 1 Question
12. Explain how Queue can be implemented using arrays
13. State and explain the algorithm to perform Quick sort. Analyse the time complexity of the
algorithm.
14. Discuss about the 8 queens problems with suitable example.