• 中国精品科技期刊
  • CCF推荐A类中文期刊
  • 计算领域高质量科技期刊T1类
Advanced Search
Yang Lei and Song Tao. The Array-Based Bucket Sort Algorithm[J]. Journal of Computer Research and Development, 2007, 44(2): 341-347.
Citation: Yang Lei and Song Tao. The Array-Based Bucket Sort Algorithm[J]. Journal of Computer Research and Development, 2007, 44(2): 341-347.

The Array-Based Bucket Sort Algorithm

More Information
  • Published Date: February 14, 2007
  • Classical bucket sort algorithm implements buckets as dynamic lists. It sorts uniform data efficiently within O(N) time but degrades to the inefficient O(N\+2) insertion sort when handling extremely-nonuniform data. By analyzing counting sort with extra data, a method is presented to implement the buckets as sequential arrays. The efficiency is improved directly by avoiding the complex operations of dynamic memory allocation. Furthermore, O(N log N) algorithms like quicksort may be employed to manage each bucket. The composed algorithm still sorts uniform data within O(N) time but simply degrades to the original O(N log N) algorithm in the worst case. In general case, it is proved that the composed bucket sort algorithm always achieves better performance. Experiments on uniform data show the superiorities of the bucket sort algorithms, and that the array-based bucket sort algorithm beats the classical algorithm. In experiments with Gaussian data, the non-uniformity influences the array-based algorithm much less than the classical algorithm where both outperform the quicksort.
  • Related Articles

    [1]Kong Hao, Lu Wenyan, Chen Yan, Yan Guihai, Li Xiaowei. Survey of Sort Acceleration Methods on FPGA[J]. Journal of Computer Research and Development, 2024, 61(3): 780-798. DOI: 10.7544/issn1000-1239.202220789
    [2]Shi Song, Li Hongliang, Zhu Wei. Efficient Merge Sort Algorithms on Array-Based Manycore Architectures[J]. Journal of Computer Research and Development, 2016, 53(2): 362-373. DOI: 10.7544/issn1000-1239.2016.20148246
    [3]Wang Tong, Jiang Haitao, Zhu Daming. A New Lower Bound for the Distance of Sorting Permutations by Short Block Moves[J]. Journal of Computer Research and Development, 2015, 52(11): 2622-2627. DOI: 10.7544/issn1000-1239.2015.20148259
    [4]Lu Min, Huang Yalou, Xie Maoqiang, Wang Yang, Liu Jie, Liao Zhen. Cost-Sensitive Listwise Ranking Approach[J]. Journal of Computer Research and Development, 2012, 49(8): 1738-1746.
    [5]Peng Zewu, Tang Yong, Luo Haixia, Pan Yan. Supervised and Transductive Ranking Algorithms with Relational Objects[J]. Journal of Computer Research and Development, 2012, 49(6): 1256-1263.
    [6]Zhang Zhiqiang, Song Weitao, Xie Xiaoqin. An Efficient Ontology Ranking Algorithm—MIDSRank[J]. Journal of Computer Research and Development, 2011, 48(6): 1077-1088.
    [7]Wang Yang, Huang Yalou, Xie Maoqiang, Liu Jie, Lu Min, Liao Zhen. A Multiple Query Dependent Ranking SVM Aggregation Algorithm[J]. Journal of Computer Research and Development, 2011, 48(4): 558-566.
    [8]Hao Fanchang, Luan Junfeng, Zhu Daming, Zhang Peng, and Li Ming. A Faster Algorithm for Sorting Genomes by Reciprocal Translocation, Insertion and Deletion[J]. Journal of Computer Research and Development, 2010, 47(11): 2011-2023.
    [9]Wang Ying, Li Kenli, Li Lang, Li Renfa. A Vertical and Horizontal Multiway Algorithm for Parallel-Merging[J]. Journal of Computer Research and Development, 2006, 43(12): 2180-2186.
    [10]Qin Liangxi, Shi Zhongzhi. SFP-Max—A Sorted FP-Tree Based Algorithm for Maximal Frequent Patterns Mining[J]. Journal of Computer Research and Development, 2005, 42(2): 217-223.

Catalog

    Article views (1011) PDF downloads (999) Cited by()

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return