Chris Jones
2011-10-03 22:38:31 UTC
Hello again,
I am confused about the notation for an inversion.
Are we saying:
a) An inversion is a pair of indices (i,j) where i < j and A[i] > A[j]
or
b) A pair of indices is (i,j) where i < j. An inversion is a pair that
also has the property A[i] > A[j]
I am confused about the notation for an inversion.
Are we saying:
a) An inversion is a pair of indices (i,j) where i < j and A[i] > A[j]
or
b) A pair of indices is (i,j) where i < j. An inversion is a pair that
also has the property A[i] > A[j]