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

Randomizer #30

Open
tkram01 opened this issue Apr 23, 2020 · 3 comments
Open

Randomizer #30

tkram01 opened this issue Apr 23, 2020 · 3 comments

Comments

@tkram01
Copy link

tkram01 commented Apr 23, 2020

Could this be modified to randomize huge files instead of sort them much like "sort -R" does?

@lemire
Copy link
Owner

lemire commented Apr 23, 2020

Yes. The sort of the blocks should become a shuffle and then we need some slightly tricky merge process (not hard but it needs to be done well).

If you are interested, I can help with the algorithm.

It is probably about 20, 30 lines of code in the end.

@tkram01
Copy link
Author

tkram01 commented Apr 23, 2020

Yes - I'm happy to work on it with some guidance on the merge process. Thanks!

@lemire
Copy link
Owner

lemire commented Apr 23, 2020

@tkram01 Great. So I suggest you start by forking the project. Create a new class that looks like the existing sorted, give it a good name. Then ping me (just write @lemire in an issue within your fork).

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