Inversion (discrete mathematics)
In computer science and discrete mathematics a sequence has an inversion where two of its elements are out of their natural order.
Let
be a permutation. If
and
, either the pair of places
or the pair of elements
is called an inversion of
.
...
Wikipedia