User Tools

Site Tools


public:how_parkrun_volunteers_sort_barcodes_-_a_computer_scientist_s_perspective

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.

FM0   FC000000000:zzzzzz0 c b2 0078043879c3f65883c014c0 bac1051d7 37 4133423f31d
 0  0  0  0 0 0 0 031da15aa1837d03c 1315a16ca17f7d03b 130da186a18f7d0 b
1305a153a14c7d06e 130da125a11c7d03b 1311a12da1007d03b 1315a130a0fc7d03a
1319a12ca0ea7d03a 131da12da0e87d03a 1321a134a0ed7d03a 1325a131a0ea7d03b
131da127a0da7d03b
11a191a191a191a193738373837383738302d302d302d302d314a314a314a314a14 914 914 914
93c2c3c2c3c2c3c2c3127312731273127334933493349334915 c15 c15 c15...

FM2   FC000000000:zzzzzz0 d a2 0078043879c3f65883c014c0 bac1051d7 37 4133423f31d
 0  0  0  0 0 0 0 031db113a1b97d03c 1315b11ca1d77d03c 130db11ea1f07d0 b
1305b10aa1df7d06e 130db0f0a1a77d03d 1311b124a2be7d03d 1315b14aa2fc7d03d
1319b181a3717d03d 131db193a3a07d03d 1321b19ca3b67d03d 1325b1a0a3b77d03d
1329b1a2a3c47d03d 1325b180a3817d03d 16f266f266f266f262f682f682f682f68 731 731
731 7312a2c2a2c2a2c2a2c6f316f316f316f31425a425a425a425a 731 731 731...

Bucket sort has a

1)
I was taught it once in A-Level Maths D1 module when I was a Year 12 student in Ashmole School, London.
public/how_parkrun_volunteers_sort_barcodes_-_a_computer_scientist_s_perspective.1545909622.txt.gz · Last modified: 2018/12/27 11:20 by fangfufu