This is an old revision of the document!
How Parkrun volunteers sort barcodes - a computer scientist's perspective
On the Christmas day of 2018, I volunteered at Norwich Parkrun. Towards the end, I ended up helping out with sorting the barcodes. I find the whole process interesting. This is because sorting algorithm is an essential part of computer science curriculum 1). I do have some special connection with sorting algorithm - I bumped into Sir Charles Antony Richard Hoare FRS FREng 2)3) the day before I was formally taught quicksort 4) for the second time 1) in as a computer science undergrad in University of York.
Sorting numbers inside a computer is a bit different to sorting objects in physical world. This is mainly because the uniform cost model does not apply in the physical world 5). However some of the concepts in algorithm analysis can still be applied to physical world, for example time complexity and space complexity 6).
In this blog post, we explore the way Parkrun volunteers sort barcodes, using concepts from computer science.
Bucket sort
Parkrun uses a physical implementation of bucket sort 7)8). This is illustrated by the following two pictures taken at Parkrun.
Bucket sort has a