Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:39:25+00:00 2026-05-26T19:39:25+00:00

Which sorting algorithm would you choose if you would be in a group of

  • 0

Which sorting algorithm would you choose if you would be in a group of 10 people who had to mark 400 exam papers and sort them by registration number?

Which one of these would be the best?

  • InsertionSort
  • SelectionSort
  • BubbleSort
  • MergeSort

Is there even a better solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:39:26+00:00Added an answer on May 26, 2026 at 7:39 pm

    Since there are 10 markers, it seems natural to aim for 10-way parallelization. Splitting on the first digit might achieve this in a way that’s easy for a human to perform, although it depends on the distribution of the registration numbers whether you get an even division or not.

    It’s also the first step of an MSD radix sort. Exam papers are like linked lists in that concatenating sequences is cheap (put one pile on top of another pile). So an MSD radix sort is embarrassingly parallel, easy for a human to perform, and therefore I propose a modified MSD radix sort:

    1. Divide the papers into 10 piles on their most significant digit[*]. Assign one pile to each of the 10 people.
    2. Each person takes their pile and continues performing an MSD radix sort. I expect that below a certain size, insertion sort becomes faster than radix sort, and it’s particularly easy for a human handling physical objects. That size could be determined in advance if you have testing time, or just leave it for the individuals to guess. For the given size of 400 papers, a second radix step gives an average size of 4 papers, which surely is below the threshold.
    3. The initial 10 piles might not all be the same size, and the people might not all work at the same speed. Therefore, some of the 10 people will finish their pile before others. Fortunately, it’s very easy for them to help others: just find an unsorted pile and sort it.
    4. Finally, stack all the piles together (this is where top-down approaches like MSD radix or quicksort have a big advantage over bottom-up approaches like LSD radix or mergesort).

    I don’t think that bubble sort or merge sort are useful, they’re actually quite fiddly to do by hand. Selection sort might be worth testing against insertion sort for very small piles. In practice, a human can sort 4 objects just by looking at the numbers, mentally sorting those numbers, then putting the objects into order. You could call that selection sort.

    [*] Ideally that’s the MSD of all of them put together, and you pad numbers with leading zeroes as necessary. But if you don’t know in advance how many digits a registration number can have, that’s actually quite awkward, it might require an initial pass of all 400 papers to find the maximum number. An alternative is to split the papers based on the number of digits in the registration number, and continue from there. It still works as a top-down partition, just doesn’t have the convenient division into 10 at the first step.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is one of an interview question which I had recently. I would like
Is there any sorting algorithm which has running time of O(n) and also sorts
Which sorting algorithm can be used to get nearer and approximate matching list with
I've got a table which Im sorting with tablesorter ( http://tablesorter.com ). Within that
I'm trying to create a somewhat complex sorting feature which neither uses divs nor
Which Doxygen option can completely disable sorting members by type (Private / Public /
Both quicksort and heapsort do in-place sorting. Which is better? What are the applications
Which graduate program should I choose – SUNY Buffalo or SUNY Binghamton?
Why Java impl choose merge sort over quick sort? and why do they copy
Update : In fact, the only acceptable solution for this problem would be sorting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.