-
No it doesnt actually. I've done more thinking about it, and I'm pretty sure I'll have to do 2 separate graphs, one showing bubble sort, one showing insertion sort. They both have to show how many swaps and comparisons it took to organise 3 different sized groups of numbers (that were the same for both) in descending order.
I've no idea if I'm explaining this well at all.
9 numbers in the group
Bubble sort-22 swaps,36 comparisons
Insertion Sort – 22 swaps, 8 comparisons
18 numbers
Bubble sort- 99 swaps, 153 comparisons
Insertion sort -99 swaps, 17
27 numbers
Bubble Sort – 203 swaps, 351 comparisons
Insertion sort- 203 swaps, 26 comparisonsSo this is what it looks like atm as best as I can figure.
Ok, I figured it out, I just took out "swaps" from A1 and then gave the x axis the swaps title. I can't figure out how to make it so there isnt a big gap to the left and right, but I'm happy out anyway.
Below is what I meant, if it wasnt clear