If I is the number of inversions in an input array of n records, then {Insertion|Bubble} Sort will require how many swaps?
In - II - nnn^2/2I + nI - 1n - 1An inversion requires a swap to undo it.
The number of comparisons done by an algorithm is generally different from the number of swaps.