News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

quicksort

Started by peter84, September 02, 2005, 09:28:09 PM

Previous topic - Next topic

t.c.

Hi, hutch--

I'd like to give a try to this qSortc PROC.  Could you explain the meaning of the three arguments, please?
I guess the first one is the address of the array we want to sort, but I don't know which data I need to pass to procedure as second and third arguments :( .  Any help would be appreciated.

Thanks in advance.

Best regards.

hutch--

Hi tc,

Welcome on board, I will have a look for the example on my local machine and come back to you. Just be aware that a quick sort can effectively lock up if it is fed the wrong type of data and it is inherant in its design where on random data it is the fastest of the exchange sorts.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

t.c.

Thank you very much, hutch-- :)

I've been testing the QuickSort procedure which comes with the masm32 package (nrQsort) and it sometimes fails  :( .  I'm afraid that I need another kind of algorithm, since the data I need to sort is not completely random.  Could you recommend one which is "reliable" working with any kind of data and, at the same time, is the fastest possible?  However, I'll check this qSortc procedure, if you would be so kind as to post the meaning of the arguments.

Thanks again.

Best regards.

P.D.:  Sorry about my English  :red