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

Choose better sorting and priority queue algorithms #3

Open
1 of 3 tasks
pczarn opened this issue May 18, 2016 · 2 comments
Open
1 of 3 tasks

Choose better sorting and priority queue algorithms #3

pczarn opened this issue May 18, 2016 · 2 comments

Comments

@pczarn
Copy link
Owner

pczarn commented May 18, 2016

  • Gather statistics about the order of item arrays to better choose algorithms.
  • Implement an unstable, O(n log n) time, constant space sorting algorithm that work fast on small and medium-sized arrays -- probably a combination of pattern-defeating quicksort and insertion sort.
  • Implement a special case for the priority queue that works fast on small arrays of tiny elements. For example, on up to 32 byte-sized elements.
@pczarn
Copy link
Owner Author

pczarn commented Dec 4, 2020

The Rust standard library already uses efficient sorting algorithms such as unstable pdqsort. Fortunately, our sort can be unstable.

@pczarn
Copy link
Owner Author

pczarn commented May 15, 2024

Let's use a branchless binary search algorithm.

@pczarn pczarn added the P-low label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant