Algorithms_in_C  1.0.0
Set of algorithms implemented in C.
merge_sort.c File Reference

Implementation of merge sort algorithm. More...

#include <stdio.h>
#include <stdlib.h>
Include dependency graph for merge_sort.c:

Functions

void swap (int *a, int *b)
 Swap two integer variables. More...
 
void merge (int *a, int l, int r, int n)
 Perform merge of segments. More...
 
void merge_sort (int *a, int n, int l, int r)
 Merge sort algorithm implementation. More...
 
int main (void)
 Main function.
 

Detailed Description

Implementation of merge sort algorithm.