Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. for (int i = 1; i <= 5; i++)
  2. {
  3. FillRandomArray(auxArr, n, 0, MAX_SIZE, false, 0);
  4. copyArr(auxArr, arrBubble, arrInsertion, arrSelection, n);
  5. bubbleSort(arrBubble, n, "avgBubbleA", "avgBubbleC");
  6. insertionSort(arrInsertion, n, "avgInsertionA", "avgInsertionC");
  7. selectionSort(arrSelection, n, "avgSelectionA", "avgSelectionC");
  8. }
  9. profiler.divideValues("avgBubbleA", 5);
  10. profiler.divideValues("avgBubbleC", 5);
  11. profiler.divideValues("avgInsertionA", 5);
  12. profiler.divideValues("avgInsertionC", 5);
  13. profiler.divideValues("avgSelectionA", 5);
  14. profiler.divideValues("avgSelectionC", 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement