双枢轴快速排序:最优性、分析和关联格路的零点
Dual-Pivot Quicksort: Optimality, Analysis and Zeros of Associated Lattice Paths
摘要:
我们提出了一个平均的情况下分析的一个变种的双枢轴快速排序。我们表明,所使用的算法划分策略是最佳的,即,它使关键比较的预期数量最小化。对于分析,我们计算的预期数量的比较,以及渐近,特别是,我们提供了精确的表达式的线性,对数,和常数项。一个重要的步骤是在一定的概率模型中分析格路的零点。一路上证明了一个组合身份。
英文摘要:
We present an average case analysis of a variant of dual-pivot quicksort. We show that the used algorithmic partitioning strategy is optimal, i.e., it minimizes the expected number of key comparisons. For the analysis, we calculate the expected number of comparisons exactly as well as asymptotically, in particular, we provide exact expressions for the linear, logarithmic, and constant terms. An essential step is the analysis of zeros of lattice paths in a certain probability model. Along the way a combinatorial identity is proven.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。