Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix partial heap sort #48

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Fix partial heap sort #48

merged 2 commits into from
Nov 22, 2024

Conversation

erikd
Copy link
Owner

@erikd erikd commented Nov 22, 2024

The function partialSortByBounds had an off-by-one error causing all the partial heap sort functions to produce incorrect results.

The off-by-one error was fixed and the prop_partialsort property test was updated to catch this error. Testing the code before the change fails, while after the change passes.

#46

The function `partialSortByBounds` had an off-by-one error causing
all the partial heap sort functions to produce incorrect results.

The off-by-one error was fixed and the `prop_partialsort` property
test was updated to catch this error. Testing the code before the
change fails, while after the change passes.

Closes: #46
@erikd erikd force-pushed the erikd/partial-sort branch from e358592 to 8ca487e Compare November 22, 2024 04:34
@erikd erikd merged commit 88beb68 into master Nov 22, 2024
13 checks passed
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.

1 participant