-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsorting.h
More file actions
26 lines (19 loc) · 743 Bytes
/
sorting.h
File metadata and controls
26 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __sorting_h_
#define __sorting_h_
#include <stdlib.h>
#include <stdio.h>
// Constant Definitions
/* Return/Error Codes */
#define OK ( 0 ) // No errors, everything as should be
#define ERROR ( -1 ) // Generic error
// structures
/* Function Prototypes */
long *Load_File(char *Filename, int *Size);
int Save_File(char *Filename, long *Array, int Size);
void Shell_Insertion_Sort(long *Array, int Size, double *N_Comp, double *N_Move);
void Improved_Bubble_Sort(long *Array, int Size, double *N_Comp, double *N_Move);
void Save_Seq1(char *Filename, int N);
void Save_Seq1(char *Filename, int N);
int* Three_Smooth(int size, int* terms);
int* Bubble_Seq(int size, int*terms);
#endif // __sorting_h_