Loading topic
0..k, you can use a key directly as an array index instead of comparing it to other keys.3 min readlambda. It also assumes you have used at least one comparison sort, such as merge sort or quicksort. The previous chapter's counting sort output bare integers. Real programs usually sort records, such as rows, objects, or tup3 min read>> (right shift) and & (bitwise AND) operators behave.2 min readcounting_sort_by_key from earlier in the tutorial. It also assumes you know how a key splits into digits, and that you can read bitwise shifts and masks in Python. Here you put those pieces together into a complete sorting algorithm.3 min readradix_sort_lsd function from the LSD radix sort chapter. It also assumes you know Big-O notation and can split an integer into bit fields with shifts and masks. The goal is to work out how long radix sort takes. You will also see how the digit width you pick, `bit3 min readcounting_sort_by_key and LSD radix sort for non-negative integers. You should also know how two's complement represents negative integers, and how Python's bytes type stores text. The radix sort you have so far only accepts keys that are non-negative i3 min read