-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmerge_sort.h
22 lines (18 loc) · 1.12 KB
/
merge_sort.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _MERGE_SORT_H
#define _MERGE_SORT_H
#include <stdlib.h>
#include <string.h>
#include <limits.h>
int merge_sort_non_guard_get_reverse_num (int cards[], size_t card_num, int order, size_t *reverse_num);
int _merge_sort_non_guard_incremental_get_reverse_num (int cards[], size_t card_num, size_t *reverse_num);
int _merge_sort_non_guard_decremental_get_reverse_num (int cards[], size_t card_num, size_t *reverse_num);
int _merge_sort_guard_incremental_get_reverse_num (int cards[], size_t card_num, size_t *reverse_num);
int _merge_sort_guard_decremental_get_reverse_num (int cards[], size_t card_num, size_t *reverse_num);
int merge_sort_guard_get_reverse_num (int cards[], size_t card_num, int order, size_t *reverse_num);
int _merge_sort_guard_incremental (int cards[], size_t card_num);
int _merge_sort_guard_decremental (int cards[], size_t card_num);
int merge_sort_guard (int cards[], size_t card_num, int order);
int _merge_sort_non_guard_incremental (int cards[], size_t card_num);
int _merge_sort_non_guard_decremental (int cards[], size_t card_num);
int merge_sort_non_guard (int cards[], size_t card_num, int order);
#endif