Open main menu

CDOT Wiki β

Changes

Thunderbird

17 bytes removed, 18:37, 9 February 2017
Profiling: bubble vs quick algorithm
==== Profiling: bubble vs quick algorithm ====
It's a simple version of sorting algorithm. <br />Source code <br /> 
void BubbleSort(int arr[], int size) {
int tmp; /*used for swapping*/
}
}
 
void InsertionSort(int arr[], int left, int right) {
int curr;
}
}
 
 
void QuickSort(int arr[], int left, int right) {
if (right - left <= 3) {
}
}
 
void QuickSort(int arr[], int size) {
QuickSort(arr, 0, size - 1);
}
49
edits