Professional Documents
Culture Documents
Cs502 Assignment 2 Solution Spring 2021
Cs502 Assignment 2 Solution Spring 2021
Cs502 Assignment 2 Solution Spring 2021
Assignment no 2
BC190301751
Question no 1
Solution:-
K, N, L, D, S, D, Q, R
K, N, L, D S, D, Q, R
S, D Q, R
K, N L, D
D, D, K, L, N, Q , R, S
D, K, L, N D, Q, R, S
For the given array, draw the final Max-Heap structure. Show a final single three only.
Steps are not required.
43 12 23 2 55 11 7 33 60 32
Solution:-
60
55 23
43
32
11
7
2
33
12