VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009)

by Rde (54 Submissions)
Category: String Manipulation
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (18 Votes)

Grab hold of your snow boards folks - Rd's stable non-recursive quicksort algorithm the Avalanche just got even faster ...
This is the latest and final version of my non-recursive quicksort based algorithm that has been written from the ground up as a stable alternative to the blindingly fast quicksort ...
It is not quite as fast as the outright fastest non-stable quicksort, but is still very fast as it uses buffers and copymemory and is beaten by none of my other string sorting algorithms except my fastest non-stable quicksort ...
A standard quicksort only moves items that need swapping, while this stable algorithm manipulates all items on every iteration to keep them all in relative positions to one another. This algorithm I have dubbed the Avalanche ...
See included html page in 21k zip for details ...
Also included is an Avalanche based pre-sorter and the latest version of my insert/binary hybrid Twister algorithm which utilizes the pre-sorter ...
Obscure Bug Fix 7 March 09. I documented it 'can sort sub-sets of the array data' but with the indexed version if you do an error *could* occur without this very small change ...
This is definitely the final version of this unique algorithm, I have very much enjoyed developing it. I hope you like it. Happy coding from Rd :)

API Declarations
CopyMemory API
'
' The Avalanche algorithm has the
' following features:
'
' It can handle sorting arrays
' of millions of string items.
'
' It can handle sorting in
' ascending and descending order.
'
' It can handle case-sensitive
' and case-insensitive criteria.
'
' It can handle zero or higher
' based arrays.
'
' It can handle negative lb and
' positive ub.
'
' It can handle negative lb and
' zero or negative ub.
'
' It can sort sub-sets of the
' array data.
'

Rate Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009)

Download Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009)

Download Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009) (21 KB)

Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009) Comments

No comments have been posted about Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009). Why not be the first to post a comment about Stable QuickSort v2.3 SAFEARRAY Final (7th March 2009).

Post your comment

Subject:
Message:
0/1000 characters