
-----------------------------------
Leiak
Sun Jan 25, 2004 5:47 pm

help needed on sort routines
-----------------------------------
i am doing a grade 11 compsci exam tomorrow and i know everything fine except im a lil in the dark on the sort routines i know its like

for x : 1..100
for y:1..100-x or something likethat then u set em all to equal each other but im not 100% sure any help is appreciated

-----------------------------------
AsianSensation
Sun Jan 25, 2004 5:48 pm


-----------------------------------
bubble sort:

for x : 1 .. 99
    for y : x + 1 .. 100

    end for
end for

-----------------------------------
McKenzie
Sun Jan 25, 2004 7:54 pm


-----------------------------------
google "bubble sort" ==
for (i=0; i