-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsorting.h
More file actions
executable file
·34 lines (30 loc) · 905 Bytes
/
Copy pathsorting.h
File metadata and controls
executable file
·34 lines (30 loc) · 905 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
26
27
28
29
30
31
32
33
34
/* *
* Title : Algorithm Efficiency and Sorting
* Author : Abdul Razak Daher Khatib
* ID : 21801340
* Section : 001
* Assignment : 1
* Description : Here I have the sorting algorithms and print and analysis algorithms headers
*/
#ifndef __SORTING__H
#define __SORTING__H
#include <string>
#include <iostream>
#include <ctime>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iomanip>
using namespace std;
class sorting {
public:
void quickSort(int* arr, int f, int l, int& compCount, int& moveCount);
void insertionSort(int* arr, int size, int& compCount, int& moveCount);
void hybridSort(int* arr, int size, int& compCount, int& moveCount);
void printArray(int* arr, int size);
int partition(int* arr, int fir, int last, int& compCount, int& moveCount);
void performanceAnalysis();
int moveCount =0 ;
int compCount =0;
};
#endif