-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
My use case was 100k items with lots of duplicates. I compared my own Floyd-Rivest implementation, your code, and nth_element. For small lists, nth_element was the fastest, with Floyd-Rivest and quickselect-adaptive both about twice as slow. For large lists, Floyd-Rivest was the fastest, about 30% faster than nth_element. Quickselet-adaptive was actually the slowest, being 20% slower than nth_element.
I guess this isn't necessarily an issue; just information for whoever may be looking for select algorithm implementations.
Metadata
Metadata
Assignees
Labels
No labels