Heap Sort Implementation

GTU ADA Practical – 3 Implementation of max-heap sort algorithm #include #include int size; void max_heapify(int *, int); void build_max(int *); void heapsort(int *); int heap_size; void main() { printf(“Enter size of arrayn”); scanf(“%d”, &size); int a[size], i, j, p, k = size – 1; printf(“Enter %d elements in arrayn”, size); for (i = 0; […]