Sorting Program Bubble sort,unsort,partially sort
2016-08-23
0 0 0
no vote
Other
Earn points
#define PARTIALLYSORTED_30 3
#define PARTIALLYSORTED_50 4
#define PARTIALLYSORTED_70 5
#define RANDOMIZE_QSORT 1
#define MERGE_SORT 2
#define SELECTION_SORT 3
#define BUBBLE_SORT 4
/*---------Randomize Quick Sort-------------*/
int random_partition(int* arr, int start, int end);
void random_quick_sort(int* arr, int start, int end);
/*----------------------------------------------*/
/*-----------Merge Sort--------------------------*/
void partition(int arr[],int low,int high);
void mergeSort(int arr[],int low,int mid,int high);
/*------------------------------------------------*/
/*----------------selection Sort------------------*/
void sort_select(int n) ;
int maxind(int m);
void swap1(int *x, int *y);
/*------------------------------------------------*/
/*-----------------Bubble sort--------------------*/
#define PARTIALLYSORTED_50 4
#define PARTIALLYSORTED_70 5
#define RANDOMIZE_QSORT 1
#define MERGE_SORT 2
#define SELECTION_SORT 3
#define BUBBLE_SORT 4
/*---------Randomize Quick Sort-------------*/
int random_partition(int* arr, int start, int end);
void random_quick_sort(int* arr, int start, int end);
/*----------------------------------------------*/
/*-----------Merge Sort--------------------------*/
void partition(int arr[],int low,int high);
void mergeSort(int arr[],int low,int mid,int high);
/*------------------------------------------------*/
/*----------------selection Sort------------------*/
void sort_select(int n) ;
int maxind(int m);
void swap1(int *x, int *y);
/*------------------------------------------------*/
/*-----------------Bubble sort--------------------*/
c++
冒泡
程序
排序
部分
unsort
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment