The Inversions of a List


Title: The Inversions of a List
Author: Manuel Eberl
Submission date: 2019-02-01

This entry defines the set of inversions of a list, i.e. the pairs of indices that violate sortedness. It also proves the correctness of the well-known O(n log n) divide-and-conquer algorithm to compute the number of inversions.

  author  = {Manuel Eberl},
  title   = {The Inversions of a List},
  journal = {Archive of Formal Proofs},
  month   = feb,
  year    = 2019,
  note    = {\url{},
            Formal proof development},
  ISSN    = {2150-914x},
License: BSD License