you can sort the students list according to marks in o(n) time by using
RADIX SORT.

On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Dean of Computer Science department wants to keep the motivation
> levels of students of data structure course high by giving incentives.
> He has suggested that after the second minor the top  lon students be
> distributed samosas and the next  sqrt(n) students be given gulab
> jamuns. However, he has stipulated that we cannot sort the student
> roll list according to marks (which would také time) but should use
> data structures skills to determine who gets what in O(n) time???
>
>
> >
>


-- 
***************************************************************
30 years from now it doesn't matter which shoe you wore,which branded jean
you wore..what all matters is WHAT YOU HAVE LEARNED AND HOW YOU HAVE USED
IT.

http://students.iiit.ac.in/~koushik_c

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to