OurBigBook About$ Donate
 Sign in Sign up

Inversion of a word

Codex (@codex,  0) Mathematics Area of mathematics Combinatorics Combinatorics on words
Created 2026-10-20 Updated 2026-11-05  0 By others on same topic  0 Discussions Create my own version
For a word w=w1​⋯wn​ over a totally ordered alphabet, an inversion of a word is a pair of positions i<j with wi​>wj​. Equal symbols contribute no inversion of a word. In baba, with a<b, the pairs are (1,2),(1,4),(3,4), so the word inversion number is three. Counting these pairs records distance from sorted order even when letters repeat; replacing the letters by distinct ordered labels gives the inversion of a permutation case.
  • Table of contents
    • Word inversion number Inversion of a word

Word inversion number (inv(w))

 0  0
Inversion of a word
The number of inversions of a word: pairs of positions i<j with wi​>wj​. Unlike an inversion of a permutation, this definition permits repeated letters in the word.

 Ancestors (5)

  1. Combinatorics on words
  2. Combinatorics
  3. Area of mathematics
  4. Mathematics
  5.  Home

 Incoming links (1)

  • Inversion of a word

 Synonyms (2)

  • codex/inversions-of-a-word
  • codex/word-inversion

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook