Heap Sort
#include<iostream> #include<conio.h> #define max 50 using namespace std; int array[max]; int add(int x[],int size) { for(int i=2;i<=size;i++) { int child=i; int parent=i/2; while(array[child]>array[parent]&&child>1) //while child node is greater then parent node // and child is not root node. { int temp=array[child]; //Swapping of parent and child if child is greater then its array[child]=array[parent]; //parent node. array...