首页 | 本学科首页   官方微博 | 高级检索  
     检索      


On the distribution of comparisons in sorting algorithms
Authors:Dana Richards  Pravin Vaidya
Institution:(1) Dept. of Computer Science, University of Virginia, 22903 Charlottesville, VA, USA;(2) Dept. of Computer Science, University of Illinois, 61801 Urbana, IL, USA;(3) Present address: AT&T Bell Laboratories, 07974 Murray Hill, NJ
Abstract:We considered the following natural conjecture: For every sorting algorithm every key will be involved inOHgr(logn) comparisons for some input. We show that this is true for most of the keys and prove matching upper and lower bounds. Every sorting algorithm for some input will involvenn epsi /2+1 keys in at leastepsilog2 n comparisons,epsi>0. Further, there exists a sorting algorithm that will for every input involve at mostnn epsi/c keys in greater thanepsilog2 n comparisons, wherec is a constant andepsi>0. The conjecture is shown to hold for ldquonaturalrdquo algorithms from the literature.
Keywords:F  2  2
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号