#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXLEN 100000 void up(int* heap, int top) { int temp; while (heap[top] > heap[(top - 1) / 2]) { temp = heap[top]; heap[top] = heap[(top - 1) / 2]; heap[(top - 1) / 2] = temp; ...