Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jorgemf
8y ago
0 comments
Share
> On average case data where no patterns are detected pdqsort is effectively a quicksort that uses median-of-3 pivot selection
So basically is quicksort with a bit more clever pivot selection, but only for some cases.
0 comments
default
newest
oldest
_hrfd
8y ago
You're forgetting probably the most important optimization: block partitioning. This one alone makes it almost 2x faster (on random arrays) than typical introsort when sorting items by an integer key.
j
/
k
navigate · click thread line to collapse