| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | sort algorithm |
MR> this is the confusing part :-
MR> while(test == 0)
MR> {
MR> test = 1;
MR> for (i = 0; i < (MAX - 1); i++)
MR> {
MR> if (table[i] < table[i + 1])
MR> {
MR> temp = table[i];
MR> table[i] = table[ i + 1];
MR> table[i + 1] = temp;
MR> test = 0;
MR> }
MR> }
MR> }
This is bubble sort. You can look it up in every algorithms textbook.
Thomas
---
þ MM 1.0 #0113 þ RAM DISK is NOT an installation procedure!
---------------
* Origin: McMeier & Son BBS (2:301/138) |
|
| 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™.