incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Metin Akat <akat.me...@gmail.com>
Subject Re: ranking a big list
Date Sat, 06 Feb 2010 13:27:24 GMT
Hi,
What if 2 students have score of 200 and the next 3 have score of 199?
How do you decide who is fourth?

On Sat, Feb 6, 2010 at 3:00 PM, Mano <manokaran@gmail.com> wrote:
> Hi,
>
> I have a large list of assessment scores (of about 500k students). The
> scores can range between 0 and 200. How do I find the rank of a particular
> score? For smaller lists, I can just sort the array of scores and for each
> student's score I can get the index of their score in the sorted list. But
> how do I achieve it using mapreduce?
>
> Thanks,
> mano
>
> --
> Lord, give us the wisdom to utter words that are gentle and tender, for
> tomorrow we may have to eat them.
>   -Sen. Morris Udall
>

Mime
View raw message