Question: ( 2 5 points ) Various organizations rank universities worldwide every year. These rankings are often controversial and do not always agree with each other.

(25 points) Various organizations rank universities worldwide every year. These
rankings are often controversial and do not always agree with each other. Alice
wants to find out the level of (in)consistency between the QS ranking and the US
News ranking. Consider n universities. For each university 1in,qi and ui
are its ranks accoording to QS and US News respectively. (Hence,q1,q2,dots,qn and
u1,u2,dotsun are two permutations of 1 to n.) We call a pair of universities i,j a
"disagreement" if qi>qj and O(n2)O(nlogn)ui. Design a divide and conquer algorithm for
finding the number of "disagreements" between the QS and US News rankings. Your
algorithm shall have running time strictly faster than O(n2); to get full credit, your
algorithm shall have running time O(nlogn).
 (25 points) Various organizations rank universities worldwide every year. These rankings

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!