摘要:
View Code #include <stdio.h>#include <string.h>int parent(int i);int left(int i);int right(int i);void max_heapify(int A[],int i);void bulid_max_heap(int A[]);void heapSort(int A[]);int heapSize=0;int parent(int i){ return i/2;}int left(int i){ return i*2;}int right(int i){ return i*2+1; 阅读全文
posted @ 2012-06-04 14:26
蓝色守望
阅读(122)
评论(0)
推荐(0)

浙公网安备 33010602011771号