and
void heapsort (int v[], int n);that sorts the array v[0..n-1] using heap sort. Compile your file together with main.c with:
cc -o main main.c heapsort.cor use a Makefile like:
main: main.o heapsort.oDo not modify main.c; your code should work with main.c as it is on the web page. Turn in a printout of your well commented heapsort.c and the output of the program on the computer of your choice for array sizes of 100000, 1000000 and 10000000, and anywhere you like in between. Make sure you use the same computer for each run. See if you can make your heap sort faster than merge sort by inlining functions like Left and other such tricks.