数学 > 组合数学
[提交于 2016年2月12日 (v1),最后修订于 2016年5月11日 (此版本, v2)]
标题:Counting Zeros in Random Walks on the Integers and Analysis of Optimal Dual-Pivot Quicksort
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present an average case analysis of two variants of dual-pivot quicksort, one with a non-algorithmic comparison-optimal partitioning strategy, the other with a closely related algorithmic strategy. For both 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.