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, 24655 views

sorting a number array exchange sort algoritm


Download (53.11 KB)

Comments

You need to login to post a comment.

user raelvidar
raelvidar 12 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 15 years ago

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

user bumbus
bumbus 15 years ago

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

user d3niz
the listing author d3niz 15 years ago

Oh okay. :) I'm sorry.

user bumbus
bumbus 15 years ago

|| is logical OR and | is bitwise OR

user bumbus
bumbus 15 years ago

nope you mean logical OR i mean bitwise OR :D

user d3niz
the listing author d3niz 15 years ago

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

user bumbus
bumbus 15 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 15 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 15 years ago

good job,and good author!

user bumbus
bumbus 15 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 15 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 15 years ago

ozellikle tasarmn sevdim

user praveenlkdigi
praveenlkdigi 15 years ago

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

user ashfaqnin
ashfaqnin 15 years ago

nice.. good work.. thanks..

user rebellious
rebellious 15 years ago

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

user maxhenrry
maxhenrry 15 years ago

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

user ceroaporte
ceroaporte 15 years ago

interesting. thanks a lot d3niz

user dgrome0
dgrome0 15 years ago

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