ADA Unit 2 Assignment
ADA Unit 2 Assignment
FACULTY OF ENGINEERING
ASSIGNMENTS
5TH SEMESTER
WINTER-2024
BHAGWAN MAHAVIR UNIVERSITY
FACULTY OF ENGINEERING
COMPUTER/IT ENGINEERING DEPARTMENT
5TH SEM
ASSIGNMENTS
Page 1 of 3
BHAGWAN MAHAVIR UNIVERSITY
FACULTY OF ENGINEERING
COMPUTER/IT ENGINEERING DEPARTMENT
5TH SEM
ASSIGNMENTS
2. Write a Merge sort algorithm and compute its worst case and best-case time
complexity. Sort the List G, U, J, A, R, A, T in alphabetical order using merge sort.
3. Illustrate the working of the quick sort on input instances: 25, 29, 30, 35, 42, 47, 50,
52, and 60. Comment on the nature of input i.e. best case, average case or worst
case.
4. Explain the use of Divide and Conquer Technique for Binary Search Method. What
is the complexity of the Binary Search Method? Explain it with an example.
5. Write pseudocode for Strassen’s algorithm. Use it to compute the matrix product
.
Bonus Problem:
Asymptotic behavior of functions
************
Page 2 of 3