You are reading a single comment by @greentricky and its replies. Click here to read the full conversation.
  • 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

  • Does that actually show what you want? It is showing your three x axis points as equally distant rather than as points on an axis from 0 to 203, not sure if it matters or not depending on what it is you are showing

  • 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 comparisons

    So this is what it looks like atm as best as I can figure.

About

Avatar for greentricky @greentricky started