Definition 19.3 University Computer Science — Year 1 · Hoofdstuk 19 — Sorting An inversion of a sequence aaa is a pair of positions i<ji < ji<j with ai>aja_i > a_jai>aj. Returned books go back one at a time into shelves that are already in order: insertion sort, which is fast when only a few items are out of place. Lees in het hoofdstuk →