-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compexity of algorithm using detail::partition
I was under the impression that std::partition (and our stolen implementation thereof) ran in O(n log n) time on forward iterators, but reading about Lotumo partitioning led me to double-check and realize that it actually runs in O(n) time. This changes the time complexity of quick_sort and quick_merge_sort for forward iterators.
- Loading branch information
Showing
2 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters