Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 1; i <= 5; i++)
- {
- FillRandomArray(auxArr, n, 0, MAX_SIZE, false, 0);
- copyArr(auxArr, arrBubble, arrInsertion, arrSelection, n);
- bubbleSort(arrBubble, n, "avgBubbleA", "avgBubbleC");
- insertionSort(arrInsertion, n, "avgInsertionA", "avgInsertionC");
- selectionSort(arrSelection, n, "avgSelectionA", "avgSelectionC");
- }
- profiler.divideValues("avgBubbleA", 5);
- profiler.divideValues("avgBubbleC", 5);
- profiler.divideValues("avgInsertionA", 5);
- profiler.divideValues("avgInsertionC", 5);
- profiler.divideValues("avgSelectionA", 5);
- profiler.divideValues("avgSelectionC", 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement