DAA Assignment 2 (23 27 Batch)
DAA Assignment 2 (23 27 Batch)
Assignment-2[CO2]
Section-A
Answer All Questions
Section-B
Answer All Questions
1. Write an algorithm for Selection Sort and analyze its Time Complexity.
[6 marks][L2]
2. Write an algorithm for BFS and apply BFS on given Graph. [6 marks][L3]
A B F
C D E
Section-C
Answer All Questions
1. What is Heap Data Structure? Write a procedure for MAX-HEAPIFY and apply Heap
Sort on array A=<5,3,17,10,84,19,6,22> [10 marks][L3]
2. Write an algorithm for Quick Sort. Analyze its Time Complexity. Apply Quick
Sort on array A=< 5,3,17,10,84,19,6,22> [10 marks][L3]