How AES encrypts one block in ten rounds

Short answer: AES encrypts a 16-byte block. AES-128 expands a 16-byte key into eleven round keys and runs ten rounds. Each of the first nine rounds is SubBytes, ShiftRows, MixColumns, and AddRoundKey. The last round skips MixColumns. The FIPS 197 key 000102030405060708090a0b0c0d0e0f and plaintext 00112233445566778899aabbccddeeff encrypt to 69c4e0d86a7b0430d8cdb78070b4c55a. What…

How Welzl encloses points in a disk

Short answer: Welzl’s algorithm computes the smallest enclosing disk of a finite planar point set. It is incremental and randomized. The recursive call returns the smallest disk of a subset, defined by at most three boundary points. A point that falls outside that disk is moved onto the boundary…

How timsort merges natural runs

Short answer: Timsort finds runs that are already ordered, extends short ones with insertion sort, and merges them under a stack invariant that keeps the merge cost at O(n log n). A strictly descending run is reversed so equal keys stay put, and the merge takes the left element…