-
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484023]
[CODE]150 IF b>1
THEN
LET b=INT (b/p):
IF b -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484027]Profiling indicated that ... ~11.59 seconds.
Paddy[/QUOTE]
So INT rounds ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484023]Hi Folks,
... use a variable.
Paddy[/QUOTE]
Actually, I think ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484027]Profiling indicated that ... ~11.59 seconds.
Paddy[/QUOTE]
I thought it ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484094]Hi JamesD,
< ... , but it works?
Paddy[/QUOTE]
That just ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484102][CODE]IF b1 AND c=1 THEN GO TO 130[/CODE]
[/QUOTE]
But if b=1 it does not loop. -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484102]OK, final optimisation ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484179]OK, had a ... /> Not bad eh? ;)
Paddy[/QUOTE]
Funny how many ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484179]The above removes ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484410]Hi Einar,
< ... />
Many thanks
Paddy[/QUOTE]
Thanks for ... -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484427]Fastest so far is v4.5 at 11.52 seconds with RANDOMIZE 100.[/QUOTE]
Ops I believe this version was incorrect also, see [URL="http://www.worldofspectrum.org/forums/showpost.php?p=484109&postcount=105"]#105[/URL]. -
Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…
[QUOTE=Paddy Coleman;484586]Hi Dr Beep,< ... I gone wrong?
Paddy[/QUOTE]
If the ...