Function to perform heapsort on the given range of elements
| 73 | |
| 74 | // Function to perform heapsort on the given range of elements |
| 75 | void heapsort(int *begin, int *end) |
| 76 | { |
| 77 | make_heap(begin, end); |
| 78 | sort_heap(begin, end); |
| 79 | } |
| 80 | |
| 81 | // Function to perform introsort on the given array |
| 82 | void introsort(int a[], int *begin, int *end, int maxdepth) |