Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Minimum data movements
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kamikazi




PostPosted: Sat Apr 05, 2008 9:09 am   Post subject: Minimum data movements

Hi,

I want to sort an array, using the minimum possible of data movements. There can be repeated elements in the array.
Ex array to be sorted (1 3 3 4 4 2 1 1 3 1) and result : 1 1 1 2 2 3 3 3 4 4.
Can someone figure out an algorithm to do this? It has to be the algorithm that uses the minimum movements possible.

Thanks,
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Sat Apr 05, 2008 10:55 am   Post subject: RE:Minimum data movements

It's been covered.
kamikazi




PostPosted: Sat Apr 05, 2008 11:35 am   Post subject: Re: Minimum data movements

humm. Can you please indicate me the thread? Cause i've searched it and haven't found. Thanks.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: