TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MICHAEL RATHBURN
from: CAREY BLOODWORTH
date: 1998-01-15 23:08:00
subject: sort algorithm

MR>Can someone explain how this sort works I have tried to follow it but I
MR>just get confused.
Basically, it's just a classic, very, very slow bubble sort.  (Not
exactly, but it's close enough that if you understand how a bubble sort
works, you can see this is a brother.)
It loops through each entry, comparing it with the next one and possibly
swapping the two.  It then goes on to the next entry, does the same, and
so on until it's done a complete loop.
It also includes an 'early out' test to stop sorting when there were no
more swaps made in the last past.
It's not written well, and it's not a good sort, either.
--- QScan/PCB v1.19b / 01-0162
---------------
* Origin: Jackalope Junction 501-785-5381 Ft Smith AR (1:3822/1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.