J4 ›› 2014, Vol. 36 ›› Issue (A2): 273-275.
• 论文 • Previous Articles Next Articles
FENG Guanghui,CHEN Shoukong
Received:
Revised:
Online:
Published:
Abstract:
In this paper,we firstly describe several common sorting methods,analyze their merits and shortcomings,and then propose some sorting methods which can determine the final position of at least one element during each trip of sorting.We discuss heapsort algorithm and quicksort algorithm in particular.Through the comparison of these methods,it shows that the quicksort is often better than heapsort when finding out the first several elements among a large number of elements.
Key words: sort;heapsort;quicksort
FENG Guanghui,CHEN Shoukong. Sorting methods for selecting the top k(k〈〈n)elements in a set of n elements [J]. J4, 2014, 36(A2): 273-275.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2014/V36/IA2/273