Assignment
Assignment
Engineering Research
CE, CSE & ICT Department
Analysis and Design of Algorithms (3150703)
Assignment-1
Mapped Course Outcomes: CO1
1) What is an algorithm? Explain various properties of an algorithm. 04
2) Differentiate function and relation with suitable example. 04
3) Explain why analysis of algorithm is important? Explain: Worst Case, Best Case 07
&Average Case Complexity with suitable example.
4) Explain Big Oh (O), Omega (Ω) and Theta (θ) asymptotic notations. 07
5) Explain bubble sort algorithm with suitable example. 07
6) Explain Selection Sort Algorithm and give its best case, worst case and average 07
casecomplexity with suitable example.
7) Sort given array A = {27, 46, 11, 95, 67, 32, 78} using insertion sort algorithm. 07
Also perform best case and worst case analysis of insertion sort algorithm.
8) Give the properties of Heap Tree. Sort the following data using Heap Sort Method: 07
20, 50, 30, 75, 90, 60, 80, 25, 10, 40.
9) Why amortized analysis is required? Explain any two method of amortized analysis 07
with suitable example.
Assignment-2
Mapped Course Outcomes: CO1, CO2
1) What do you mean by recurrence? Explain different methods to solve recurrence in 07
brief.
2) Analyze quick sort algorithm for best case, average case and worst case with 07
example.
10) Find Longest Common Subsequence using Dynamic Programming Technique with 07
illustration X={A,B,C,B,D,A,B} Y={B,D,C,A,B,A}
Assignment-3
Mapped Course Outcomes: CO3, CO6
1) Explain in brief characteristics of greedy algorithms. Compare Greedy Method with 07
Dynamic Programming Method.
3) Explain Prim’s Algorithm to find Minimum Spanning Tree with example. What is its 07
Time Compexity?
2. Write Naïve string matching algorithm. Find its time complexity and perform string 07
matching for given pattern P = “ACD” Text T = “CACDACAACDAC”
5. Explain Rabin- Carp method for string matching with suitable example. 07
6. Explain Branch and Bound technique with suitable example. 07
7. Explain in Breif: P Problem, NP Problem, NP Hard Problem, NP Complete 04
Problem.
SAL Institute of Technology and Engineering SAL Institute of Technology and Engineering
Research Research