Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jorgemf
9y ago
0 comments
Save
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
1 comments · 1 top-level
top
newest
oldest
_hrfd
9y 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