Quicksort vs. Shell
|
06-17-2014, 06:51 PM
Post: #11
|
|||
|
|||
RE: Quicksort vs. Shell
(06-17-2014 06:07 PM)Claudio L. Wrote: So log2(N) is a best-case scenario, N-1 is the worst-case, and in reality it's somewhere in between. Even with more advanced pivot picking techniques, there's always the chance that a wickedly-sorted list makes you hit the worst case. At every step you split the set in two halves, and if you sort the smaller half first you'll need at most log2(N) stack size. Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)