13514268541041808003

Page 4

Ans:

6. (10%) An unsorted sequence 26, 5, 77, 1, 61, 11, 59, 15, 48, 19 is stored in an array and to be sorted in increasing order. Write the contents of the array in the first two passes of heap sort. Ans : Input: 26

5

77

1

61

11

59

15

48

19


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.