Skip to content

Add timsort implementation in ANSCI C #245

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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

andersonhsporto
Copy link
Contributor

Implemented the Timsort algorithm, which is a hybrid sorting algorithm combining merge sort and insertion sort. This commit adds functions for detecting run lengths, insertion sorting individual runs, and merging runs in the Timsort algorithm. It also includes a sample array and demonstrates the sorting of the array using Timsort, printing both the original and sorted arrays for verification.

@andersonhsporto andersonhsporto changed the title add timsort implementation in ANSCI C Add timsort implementation in ANSCI C Oct 9, 2023
@kelvins kelvins merged commit 070cc66 into kelvins:main Oct 11, 2023
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

Successfully merging this pull request may close these issues.

2 participants