Uh oh!
There was an error while loading. Please reload this page.
Add Binomial Heap - #1146
Conversation
Implementation of Binomial Heap. Reference: Advanced Data Structures, Peter Brass
- Fuller documentation of binomial heap - Update unit tests - Replace printing method by overwriting __str__()
cclauss
left a comment
There was a problem hiding this comment.
Please add doctests and/or type hints.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Added more tests - Added to the documentation - Stylistic editing - mergeHeaps now also returns a reference to the merged heap - added a preOrder function that returns a list with the preorder of the heap
cclauss
commented
Sep 4, 2019
Looks good to me but still needs to appear in our tests |
KirilBangachev
commented
Sep 4, 2019
Would it help if I add some doctests in addition to the unit tests? |
Or get the unittests to be recognized by pytest. |
Changed the unit tests structure
cclauss
left a comment
There was a problem hiding this comment.
Nice work! Thanks for your persistence.
* Binomial Heap Implementation of Binomial Heap. Reference: Advanced Data Structures, Peter Brass * Update binomial_heap.py * Update binomial_heap.py * Update binomial_heap.py - Fuller documentation of binomial heap - Update unit tests - Replace printing method by overwriting __str__() * Update binomial_heap.py - Added more tests - Added to the documentation - Stylistic editing - mergeHeaps now also returns a reference to the merged heap - added a preOrder function that returns a list with the preorder of the heap * Update binomial_heap.py Changed the unit tests structure * Turned the tests into doctests
Implementing the binomial heap data structure.
Reference: Advanced Data Structures, Peter Brass