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

Another question on Physics

question
Physics, 22.06.2019 04:30
Idon’t quite understand this problem
Answers: 1
question
Physics, 22.06.2019 19:30
The ability to make things happen is also called a. heat b. force c. matter d. energy
Answers: 2
question
Physics, 23.06.2019 02:00
Determine the time it takes for a satellite to orbit the earth in a circular "near-earth" orbit. the definition of "near-earth" orbit is one which is at a height above the surface of the earth which is small compared to the radius of the earth, so that you may take the acceleration due to gravity as essentially the same as that on the surface. does your result depend on the mass of the satellite?
Answers: 3
question
Physics, 23.06.2019 07:00
Roger pushes a box on a 30Β° incline. if he applies a force of 60 newtons parallel to the incline and displaces the box 10 meters along the incline, how much work will he do on the box? a. 5.2 Γ— 102 joules b. 6.0 Γ— 102 joules c. -5.2 Γ— 102 joules d. -6.0 Γ— 102 joules
Answers: 3
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
question
Mathematics, 12.01.2021 21:10
question
Mathematics, 12.01.2021 21:10
Questions on the website: 13722363