Merge Sort Group-5
Merge Sort Group-5
MERGE SORT
Introduction
• Merge sort is a popular sorting algorithm that follows the divide-
and-conquer approach. The algorithm works by dividing the input
array into two halves, sorting each half separately, and then
merging the two sorted halves back into a single sorted array.And is
known for its stability and efficiency on large datasets. It is
commonly used in various applications, including sorting massive
amounts of data, parallel computing, and external sorting. In this
algorithm, the main operations are merging and splitting the array,
making it easy to implement and understand.
MERGE SORT
ALGORITHM
Top-down Approach
It starts at the top and works its
way down, splitting the array in
half, making a recursive call, and
merging the results until it reaches
the bottom of the array tree.
Merge Sort How Code Works