a) N(N-1)/4
b) N(N+1)/2
c) N(N-1)/2
d) N(N-1)/3
What is the average number of inversions in an array of N distinct numbers?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the average number of inversions in an array of N distinct numbers?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!