An inversion is an array of numbers is any pair (i,j) such
that i<j and A[i]>A[j]. What is the average number of
inversions in an array of n ?
distinct numbers?
Answer Posted / narina thakur
The average number of inversions in an array of N distinct
elements is N(N-1)/4
Proof:
Total number of inversions in a list L and its reverse Lr
is N(N-1)/2. Average list has half this amount, N(N-1)/4.
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
I am pavani pursuing 4th B.Tech final semester i want to write the Group 2 Examination , Eligibility of that exam is all degree holders but to hold my Degree 3months are more. but the exam held on 3rd July 2012. i would be complete my B.Tech when exam to be held. so am i eligible to Group2 exam or not , please clarify my doubt.
i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?
Can one be shocked holding a wire carrying a very large current with a low voltage source?
What is the use of SUN Server
if we give you the job AS A PETROLEUM ENGINEER WHAT WILL YOU DO(that is extraordinary) for our company
how to make resume and what should I include in it?
Write steps of retrieving data using ado.net?
explain overloaded constrator © constractor
Suppose you want to form a conceptual model of UML.What elements would you require for this purpose?
plz snd me sbi probationofficers papers to my id archpa@gmail.com
Why do sausages split lengthways, rather than around the circumference?
What is Symbian.?
What would be the difficulties with building a bridge that connects the UK and Canada?
What is the difference between CD-R and CD+R?
what two ways you can use to ensure that visual basic does not allow uncleared variables?