Stochastic analysis of the merge-sort algorithm

被引:0
|
作者
Cramer, M
机构
[1] University of Freiburg, Inst. für Math. Stochastik, 79104 Freiburg
关键词
contraction method; ideal metrics; Merge-Sort;
D O I
10.1002/(SICI)1098-2418(199708)11:1<81::AID-RSA3>3.0.CO;2-Q
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The number L-k of comparisons performed by the Merge-Sort algorithm to sort 2(k) keys follows the recursion L-k(d) = Lk-1 + <(Lk-1)over bar> + Y-k, where Lk-1, <(Lk-1)over bar>, and Y-k are independent and <(Lk-1)over bar> is a copy of Lk-1. The contraction method for ideal metrics of Rachev and Ruschendorf [7] is appropriate to handle recursions of the above type and to show asymptotic normality of the normalized L-k. Additional challenges have to be faced if the number of keys is not a power of 2. The difficulty lies in the fact that the cases of odd and even numbers differ slightly. Therefore, exact calculations of mean and variance have to be substituted by asymptotic results which are gained with the help of a run of a C-program. But even in that case asymptotic normality can be achieved by a refinement of the contraction principle. (C) 1997 John Wiley & Sons, Inc.
引用
收藏
页码:81 / 96
页数:16
相关论文
共 50 条
  • [21] LENGTH OF STRINGS FOR A MERGE SORT
    KNUTH, DE
    [J]. COMMUNICATIONS OF THE ACM, 1963, 6 (11) : 685 - 688
  • [22] Accelerating the merge phase of sort-merge join
    Papaphilippou, Philippos
    Pirk, Holger
    Luk, Wayne
    [J]. 2019 29TH INTERNATIONAL CONFERENCE ON FIELD-PROGRAMMABLE LOGIC AND APPLICATIONS (FPL), 2019, : 100 - 105
  • [23] Stochastic Analysis of Shell Sort
    R. T. Smythe
    J. Wellner
    [J]. Algorithmica, 2001, 31 : 442 - 457
  • [24] Stochastic analysis of shell sort
    Smythe, RT
    Wellner, J
    [J]. ALGORITHMICA, 2001, 31 (03) : 442 - 457
  • [25] Performance analysis of a parallel sort merge join on cluster architectures
    Schikuta, E
    [J]. DISTRIBUTED AND PARALLEL COMPUTING, 2005, 3719 : 277 - 286
  • [26] The Analysis of Energy Performance in Use Parallel Merge Sort Algorithms
    Marszalek, Zbigniew
    [J]. INFORMATION TECHNOLOGY AND CONTROL, 2019, 48 (03): : 487 - 498
  • [27] Contrastive Analysis of Bubble & Merge Sort Proposing Hybrid Approach
    Cheema, Sehrish Munawar
    Sarwar, Nadeem
    Yousaf, Fatima
    [J]. 2016 SIXTH INTERNATIONAL CONFERENCE ON INNOVATIVE COMPUTING TECHNOLOGY (INTECH), 2016, : 371 - 375
  • [28] SUBLINEAR MERGING AND NATURAL MERGE SORT
    CARLSSON, S
    LEVCOPOULOS, C
    PETERSSON, O
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1990, 450 : 251 - 260
  • [29] Heuristic and pattern based Merge Sort
    Jafarlou, Manouchehr Zadahmad
    Fard, Parisa Yousefzadeh
    [J]. WORLD CONFERENCE ON INFORMATION TECHNOLOGY (WCIT-2010), 2011, 3
  • [30] The Sort-Merge-Shrink Join
    Jermaine, Christopher
    Dobra, Alin
    Arumugam, Subramanian
    Joshi, Shantanu
    Pol, Abhijit
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2006, 31 (04): : 1382 - 1416