subject
Physics, 21.04.2020 17:49 AutumnGarringer

An inversion in a permutation of the integers 1 to n is a pair of numbers (not necessarily adjacent) such that the larger number is listed first. For example, in the permutation 4, 2, 3, 1, the inverted pairs are (4, 2), (4, 3), (4, 1) (2, 1) and (3, 1). By listing out all 24 permutations and counting the number of inversions in each (if you are lazy you can write a program to do this and attach the code as a separate file), calculate the expected number of inversions in a random permutation of 1, 2, 3 and 4. Then, using this result, posit a guess for the general result, in terms of n for permutations of 1, 2, 3, …, n. Try to prove this guess via a route that uses less calculation, but looks at an arbitrary pair of indexes into the permutation, say i and j with i < j and counts how many permutations for which this pair is "in order" and that this pair is in inverted.

ansver
Answers: 2

Other questions on the subject: Physics

image
Physics, 21.06.2019 18:00, heyhay5748
Abaseball has a mass of 0.145 kg and approaches a bat at 40.0 m/s. after it is hit, the ball leaves the bat at 50.0 m/s directly back. find the impulse of the bat on the ball. 7.25 kg*m/s 13.1 kg*m/s 5.80 kg*m/s 1.45 kg*m/s
Answers: 2
image
Physics, 22.06.2019 13:20, kasper04
Which of the following is the main energy source for the sun? a. fission of hydrogen b. fusion of hydrogen c. fusion of helium d. fission of iron
Answers: 2
image
Physics, 22.06.2019 15:00, hailey200127
Holes drilled several kilometers into earth’s crust provide direct evidence about earth’s interior in the form of
Answers: 1
image
Physics, 23.06.2019 01:50, eddy3625
An electron moving at 5.06 103 m/s in a 1.23 t magnetic field experiences a magnetic force of 1.40 10-16 n. what angle does the velocity of the electron make with the magnetic field? there are two answers between 0° and 180°. (enter your answers from smallest to largest.)
Answers: 2
You know the right answer?
An inversion in a permutation of the integers 1 to n is a pair of numbers (not necessarily adjacent)...

Questions in other subjects:

Konu
History, 12.04.2021 17:50
Konu
Mathematics, 12.04.2021 17:50