fbpx
Wikipedia

Inversion (discrete mathematics)

In computer science and discrete mathematics, an inversion in a sequence is a pair of elements that are out of their natural order.

Permutation with one of its inversions highlighted. An inversion may be denoted by the pair of places (2, 4) or the pair of elements (5, 2). The inversions of this permutation using element-based notation are: (3, 1), (3, 2), (5, 1), (5, 2), and (5,4).

Definitions Edit

Inversion Edit

Let   be a permutation. There is an inversion of   between   and   if   and  . The inversion is indicated by an ordered pair containing either the places  [1][2] or the elements  .[3][4][5]

The inversion set is the set of all inversions. A permutation's inversion set using place-based notation is the same as the inverse permutation's inversion set using element-based notation with the two components of each ordered pair exchanged. Likewise, a permutation's inversion set using element-based notation is the same as the inverse permutation's inversion set using place-based notation with the two components of each ordered pair exchanged.[6]

Inversions are usually defined for permutations, but may also be defined for sequences:
Let   be a sequence (or multiset permutation[7]). If   and  , either the pair of places  [7][8] or the pair of elements  [9] is called an inversion of  .

For sequences, inversions according to the element-based definition are not unique, because different pairs of places may have the same pair of values.

Inversion number Edit

The inversion number  [10] of a sequence  , is the cardinality of the inversion set. It is a common measure of sortedness (sometimes called presortedness) of a permutation[5] or sequence.[9] The inversion number is between 0 and   inclusive. A permutation and its inverse have the same inversion number.

For example   since the sequence is ordered. Also, when   is even,   (because each pair   is an inversion). This last example shows that a set that is intuitively "nearly sorted" can still have a quadratic number of inversions.

The inversion number is the number of crossings in the arrow diagram of the permutation,[6] the permutation's Kendall tau distance from the identity permutation, and the sum of each of the inversion related vectors defined below.

Other measures of sortedness include the minimum number of elements that can be deleted from the sequence to yield a fully sorted sequence, the number and lengths of sorted "runs" within the sequence, the Spearman footrule (sum of distances of each element from its sorted position), and the smallest number of exchanges needed to sort the sequence.[11] Standard comparison sorting algorithms can be adapted to compute the inversion number in time O(n log n).[12]

Inversion related vectors Edit

Three similar vectors are in use that condense the inversions of a permutation into a vector that uniquely determines it. They are often called inversion vector or Lehmer code. (A list of sources is found here.)

This article uses the term inversion vector ( ) like Wolfram.[13] The remaining two vectors are sometimes called left and right inversion vector, but to avoid confusion with the inversion vector this article calls them left inversion count ( ) and right inversion count ( ). Interpreted as a factorial number the left inversion count gives the permutations reverse colexicographic,[14] and the right inversion count gives the lexicographic index.

 
Rothe diagram

Inversion vector  :
With the element-based definition   is the number of inversions whose smaller (right) component is  .[3]

  is the number of elements in   greater than   before  .
 

Left inversion count  :
With the place-based definition   is the number of inversions whose bigger (right) component is  .

  is the number of elements in   greater than   before  .
 

Right inversion count  , often called Lehmer code:
With the place-based definition   is the number of inversions whose smaller (left) component is  .

  is the number of elements in   smaller than   after  .
 

Both   and   can be found with the help of a Rothe diagram, which is a permutation matrix with the 1s represented by dots, and an inversion (often represented by a cross) in every position that has a dot to the right and below it.   is the sum of inversions in row   of the Rothe diagram, while   is the sum of inversions in column  . The permutation matrix of the inverse is the transpose, therefore   of a permutation is   of its inverse, and vice versa.

Example: All permutations of four elements Edit

 
The six possible inversions of a 4-element permutation

The following sortable table shows the 24 permutations of four elements (in the   column) with their place-based inversion sets (in the p-b column), inversion related vectors (in the  ,  , and   columns), and inversion numbers (in the # column). (The columns with smaller print and no heading are reflections of the columns next to them, and can be used to sort them in colexicographic order.)

It can be seen that   and   always have the same digits, and that   and   are both related to the place-based inversion set. The nontrivial elements of   are the sums of the descending diagonals of the shown triangle, and those of   are the sums of the ascending diagonals. (Pairs in descending diagonals have the right components 2, 3, 4 in common, while pairs in ascending diagonals have the left components 1, 2, 3 in common.)

The default order of the table is reverse colex order by  , which is the same as colex order by  . Lex order by   is the same as lex order by  .

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
      p-b   #
0   1234 4321 0000 0000 0000 0000   0000 0000 0
1   2134 4312 1000 0001 0010 0100   1000 0001 1
2   1324 4231 0100 0010 0100 0010   0100 0010 1
3   3124 4213 1100 0011 0110 0110   2000 0002 2
4   2314 4132 2000 0002 0200 0020   1100 0011 2
5   3214 4123 2100 0012 0210 0120   2100 0012 3
6   1243 3421 0010 0100 1000 0001   0010 0100 1
7   2143 3412 1010 0101 1010 0101   1010 0101 2
8   1423 3241 0110 0110 1100 0011   0200 0020 2
9   4123 3214 1110 0111 1110 0111   3000 0003 3
10   2413 3142 2010 0102 1200 0021   1200 0021 3
11   4213 3124 2110 0112 1210 0121   3100 0013 4
12   1342 2431 0200 0020 2000 0002   0110 0110 2
13   3142 2413 1200 0021 2010 0102   2010 0102 3
14   1432 2341 0210 0120 2100 0012   0210 0120 3
15   4132 2314 1210 0121 2110 0112   3010 0103 4
16   3412 2143 2200 0022 2200 0022   2200 0022 4
17   4312 2134 2210 0122 2210 0122   3200 0023 5
18   2341 1432 3000 0003 3000 0003   1110 0111 3
19   3241 1423 3100 0013 3010 0103   2110 0112 4
20   2431 1342 3010 0103 3100 0013   1210 0121 4
21   4231 1324 3110 0113 3110 0113   3110 0113 5
22   3421 1243 3200 0023 3200 0023   2210 0122 5
23   4321 1234 3210 0123 3210 0123   3210 0123 6

Weak order of permutations Edit

 
Permutohedron of the symmetric group S4

The set of permutations on n items can be given the structure of a partial order, called the weak order of permutations, which forms a lattice.

The Hasse diagram of the inversion sets ordered by the subset relation forms the skeleton of a permutohedron.

If a permutation is assigned to each inversion set using the place-based definition, the resulting order of permutations is that of the permutohedron, where an edge corresponds to the swapping of two elements with consecutive values. This is the weak order of permutations. The identity is its minimum, and the permutation formed by reversing the identity is its maximum.

If a permutation were assigned to each inversion set using the element-based definition, the resulting order of permutations would be that of a Cayley graph, where an edge corresponds to the swapping of two elements on consecutive places. This Cayley graph of the symmetric group is similar to its permutohedron, but with each permutation replaced by its inverse.

See also Edit

Sequences in the OEIS:

  • Sequences related to factorial base representation
  • Factorial numbers: A007623 and A108731
  • Inversion numbers: A034968
  • Inversion sets of finite permutations interpreted as binary numbers: A211362   (related permutation: A211363)
  • Finite permutations that have only 0s and 1s in their inversion vectors: A059590   (their inversion sets: A211364)
  • Number of permutations of n elements with k inversions; Mahonian numbers: A008302   (their row maxima; Kendall-Mann numbers: A000140)
  • Number of connected labeled graphs with n edges and n nodes: A057500

References Edit

  1. ^ Aigner 2007, pp. 27.
  2. ^ Comtet 1974, pp. 237.
  3. ^ a b Knuth 1973, pp. 11.
  4. ^ Pemmaraju & Skiena 2003, pp. 69.
  5. ^ a b Vitter & Flajolet 1990, pp. 459.
  6. ^ a b Gratzer 2016, pp. 221.
  7. ^ a b Bóna 2012, pp. 57.
  8. ^ Cormen et al. 2001, pp. 39.
  9. ^ a b Barth & Mutzel 2004, pp. 183.
  10. ^ Mannila 1985.
  11. ^ Mahmoud 2000, pp. 284.
  12. ^ Kleinberg & Tardos 2005, pp. 225.
  13. ^ Weisstein, Eric W. "Inversion Vector" From MathWorld--A Wolfram Web Resource
  14. ^ Reverse colex order of finitary permutations (sequence A055089 in the OEIS)

Source bibliography Edit

  • Aigner, Martin (2007). "Word Representation". A course in enumeration. Berlin, New York: Springer. ISBN 978-3642072536.
  • Barth, Wilhelm; Mutzel, Petra (2004). "Simple and Efficient Bilayer Cross Counting". Journal of Graph Algorithms and Applications. 8 (2): 179–194. doi:10.7155/jgaa.00088.
  • Bóna, Miklós (2012). "2.2 Inversions in Permutations of Multisets". Combinatorics of permutations. Boca Raton, FL: CRC Press. ISBN 978-1439850510.
  • Comtet, Louis (1974). "6.4 Inversions of a permutation of [n]". Advanced combinatorics; the art of finite and infinite expansions. Dordrecht,Boston: D. Reidel Pub. Co. ISBN 9027704414.
  • Cormen, Thomas H.; Leiserson, Charles E.; Rivest, Ronald L.; Stein, Clifford (2001). Introduction to Algorithms (2nd ed.). MIT Press and McGraw-Hill. ISBN 0-262-53196-8.
  • Gratzer, George (2016). "7-2 Basic objects". Lattice theory. special topics and applications. Cham, Switzerland: Birkhäuser. ISBN 978-3319442358.
  • Kleinberg, Jon; Tardos, Éva (2005). Algorithm Design. ISBN 0-321-29535-8.
  • Knuth, Donald (1973). "5.1.1 Inversions". The Art of Computer Programming. Addison-Wesley Pub. Co. ISBN 0201896850.
  • Mahmoud, Hosam Mahmoud (2000). "Sorting Nonrandom Data". Sorting: a distribution theory. Wiley-Interscience series in discrete mathematics and optimization. Vol. 54. Wiley-IEEE. ISBN 978-0-471-32710-3.
  • Pemmaraju, Sriram V.; Skiena, Steven S. (2003). "Permutations and combinations". Computational discrete mathematics: combinatorics and graph theory with Mathematica. Cambridge University Press. ISBN 978-0-521-80686-2.
  • Vitter, J.S.; Flajolet, Ph. (1990). "Average-Case Analysis of Algorithms and Data Structures". In van Leeuwen, Jan (ed.). Algorithms and Complexity. Vol. 1 (2nd ed.). Elsevier. ISBN 978-0-444-88071-0.

Further reading Edit

  • Margolius, Barbara H. (2001). "Permutations with Inversions". Journal of Integer Sequences. 4.

Presortedness measures Edit

  • Mannila, Heikki (April 1985). "Measures of presortedness and optimal sorting algorithms". IEEE Transactions on Computers. C-34 (4): 318–325. doi:10.1109/tc.1985.5009382.
  • Estivill-Castro, Vladimir; Wood, Derick (1989). "A new measure of presortedness". Information and Computation. 83 (1): 111–119. doi:10.1016/0890-5401(89)90050-3.
  • Skiena, Steven S. (1988). "Encroaching lists as a measure of presortedness". BIT. 28 (4): 755–784. doi:10.1007/bf01954897. S2CID 33967672.

inversion, discrete, mathematics, computer, science, discrete, mathematics, inversion, sequence, pair, elements, that, their, natural, order, permutation, with, inversions, highlighted, inversion, denoted, pair, places, pair, elements, inversions, this, permut. In computer science and discrete mathematics an inversion in a sequence is a pair of elements that are out of their natural order Permutation with one of its inversions highlighted An inversion may be denoted by the pair of places 2 4 or the pair of elements 5 2 The inversions of this permutation using element based notation are 3 1 3 2 5 1 5 2 and 5 4 Contents 1 Definitions 1 1 Inversion 1 2 Inversion number 1 3 Inversion related vectors 2 Example All permutations of four elements 3 Weak order of permutations 4 See also 5 References 5 1 Source bibliography 5 2 Further reading 5 3 Presortedness measuresDefinitions EditInversion Edit Let p displaystyle pi nbsp be a permutation There is an inversion of p displaystyle pi nbsp between i displaystyle i nbsp and j displaystyle j nbsp if i lt j displaystyle i lt j nbsp and p i gt p j displaystyle pi i gt pi j nbsp The inversion is indicated by an ordered pair containing either the places i j displaystyle i j nbsp 1 2 or the elements p i p j displaystyle bigl pi i pi j bigr nbsp 3 4 5 The inversion set is the set of all inversions A permutation s inversion set using place based notation is the same as the inverse permutation s inversion set using element based notation with the two components of each ordered pair exchanged Likewise a permutation s inversion set using element based notation is the same as the inverse permutation s inversion set using place based notation with the two components of each ordered pair exchanged 6 Inversions are usually defined for permutations but may also be defined for sequences Let S displaystyle S nbsp be a sequence or multiset permutation 7 If i lt j displaystyle i lt j nbsp and S i gt S j displaystyle S i gt S j nbsp either the pair of places i j displaystyle i j nbsp 7 8 or the pair of elements S i S j displaystyle bigl S i S j bigr nbsp 9 is called an inversion of S displaystyle S nbsp For sequences inversions according to the element based definition are not unique because different pairs of places may have the same pair of values Inversion number Edit The inversion number i n v X displaystyle mathtt inv X nbsp 10 of a sequence X x 1 x n displaystyle X langle x 1 dots x n rangle nbsp is the cardinality of the inversion set It is a common measure of sortedness sometimes called presortedness of a permutation 5 or sequence 9 The inversion number is between 0 and n n 1 2 displaystyle frac n n 1 2 nbsp inclusive A permutation and its inverse have the same inversion number For example i n v 1 2 n 0 displaystyle mathtt inv langle 1 2 dots n rangle 0 nbsp since the sequence is ordered Also when n 2 m displaystyle n 2m nbsp is even i n v m 1 m 2 2 m 1 2 m m 2 displaystyle mathtt inv langle m 1 m 2 dots 2m 1 2 dots m rangle m 2 nbsp because each pair 1 i m lt j 2 m displaystyle 1 leq i leq m lt j leq 2m nbsp is an inversion This last example shows that a set that is intuitively nearly sorted can still have a quadratic number of inversions The inversion number is the number of crossings in the arrow diagram of the permutation 6 the permutation s Kendall tau distance from the identity permutation and the sum of each of the inversion related vectors defined below Other measures of sortedness include the minimum number of elements that can be deleted from the sequence to yield a fully sorted sequence the number and lengths of sorted runs within the sequence the Spearman footrule sum of distances of each element from its sorted position and the smallest number of exchanges needed to sort the sequence 11 Standard comparison sorting algorithms can be adapted to compute the inversion number in time O n log n 12 Inversion related vectors Edit Three similar vectors are in use that condense the inversions of a permutation into a vector that uniquely determines it They are often called inversion vector or Lehmer code A list of sources is found here This article uses the term inversion vector v displaystyle v nbsp like Wolfram 13 The remaining two vectors are sometimes called left and right inversion vector but to avoid confusion with the inversion vector this article calls them left inversion count l displaystyle l nbsp and right inversion count r displaystyle r nbsp Interpreted as a factorial number the left inversion count gives the permutations reverse colexicographic 14 and the right inversion count gives the lexicographic index nbsp Rothe diagramInversion vector v displaystyle v nbsp With the element based definition v i displaystyle v i nbsp is the number of inversions whose smaller right component is i displaystyle i nbsp 3 v i displaystyle v i nbsp is the number of elements in p displaystyle pi nbsp greater than i displaystyle i nbsp before i displaystyle i nbsp v i k k gt i p 1 k lt p 1 i displaystyle v i k mid k gt i land pi 1 k lt pi 1 i nbsp Left inversion count l displaystyle l nbsp With the place based definition l i displaystyle l i nbsp is the number of inversions whose bigger right component is i displaystyle i nbsp l i displaystyle l i nbsp is the number of elements in p displaystyle pi nbsp greater than p i displaystyle pi i nbsp before p i displaystyle pi i nbsp l i k k lt i p k gt p i displaystyle l i left k mid k lt i land pi k gt pi i right nbsp Right inversion count r displaystyle r nbsp often called Lehmer code With the place based definition r i displaystyle r i nbsp is the number of inversions whose smaller left component is i displaystyle i nbsp r i displaystyle r i nbsp is the number of elements in p displaystyle pi nbsp smaller than p i displaystyle pi i nbsp after p i displaystyle pi i nbsp r i k k gt i p k lt p i displaystyle r i k mid k gt i land pi k lt pi i nbsp Both v displaystyle v nbsp and r displaystyle r nbsp can be found with the help of a Rothe diagram which is a permutation matrix with the 1s represented by dots and an inversion often represented by a cross in every position that has a dot to the right and below it r i displaystyle r i nbsp is the sum of inversions in row i displaystyle i nbsp of the Rothe diagram while v i displaystyle v i nbsp is the sum of inversions in column i displaystyle i nbsp The permutation matrix of the inverse is the transpose therefore v displaystyle v nbsp of a permutation is r displaystyle r nbsp of its inverse and vice versa Example All permutations of four elements Edit nbsp The six possible inversions of a 4 element permutationThe following sortable table shows the 24 permutations of four elements in the p displaystyle pi nbsp column with their place based inversion sets in the p b column inversion related vectors in the v displaystyle v nbsp l displaystyle l nbsp and r displaystyle r nbsp columns and inversion numbers in the column The columns with smaller print and no heading are reflections of the columns next to them and can be used to sort them in colexicographic order It can be seen that v displaystyle v nbsp and l displaystyle l nbsp always have the same digits and that l displaystyle l nbsp and r displaystyle r nbsp are both related to the place based inversion set The nontrivial elements of l displaystyle l nbsp are the sums of the descending diagonals of the shown triangle and those of r displaystyle r nbsp are the sums of the ascending diagonals Pairs in descending diagonals have the right components 2 3 4 in common while pairs in ascending diagonals have the left components 1 2 3 in common The default order of the table is reverse colex order by p displaystyle pi nbsp which is the same as colex order by l displaystyle l nbsp Lex order by p displaystyle pi nbsp is the same as lex order by r displaystyle r nbsp 3 element permutations for comparison012345 p displaystyle pi nbsp v displaystyle v nbsp l displaystyle l nbsp p b r displaystyle r nbsp 0 nbsp 123 321 000 0 00 000 0 00 nbsp 000 0 00 01 nbsp 213 312 100 0 01 010 0 10 nbsp 100 0 01 12 nbsp 132 231 010 0 10 100 0 01 nbsp 010 0 10 13 nbsp 312 213 110 0 11 110 0 11 nbsp 200 0 02 24 nbsp 231 132 200 0 02 200 0 02 nbsp 110 0 11 25 nbsp 321 123 210 0 12 210 0 12 nbsp 210 0 12 301234567891011121314151617181920212223 p displaystyle pi nbsp v displaystyle v nbsp l displaystyle l nbsp p b r displaystyle r nbsp 0 nbsp 1234 4321 0000 0 000 0000 0 000 nbsp 0000 0 000 01 nbsp 2134 4312 1000 0 001 0010 0 100 nbsp 1000 0 001 12 nbsp 1324 4231 0100 0 010 0100 0 010 nbsp 0100 0 010 13 nbsp 3124 4213 1100 0 011 0110 0 110 nbsp 2000 0 002 24 nbsp 2314 4132 2000 0 002 0200 0 020 nbsp 1100 0 011 25 nbsp 3214 4123 2100 0 012 0210 0 120 nbsp 2100 0 012 36 nbsp 1243 3421 0010 0 100 1000 0 001 nbsp 0010 0 100 17 nbsp 2143 3412 1010 0 101 1010 0 101 nbsp 1010 0 101 28 nbsp 1423 3241 0110 0 110 1100 0 011 nbsp 0200 0 020 29 nbsp 4123 3214 1110 0 111 1110 0 111 nbsp 3000 0 003 310 nbsp 2413 3142 2010 0 102 1200 0 021 nbsp 1200 0 021 311 nbsp 4213 3124 2110 0 112 1210 0 121 nbsp 3100 0 013 412 nbsp 1342 2431 0200 0 020 2000 0 002 nbsp 0110 0 110 213 nbsp 3142 2413 1200 0 021 2010 0 102 nbsp 2010 0 102 314 nbsp 1432 2341 0210 0 120 2100 0 012 nbsp 0210 0 120 315 nbsp 4132 2314 1210 0 121 2110 0 112 nbsp 3010 0 103 416 nbsp 3412 2143 2200 0 022 2200 0 022 nbsp 2200 0 022 417 nbsp 4312 2134 2210 0 122 2210 0 122 nbsp 3200 0 023 518 nbsp 2341 1432 3000 0 003 3000 0 003 nbsp 1110 0 111 319 nbsp 3241 1423 3100 0 013 3010 0 103 nbsp 2110 0 112 420 nbsp 2431 1342 3010 0 103 3100 0 013 nbsp 1210 0 121 421 nbsp 4231 1324 3110 0 113 3110 0 113 nbsp 3110 0 113 522 nbsp 3421 1243 3200 0 023 3200 0 023 nbsp 2210 0 122 523 nbsp 4321 1234 3210 0 123 3210 0 123 nbsp 3210 0 123 6Weak order of permutations Edit nbsp Permutohedron of the symmetric group S4The set of permutations on n items can be given the structure of a partial order called the weak order of permutations which forms a lattice The Hasse diagram of the inversion sets ordered by the subset relation forms the skeleton of a permutohedron If a permutation is assigned to each inversion set using the place based definition the resulting order of permutations is that of the permutohedron where an edge corresponds to the swapping of two elements with consecutive values This is the weak order of permutations The identity is its minimum and the permutation formed by reversing the identity is its maximum If a permutation were assigned to each inversion set using the element based definition the resulting order of permutations would be that of a Cayley graph where an edge corresponds to the swapping of two elements on consecutive places This Cayley graph of the symmetric group is similar to its permutohedron but with each permutation replaced by its inverse See also Edit nbsp Wikiversity has learning resources about Inversion discrete mathematics Factorial number system Permutation graph Transpositions simple transpositions inversions and sorting Damerau Levenshtein distance Parity of a permutationSequences in the OEIS Sequences related to factorial base representation Factorial numbers A007623 and A108731 Inversion numbers A034968 Inversion sets of finite permutations interpreted as binary numbers A211362 related permutation A211363 Finite permutations that have only 0s and 1s in their inversion vectors A059590 their inversion sets A211364 Number of permutations of n elements with k inversions Mahonian numbers A008302 their row maxima Kendall Mann numbers A000140 Number of connected labeled graphs with n edges and n nodes A057500References Edit Aigner 2007 pp 27 Comtet 1974 pp 237 a b Knuth 1973 pp 11 Pemmaraju amp Skiena 2003 pp 69 a b Vitter amp Flajolet 1990 pp 459 a b Gratzer 2016 pp 221 a b Bona 2012 pp 57 Cormen et al 2001 pp 39 a b Barth amp Mutzel 2004 pp 183 Mannila 1985 Mahmoud 2000 pp 284 Kleinberg amp Tardos 2005 pp 225 Weisstein Eric W Inversion Vector From MathWorld A Wolfram Web Resource Reverse colex order of finitary permutations sequence A055089 in the OEIS Source bibliography Edit Aigner Martin 2007 Word Representation A course in enumeration Berlin New York Springer ISBN 978 3642072536 Barth Wilhelm Mutzel Petra 2004 Simple and Efficient Bilayer Cross Counting Journal of Graph Algorithms and Applications 8 2 179 194 doi 10 7155 jgaa 00088 Bona Miklos 2012 2 2 Inversions in Permutations of Multisets Combinatorics of permutations Boca Raton FL CRC Press ISBN 978 1439850510 Comtet Louis 1974 6 4 Inversions of a permutation of n Advanced combinatorics the art of finite and infinite expansions Dordrecht Boston D Reidel Pub Co ISBN 9027704414 Cormen Thomas H Leiserson Charles E Rivest Ronald L Stein Clifford 2001 Introduction to Algorithms 2nd ed MIT Press and McGraw Hill ISBN 0 262 53196 8 Gratzer George 2016 7 2 Basic objects Lattice theory special topics and applications Cham Switzerland Birkhauser ISBN 978 3319442358 Kleinberg Jon Tardos Eva 2005 Algorithm Design ISBN 0 321 29535 8 Knuth Donald 1973 5 1 1 Inversions The Art of Computer Programming Addison Wesley Pub Co ISBN 0201896850 Mahmoud Hosam Mahmoud 2000 Sorting Nonrandom Data Sorting a distribution theory Wiley Interscience series in discrete mathematics and optimization Vol 54 Wiley IEEE ISBN 978 0 471 32710 3 Pemmaraju Sriram V Skiena Steven S 2003 Permutations and combinations Computational discrete mathematics combinatorics and graph theory with Mathematica Cambridge University Press ISBN 978 0 521 80686 2 Vitter J S Flajolet Ph 1990 Average Case Analysis of Algorithms and Data Structures In van Leeuwen Jan ed Algorithms and Complexity Vol 1 2nd ed Elsevier ISBN 978 0 444 88071 0 Further reading Edit Margolius Barbara H 2001 Permutations with Inversions Journal of Integer Sequences 4 Presortedness measures Edit Mannila Heikki April 1985 Measures of presortedness and optimal sorting algorithms IEEE Transactions on Computers C 34 4 318 325 doi 10 1109 tc 1985 5009382 Estivill Castro Vladimir Wood Derick 1989 A new measure of presortedness Information and Computation 83 1 111 119 doi 10 1016 0890 5401 89 90050 3 Skiena Steven S 1988 Encroaching lists as a measure of presortedness BIT 28 4 755 784 doi 10 1007 bf01954897 S2CID 33967672 Retrieved from https en wikipedia org w index php title Inversion discrete mathematics amp oldid 1138915983, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.