Definition 19.3 University Computer Science — Year 1 · 第 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. 在原文中阅读 →