wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Let A [1...n] be any array of n distinct numbers, If i < j and A [i] > A[j], then the pair (i,j) is called an inversion of A. What is the expected number of inversion in any permutation on n elements?

A
(n2)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
(n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(log n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(n log n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon