Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » Sort refactored
Sort refactored [message #36981] Fri, 03 August 2012 19:20 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have spent some time refactoring Sort algorithm, it should be now 15% - 30% faster and more resistant to "bad" input data (we are now using median of 3 and up to 2 partitioning reattempts with Random (mersene twister based) choice of new 3 elements to get the new pivot).
Re: Sort refactored [message #37145 is a reply to message #36981] Wed, 29 August 2012 18:06 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have found that actual implementation does not behave well (is slow) when there are many duplicate values in the array; it should be now fixed by using "3-partition method" (introducing pivot partition of elements with the same value).
Previous Topic: Increased stack size for MSC in Core
Next Topic: X11 menu focus trouble
Goto Forum:
  


Current Time: Wed Apr 24 01:21:39 CEST 2024

Total time taken to generate the page: 0.02660 seconds