Hey there! Sign in to join this conversationNew here? Join for free
    • 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: 39
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
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Has a teacher ever helped you cheat?
    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

    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
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

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