The Student Room Group

Maths as level algorithms help

Hi, i have received an algorithms homework on the bubble sort/ shuttle sort, and i was a bit confused about question 2B.
Could anyone please help me understand what the question is asking for? thank you :smile:
Reply 1
What's is the question ???


Posted from TSR Mobile
ImageUploadedByStudent Room1456253569.281226.jpg

Here is the question


Posted from TSR Mobile
Reply 3
It just wants you to work out the number of times you need to move the "bubble" along the line I order to get n numbers in order


Posted from TSR Mobile
Original post by CSLady
It just wants you to work out the number of times you need to move the "bubble" along the line I order to get n numbers in order


Posted from TSR Mobile


For my chosen numbers??


Posted from TSR Mobile
Reply 5
Original post by holly mcnally
For my chosen numbers??


Posted from TSR Mobile


no in general. so they want a rule like if you have n numbers the maximum number of iterations of the bubble sort is n+M
Original post by CSLady
no in general. so they want a rule like if you have n numbers the maximum number of iterations of the bubble sort is n+M


Thank you


Posted from TSR Mobile

Quick Reply

Latest