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


A killer adversary for quicksort
Authors:M D McIlroy
Abstract:Quicksort can be made to go quadratic by constructing input on‐the‐fly in response to the sequence of items compared. The technique is illustrated by a specific adversary for the standard C qsort function. The general method works against any implementation of quicksort – even a randomizing one – that satisfies certain very mild and realistic assumptions. Copyright © 1999 John Wiley & Sons, Ltd.
Keywords:quicksort  adversary  quadratic behavior  worst case  pivot choice  partition element
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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