Question: We define what an inversion is for an array with sortable values: Let A [ 1 . . n ] be an array for n

We define what an inversion is for an array with sortable values:
Let A[1..n] be an array for n distinct numbers. If i < j and A[i]> A[j], then the pair (i,j) is called an inversion of A.
Which of the following is not an inversion of the array A=[2,3,8,6,1]? Choose the best answer from the supplied choices below:
(1,5)
(3,5)
(4,5)
(1,4)
(3,4)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!