00:01
Question is in two parts.
00:02
For part a, we need to construct the bottom of heap construction.
00:11
So, for this there are steps like insert 20, you have to write 20.
00:16
Second, insert 20 to the, insert 12 to the left of 20.
00:23
So, this is now step 3, here left of 20.
00:32
Step 3, insert 35 to right of 12.
00:36
So, this is 12, 20, 35.
00:41
Step 4, insert 19 to the left of 12, this 19, 35.
00:51
Fifth, insert 7 to the right of 19, so 12, 19, 35, 7, 20.
01:03
Further, we can write it here the next steps.
01:07
At step 6, continue inserting the rest of elements.
01:12
So, it will be 12, 19, 35, this is 20, 7, 10, 15, 24, 16, this is 39 and 5.
01:27
Now, at the 7th, remove minimum 1.
01:31
Now, perform the task of remove.
01:34
So, remove minimum 1, that is remove 7.
01:39
So, it will be 12, 19, 35, 20, 16, 10, 15, 24, 39.
01:51
Further, at step 8, remove 10...