優先隊列

#include<stdio.h> #define N 1000 #define INF 999999999 struct node { int size;//堆大小 int length;//數組長度 int num[N]; }; void MAX_HEAPIFY(struct node &H, int i) { //最大堆維護 int l = i * 2;//算出左孩子的下標 i
相關文章
相關標籤/搜索