![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Merege Sort Algorithm (MEREGE SORT) implementation More...
#include <iostream>
Go to the source code of this file.
Functions | |
void | merge (int *arr, int l, int m, int r) |
void | mergeSort (int *arr, int l, int r) |
void | show (int *arr, int size) |
int | main () |
Merege Sort Algorithm (MEREGE SORT) implementation
Merge Sort is an efficient, general purpose, comparison based sorting algorithm. Merge Sort is a divide and conquer algorithm Time Complexity: O(n log n) It is same for all best case, worst case or average case Merge Sort is very efficient when for the small data. In built-in sort function merge sort along with quick sort is used.
Definition in file merge_sort.cpp.