• <noscript id="y4y0w"><source id="y4y0w"></source></noscript>
    <table id="y4y0w"><option id="y4y0w"></option></table>
  • <li id="y4y0w"></li>
    <noscript id="y4y0w"></noscript>
    <noscript id="y4y0w"><kbd id="y4y0w"></kbd></noscript>
    <noscript id="y4y0w"><source id="y4y0w"></source></noscript>
    <menu id="y4y0w"></menu>
    <table id="y4y0w"><rt id="y4y0w"></rt></table>
  • 李輝華. 關于數據分類的一個新的有效算法[J]. 工程科學學報, 1985, 7(3): 90-95. DOI: 10.13374/j.issn1001-053x.1985.03.022
    引用本文: 李輝華. 關于數據分類的一個新的有效算法[J]. 工程科學學報, 1985, 7(3): 90-95. DOI: 10.13374/j.issn1001-053x.1985.03.022
    Li Huihua. A New Efficient Algorithm For Internal Sorting[J]. Chinese Journal of Engineering, 1985, 7(3): 90-95. DOI: 10.13374/j.issn1001-053x.1985.03.022
    Citation: Li Huihua. A New Efficient Algorithm For Internal Sorting[J]. Chinese Journal of Engineering, 1985, 7(3): 90-95. DOI: 10.13374/j.issn1001-053x.1985.03.022

    關于數據分類的一個新的有效算法

    A New Efficient Algorithm For Internal Sorting

    • 摘要: 本文提出了一種新的分類算法,該算法特別適用于分類元素關鍵字值重復性較高的元素集。新算法采用了我們稱之為單指針隊列移動的思想,通過掃描全部元素一遍或二遍便將其分類完。當對關鍵字值僅有M種的共N個元素分類時,新算法的排序效率,即總的比較次數為O(N LOG2M),元素總移動次數為O(MN),所需附加空間為M個指針單元和M個存關鍵字值單元。在極端情況下,即M與N相等時,以上時空效率的形式不改變。
      約定:若元素a和b具有相同的關鍵字值,則稱元素a和b是同類元素。反之,亦然。

       

      Abstract: In this paper,a new internal sorting algorithm is presented which is especially suited for sorting record set in which the total number of key values is much smaller than that of records Viz.many records have the same value. If we assume the total number of records to be sorted is N and the total number of key values is M,the sorting efficiency-the total number of comparisons-of classical algorithms (e. g. quicksort,heapsort) is O(N·log2N), unrelated to M. Under the same assumption,the sorting efficiency of the new algorithm presented in this paper that uses one kind of queue with single pointer data structure, through two passes, is 2·N·log2M.If some conditioing are added,only one pass is needed and the efficiency is N·log2M.The moving total number of the new algorithm is N·M/4,and the extra memory space required is M,pointers and M key value locations.

       

    /

    返回文章
    返回
  • <noscript id="y4y0w"><source id="y4y0w"></source></noscript>
    <table id="y4y0w"><option id="y4y0w"></option></table>
  • <li id="y4y0w"></li>
    <noscript id="y4y0w"></noscript>
    <noscript id="y4y0w"><kbd id="y4y0w"></kbd></noscript>
    <noscript id="y4y0w"><source id="y4y0w"></source></noscript>
    <menu id="y4y0w"></menu>
    <table id="y4y0w"><rt id="y4y0w"></rt></table>
  • 啪啪啪视频