摘要
树排序算法是堆排序算法的变体,本文给出了逻辑堆的结构并将其应用于树排序算法中使得树排序算法的最坏复杂度由原来的4nlogn+O(n)降低到2nlogn+O(nloglogn)+O(n),接近于最优堆排序算法(复杂度为nlogn+nloglogn+O(n),并且对几乎已有序的输入,算法的复杂度为O(nloglogn),这在n<218的实际应用中基本保持了原树排序算法的优势.
Treesort is the variant of heapsort. The data structure called logie heap used in treesort is presented. The worst complexity of new treesort algorithm is reduced from 4nlogn+0(n) to 2nlogn +0(nlogn) +0(n), especially, to 0(nloglogn) for the input of nearly sorted order.
出处
《烟台大学学报(自然科学与工程版)》
CAS
1996年第2期19-23,共5页
Journal of Yantai University(Natural Science and Engineering Edition)