49
edits
Changes
→Assignment 1
==== Profiling: bubble vs quick algorithm ====
It's a simple version of sorting algorithm.- Source code
void BubbleSort(int arr[], int size) {
QuickSort(arr, 0, size - 1);
}
Using compiler settings (gcc version 5.2.0):
g++ -c -O2 -g -pg -std=c++14 a1.cpp