Binary Heap: Extract Max seems wrong: O(n log(n)) #5
Comments
Incidentally, this seems to be correct on bigocheatsheet.com. |
jade-42
added a commit
to jade-42/bigoref
that referenced
this issue
Sep 21, 2017
Corrected binary heap Big O per josem#5 and https://en.wikipedia.org/wiki/Binary_heap#Extract
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bigoref.com lists the average time complexity of Extract Max for a Binary Heap as O(n log(n)), but it should apparently be O(log(n), as it is on bigocheatsheet.com and in wikipedia:
https://en.wikipedia.org/wiki/Binary_heap#Extract
The other time complexities for binary heap seem wrong too. And for Binomial Heap too, I think,
The text was updated successfully, but these errors were encountered: