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


    1 Attachment

    • Screenshot 2020-11-04 182734.jpg
  • That what you're after?
    (I bodged the numbers on the bubble sort swaps so that you could see there were 4 lines not 3)

    Highlighted all the data, inserted an X-Y Scatter with lines, then right click the graph, Select Data then click 'Switch Row/Column' and it moves the 'Numbers' column over to the X axis, keeping the rest as series

About

Avatar for boredom @boredom started