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

bucket sort: worst case space is wrong? #4

Closed
murraycu opened this issue Feb 15, 2016 · 2 comments
Closed

bucket sort: worst case space is wrong? #4

murraycu opened this issue Feb 15, 2016 · 2 comments

Comments

@murraycu
Copy link

murraycu commented Feb 15, 2016

bigoref.com has the worst case space for bucket sort as O(n + k). Wikipedia lists it as O(nk), which makes more sense to me:
https://en.wikipedia.org/wiki/Bucket_sort

@murraycu
Copy link
Author

murraycu commented Feb 24, 2016

By the way, bigocheatsheet.com lists it as O(n), which I guess is not quite wrong, being a simplification of O(nk).

@josem
Copy link
Owner

josem commented May 31, 2016

Yeah, that's totally right, sorry! It should be fixed now :)

@josem josem closed this as completed May 31, 2016
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

No branches or pull requests

2 participants