Skip to content

Add two missing cases in delMin BinomialHeaps.cpp#10

Merged
Bibeknam merged 1 commit intoBibeknam:masterfrom
sihatafnan:patch-1
Dec 20, 2020
Merged

Add two missing cases in delMin BinomialHeaps.cpp#10
Bibeknam merged 1 commit intoBibeknam:masterfrom
sihatafnan:patch-1

Conversation

@sihatafnan
Copy link
Copy Markdown
Contributor

You missed two cases in deleteMin.
when the minPtr has no sibling before or after i.e. there is only a single tree in the heap
and
when minPtr is the head of the heap and it has at least one sibling(i.e. there are multiple trees)

You missed two cases in deleteMin.
when the minPtr has no sibling before or after i.e. there is only a single tree in the heap
and
when minPtr is the head of the heap and it has at least one sibling(i.e. there are multiple trees)
@Bibeknam Bibeknam merged commit 11ef340 into Bibeknam:master Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants