Fedora Linux Support Community & Resources Center
  #1  
Old 14th September 2005, 03:00 PM
lugos Offline
Registered User
 
Join Date: Feb 2005
Posts: 39
Sorting

Hello,

Does anyone know what the most efficient sorting algorithm would be for a large array (possibly very large)? I am currently using the bubble sort algorithm for testing, but the array I am using is very small.

Thanks for the assistance,
lugos
Reply With Quote
  #2  
Old 14th September 2005, 03:48 PM
earobinson111's Avatar
earobinson111 Offline
Registered User
 
Join Date: Jul 2004
Location: Canada
Age: 27
Posts: 504
a quick google gets you this http://en.wikipedia.org/wiki/Sorting_algorithm (note depending on the set some sorts are better than others) there is never a sorting algorithm that will always be the best
__________________
Google Talk: earobinson
http://www.google.com/talk/
Reply With Quote
  #3  
Old 14th September 2005, 03:49 PM
rayyes Offline
Registered User
 
Join Date: Dec 2004
Location: Toronto, ON
Posts: 408
are you asking us to do your homework for you?

anyway bubblesort is O(N^2), you need something 'quicker'..
__________________
Peace - To the Middle East.
rayyes.com
Reply With Quote
  #4  
Old 14th September 2005, 04:08 PM
gerardrubio
Guest
 
Posts: n/a
Quicksort or Mergesort will do the work. I've tried them with 1000000+ integer arrays and they work very fast
Reply With Quote
  #5  
Old 14th September 2005, 11:39 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
If "very large" means too big to fit in your process data space, then you need mergesort. Otherwise, use Quicksort.
Reply With Quote
Reply

Tags
sorting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum sorting axet Using Fedora 11 22nd June 2009 06:18 PM
nautilus sorting Doug G Using Fedora 2 7th January 2009 02:27 AM
sorting information on gnumeric DeadPark121 Using Fedora 0 21st October 2008 02:24 PM
Can't find this sorting algorithme anywhere. clearer Programming & Packaging 3 23rd June 2007 12:38 PM
Thunderbird sorting gone mad tornadof3 Using Fedora 2 12th February 2007 01:33 PM


Current GMT-time: 13:42 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat