Q.No.3 012 3 4 56 7 8 9 10 11 A. 1 12 23 10 15 38|45| 15 18 20 21 a) Which array out of A, B and C represents a binary heap? Only one answer is right. 3 9 10 11 b) Write the heap out as a binary tree....


Q.No.3<br>012 3 4 56 7 8 9 10 11<br>A. 1 12 23 10 15 38|45| 15 18 20 21<br>a) Which array out of A, B and C represents a<br>binary heap? Only one answer is right.<br>3<br>9 10 11<br>b) Write the heap out as a binary tree.<br>B= 18 27 10 45 83 91 31 12 52 51<br>01 2 3 45 6 7 8 9 10 1<br>C: 1 13 20 21 65 54 67 41 30 83 52<br>c) Add last 2 digit of your arid no (Take 4 and<br>9). to the heap, making sure to restore the<br>heap invariant. How does the array look<br>now?<br>

Extracted text: Q.No.3 012 3 4 56 7 8 9 10 11 A. 1 12 23 10 15 38|45| 15 18 20 21 a) Which array out of A, B and C represents a binary heap? Only one answer is right. 3 9 10 11 b) Write the heap out as a binary tree. B= 18 27 10 45 83 91 31 12 52 51 01 2 3 45 6 7 8 9 10 1 C: 1 13 20 21 65 54 67 41 30 83 52 c) Add last 2 digit of your arid no (Take 4 and 9). to the heap, making sure to restore the heap invariant. How does the array look now?

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here