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

Implement MergeSort Algorithm #17

Open
5 tasks
Brad-Edwards opened this issue Dec 31, 2024 · 0 comments
Open
5 tasks

Implement MergeSort Algorithm #17

Brad-Edwards opened this issue Dec 31, 2024 · 0 comments

Comments

@Brad-Edwards
Copy link
Collaborator

Add MergeSort implementation to blocks-cs-sort crate with comprehensive unit tests.

Tasks:

  • Implement MergeSort algorithm
  • Add comprehensive unit tests
  • Add performance tests
  • Add documentation with complexity analysis
  • Review and optimize implementation
Brad-Edwards pushed a commit that referenced this issue Jan 1, 2025
- Add insertion sort optimization for small arrays
- Add recursion depth limit to prevent stack overflow
- Reuse auxiliary array to reduce allocations
- Add iterator implementation
- Add comprehensive test suite:
  - Edge cases (2-3 elements, all same elements)
  - Memory usage verification
  - Recursion depth limit
  - Iterator implementation
  - Mixed positive/negative numbers
  - Integer edge values
  - More thorough stability testing
  - Partially sorted arrays
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