1. 時間複製度,最差與平均時間O(nlog2n)。 2. 只需一額外記錄空間。 3. 為不穩定排序。 【原理】. 1. 。 【演算法】. Heapsort(int A[]) {. int i, m, p, s,t=1;.
確定! 回上一頁