
-----------------------------------
cool dude
Mon Jan 30, 2006 12:52 pm

Bubble sort
-----------------------------------
i'm trying to learn bubble sort and i can't get it. can somebody explain to me or show me a sample prog that i could learn from. AND NO i'm not asking u to do my homework besides i don't have any homework i just wanna learn bubble sort. if u post a sample prog please explain it with comments. thanks

-----------------------------------
Tony
Mon Jan 30, 2006 2:34 pm


-----------------------------------
zylum has posted "bubbling" it up.

-----------------------------------
cool dude
Mon Jan 30, 2006 6:54 pm


-----------------------------------
thats a good tutorial thanks for pointing it out. and thanks to zylum for making it. the only problem i'm having now is i'm trying to get the numbers to sort from a file so i'm sorting it all correctly, but i wanna display it in a list box. i don't know how to display the sorted numbers in the list box. i'm trying somethin like this:


lstSort.AddItem nums(i)


this however doesn't sort everythin. how would i display it in the list box?

-----------------------------------
Tony
Mon Jan 30, 2006 9:49 pm


-----------------------------------
I would guess that you'd need to sort your nums() array before adding elements to the list box.

-----------------------------------
cool dude
Mon Jan 30, 2006 11:53 pm


-----------------------------------
how does bubble sort and selection sort differ?

-----------------------------------
person
Tue Jan 31, 2006 5:03 pm


-----------------------------------
http://www.compsci.ca/v2/viewtopic.php?t=10914

-----------------------------------
cool dude
Tue Jan 31, 2006 7:18 pm


-----------------------------------
thanks for the help i already figured it out.  :)
