Skip to content

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

2 participants