Divide and Conquer: Coun - NG Inversions I
Divide and Conquer: Coun - NG Inversions I
and
Conquer
Coun.ng
Design
and
Analysis
Inversions
I
of
Algorithms
I
The
Problem
Input
:
array
A
containing
the
numbers
1,2,3,..,n
in
some
arbitrary
order
Tim
Roughgarden
Examples
and
Mo.va.on
Example
Inversions
:
(3,2),
(5,2),
(5,4)
Mo.va.on
:
numerical
similarity
measure
between
two
ranked
lists
eg:
for
collabora.ve
filtering
Tim
Roughgarden
Tem
ver