An open API service providing repository metadata for many open source software ecosystems.

GitHub / Cheejyg / Integration-of-Mergesort-and-Insertion-Sort

As a divide-and-conquer algorithm, Mergesort breaks the input array into subarrays and recursively sort them. When the sizes of sub-arrays are small, the overhead of many recursive calls makes the algorithm inefficient. This problem can be remedied by choosing a small value of S as a threshold for the size of sub-arrays. When the size of a sub-array in a recursive call is less than or equal to the value of S, the algorithm will switch to Insertion sort, which is efficient for small input. A pseudocode of the modified Mergesort is given below:

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheejyg%2FIntegration-of-Mergesort-and-Insertion-Sort
PURL: pkg:github/Cheejyg/Integration-of-Mergesort-and-Insertion-Sort

Stars: 5
Forks: 0
Open issues: 0

License: None
Language: C
Size: 1.02 MB
Dependencies parsed at: Pending

Created at: about 8 years ago
Updated at: over 2 years ago
Pushed at: about 8 years ago
Last synced at: about 1 month ago

Topics: c, inplacemergesort, insertion-sort, insertionsort, mergesort, mergesort-algorithm, nanyang-technological-university, ntu, sort, sorting, sorting-algorithms

    Loading...