1
0

sorting.h 717 B

1234567891011121314151617181920212223242526
  1. #ifndef __sorting_h_
  2. #define __sorting_h_
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. // Constant Definitions
  6. /* Return/Error Codes */
  7. #define OK ( 0 ) // No errors, everything as should be
  8. #define ERROR ( -1 ) // Generic error
  9. // structures
  10. /* Function Prototypes */
  11. long *Load_File(char *Filename, int *Size);
  12. int Save_File(char *Filename, long *Array, int Size);
  13. void Shell_Insertion_Sort(long *Array, int Size, double *N_Comp, double *N_Move);
  14. void Improved_Bubble_Sort(long *Array, int Size, double *N_Comp, double *N_Move);
  15. int * genSeqOne(int maxVal);
  16. int * genSeqTwo(int n);
  17. void Save_Seq1(char *Filename, int N);
  18. void Save_Seq2(char *Filename, int N);
  19. #endif // __sorting_h_