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

Radixsort non-comparative sort #1

Open
seahrh opened this issue Feb 17, 2018 · 0 comments
Open

Radixsort non-comparative sort #1

seahrh opened this issue Feb 17, 2018 · 0 comments
Assignees

Comments

@seahrh
Copy link
Owner

seahrh commented Feb 17, 2018

Radixsort O(nw) will be faster than comparative sorts O(n lg n) if w < lg n.

  • If n = 1K, lg n ~=10
  • If n = 1M, lg n ~= 20
  • If n = 1B, lg n ~= 30

Use case: sort Unix time for 2038-12-31T00:00:00 is 2177366400 (10 digits).

See https://www.unixtimestamp.com/index.php

User inputs character set and its ordering in a list.

Provide default implementation for alphanumeric case-insensitive, based on Java regex

[_,0-9,a-z]

See https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html

Interface NonComparativeSort

@seahrh seahrh self-assigned this Feb 17, 2018
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

1 participant