alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user d3niz
d3niz (3)

Sorting with Exchange Sort Algoritm

Project :
Sorting the numbers with exchange Sorting Algoritm.
Add : Adding the numbers in an array
Show : Showing the array
Sort : Sorting the numbers

Learn how to use exchange sorting with my example... ;)
This project sorts the array Large one to small one.
if you want to S - L then,

Change the sorting actionscript like this ;

for(m=0;m<i;m++){
for(n=m+1;n<=i;n++){
if...
more >
812 downloads, 24476 views

sorting a number array exchange sort algoritm


Download (53.11 KB)

Comments

You need to login to post a comment.

user raelvidar
raelvidar 11 years ago

show!

user charles07
charles07 14 years ago

good work keep it up, have some minor bugs
1. just keep clicking add button
2. just keep clicking Sort and Show button

any help needed
[email protected]

user davei97sit
davei97sit 14 years ago

without any input .. only clicking on "ADD" again and again generates ,,,,,,,,,,,,,

user bumbus
bumbus 14 years ago

no problem! Im sorry, too!
Keep on coding my dear :D

user d3niz
the listing author d3niz 14 years ago

Oh okay. :) I'm sorry.

user bumbus
bumbus 14 years ago

|| is logical OR and | is bitwise OR

user bumbus
bumbus 14 years ago

nope you mean logical OR i mean bitwise OR :D

user d3niz
the listing author d3niz 14 years ago

OR : ||
:) U wrote it wrong again.

user bumbus
bumbus 14 years ago

@d3niz Ah I understand, sry for interception than.

ps: in may example the is a typo it is Array.sort(Array.NUMERIC | Array.DESCENDING); (with bitwise OR operator not with comma) :D

user d3niz
the listing author d3niz 14 years ago

@Bumbus, Hi! Thanks.
I 've done it to show how the exchange sort algoritm works. I you learn the algoritms, you can understand all of the languages. ;)

@activefocus, thanks a lot!

user activetofocus
activetofocus 14 years ago

good job,and good author!

user bumbus
bumbus 14 years ago

Hi there,
nice Job! But where is the difference to the buildin Array.sort(Array.NUMERIC, Array.DESCENDING);
function?

user d3niz
the listing author d3niz 14 years ago

@deceptr, Teekkr ederim.
@praveenlkdigi, Thanks!
@ashfaqnin,@rebellious,@ceroaporte, You're welcome.
@maxhenrry, Me nina linda? :) Thank you to find it cool.
@dgrome0, :]

user deceptr
deceptr 14 years ago

ozellikle tasarmn sevdim

user praveenlkdigi
praveenlkdigi 14 years ago

Nice d3niZ good work keep it on dear....

user ashfaqnin
ashfaqnin 14 years ago

nice.. good work.. thanks..

user rebellious
rebellious 14 years ago

Thks.. MANTEEBBB.!! JOZ.. :)

user maxhenrry
maxhenrry 14 years ago

cool. algoritmos chevere espero mas animaciones con actionscript nia linda :)

user ceroaporte
ceroaporte 14 years ago

interesting. thanks a lot d3niz

user dgrome0
dgrome0 14 years ago

nice! hmm by the way... youre beautiful!! =P