Aw: Re: [stella] Bubble Sort

Subject: Aw: Re: [stella] Bubble Sort
From: cybergoth@xxxxxxxx
Date: Tue, 26 Mar 2002 10:30:03 +0100 (MET)
Hi Tim!

> How about this ? Sometimes it is a good idea
> to optimize the algorithm. Sorry, untested
> and unfinished but you get the idea..

Ok, I give it a try:

You scan the complete sequence for the 
biggest/smallest value, remember it's index, 
then only swap once per iteration. Seems very 
clever on first sight. I've to try that. :-)


Greetings,
     Manuel


-----------------------------------------------------------------------
Riester-Rente - Kassieren Sie das Geld vom Staat:
Zum Förderungsrechner! http://www.arcor.de/home/redir.php/riesterrente
-----------------------------------------------------------------------

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread