[libcxx-commits] [PATCH] D144538: Checked that complexity of std::sort_heap is 2N log(N) comparisons
Nilay Vaish via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 26 16:53:40 PST 2023
nilayvaish added a comment.
In D144538#4144200 <https://reviews.llvm.org/D144538#4144200>, @philnik wrote:
> Please add a test that counts the number of comparisons to show that it actually only takes 2N log(N) comparisons.
I updated the existing test to test for more lengths at a tighter complexity than what the C++ standard requires.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144538/new/
https://reviews.llvm.org/D144538
More information about the libcxx-commits
mailing list