Right. If there is a O(n) sort that uses only constant space, I'd love to hear about it. Radix sort, bucket sort, counting sort all need O(n) space.
On Aug 23, 7:02 am, varun bhatia <[email protected]> wrote: > Who said count sort does not uses extra space??? > > As faras I know, it does need extra space to need thr frequency of each and > every element within a given range...... > > Regards, > > Varun Bhatia > > On Mon, Aug 23, 2010 at 4:20 PM, Tanveer Asif <[email protected]>wrote: > > > > > Count sort.. > > > ------------------------------ > > *From:* Subhranil Banerjee <[email protected]> > > *To:* [email protected] > > *Sent:* Mon, August 23, 2010 3:36:12 AM > > *Subject:* [algogeeks] Sorting algorithm > > > Can anyone suggest a sorting algorithm that sorts in linear time without > > using extra space. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<algogeeks%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<algogeeks%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
