Turn on thread page Beta
    • Thread Starter
    Offline

    2
    ReputationRep:
    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
    Offline

    3
    ReputationRep:
    What's is the question ???


    Posted from TSR Mobile
    • Thread Starter
    Offline

    2
    ReputationRep:
    Name:  ImageUploadedByStudent Room1456253569.281226.jpg
Views: 45
Size:  47.5 KB

    Here is the question


    Posted from TSR Mobile
    Offline

    3
    ReputationRep:
    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
    • Thread Starter
    Offline

    2
    ReputationRep:
    (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
    Offline

    3
    ReputationRep:
    (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
    • Thread Starter
    Offline

    2
    ReputationRep:
    (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
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: March 22, 2016

University open days

  • University of Warwick
    Undergraduate Open Days Undergraduate
    Sat, 20 Oct '18
  • University of Sheffield
    Undergraduate Open Days Undergraduate
    Sat, 20 Oct '18
  • Edge Hill University
    Faculty of Health and Social Care Undergraduate
    Sat, 20 Oct '18
Poll
Who is most responsible for your success at university
Useful resources

Make your revision easier

Maths

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

Equations

How to use LaTex

Writing equations the easy way

Equations

Best calculators for A level Maths

Tips on which model to get

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.