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

Request: QuickSort (or any other more efficient alternative to MergeSort) #54

Open
robin-aws opened this issue Sep 14, 2022 · 1 comment · May be fixed by #58
Open

Request: QuickSort (or any other more efficient alternative to MergeSort) #54

robin-aws opened this issue Sep 14, 2022 · 1 comment · May be fixed by #58
Assignees

Comments

@robin-aws
Copy link
Member

Follow-up from #49, which will close #39 but uses my quick-and-dirty-but-correct MergeSort from https://github.com/dafny-lang/dafny-reportgenerator/blob/main/src/StandardLibrary.dfy#L38. That code is actually very inefficient at runtime because it relies on s[..1] slices which currently impose a full copy.

I'd personally be happy with anything based on arrays instead of sequences, but as per #39 https://en.wikipedia.org/wiki/Timsort may be an even better option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants