https://github.com/juliusmarkwei/merge-sort-algorithm
Implementation of merge-sort algorithm in c language
https://github.com/juliusmarkwei/merge-sort-algorithm
algorithms computer-science divide-and-conquer merge-sort mergesort
Last synced: 4 months ago
JSON representation
Implementation of merge-sort algorithm in c language
- Host: GitHub
- URL: https://github.com/juliusmarkwei/merge-sort-algorithm
- Owner: juliusmarkwei
- Created: 2022-10-03T23:58:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T00:24:19.000Z (over 2 years ago)
- Last Synced: 2025-01-01T18:34:28.983Z (6 months ago)
- Topics: algorithms, computer-science, divide-and-conquer, merge-sort, mergesort
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Merge-Sort-Algorithm
## Implementation of merge-sort algorithm in c language.
The Merge Sort algorithm is a sorting algorithm that is based on the Divide and Conquer paradigm. In this algorithm, the array is initially divided into two equal halves and then they are combined in a sorted manner.Merge Sort Working Process:
Think of it as a recursive algorithm continuously splits the array in half until it cannot be further divided. This means that if the array becomes empty or has only one element left, the dividing will stop, i.e. it is the base case to stop the recursion. If the array has multiple elements, split the array into halves and recursively invoke the merge sort on each of the halves. Finally, when both halves are sorted, the merge operation is applied. Merge operation is the process of taking two smaller sorted arrays and combining them to eventually make a larger one.