Analysis and Design of Algorithms (BCS401) Question Bank: Module-1
Analysis and Design of Algorithms (BCS401) Question Bank: Module-1
Question Bank
Module-1
1. What is an algorithm?
2. Explain asymptotic notations with examples.
3. Explain different aspect in designing and analyzing an algorithm with neat diagram.
4. Design recursive algorithm for computing factorial of a positive number and analyze the efficiency of algorithm.
5. Explain different aspect in designing and analyzing an algorithm with neat diagram.
6. Design a selection sort algorithm to sort n numbers and apply this algorithm to sort the following numbers in ascending
order. 80, 40, 60, 90, 20, 30 and 10.
7. Design a 2 X 2 matrix multiplication non-recursive algorithm with example and analyze the time efficiency.
8. Explain brute-force string matching algorithm with example.
9. Explain the general plan for analyzing the time efficiency of recursive algorithm with an example.
10. Design a bubble sort algorithm to sort n numbers and apply this algorithm to sort the following numbers in ascending order.
80, 40, 60, 90, 20, 30 and 10.
Module-2
1. Define Exhaustive Search.
2. Explain the concept of divide and conquer. Design an algorithm for merge sort and derive its time complexity.
3. Explain Strassen’s matrix multiplication and derive its time complexity.
4. Explain how exhaustive search can be applied to traversing salesman problem to find shortest Hamiltonian circuit of the
given graph.
8. Apply exhaustive method to obtain an optimal solution to the knapsack problem given W=10, w1 = 7, w2 = 3, w3 = 4 and w4
= 5, v1 = 42, v2 = 12, v3 = 40 and v4 = 25. Find total profit earned.
9. Design binary tree traversals using recursive algorithm and analyze the algorithm efficiency.
10. Explain brute-force string matching algorithm with example.