i'm havinng trouble getting my sort function to work - it should bubble sort a link list but i keep getting run time errors
any help would be appreciated
i'm havinng trouble getting my sort function to work - it should bubble sort a link list but i keep getting run time errors
any help would be appreciated
The best sorting algorithm for the link lists would be the selection sort method. Try using that one. And if you are unable to get results reply and I will try to deliver the code.
thanks for your reply Kharea -the prob though is that as a beginner the bubble sort is the only one i knew(or thought i did)
how to manipulate so if you could send me the code for the select sort i'd be thankful ....btw how's the next side of the world?.i'm in Jamaica
A bubble sort will work fine.
Have you tried to figure out where the runtime error occurs? What line?
Have you run the code with the debugger?
Add print statements to pinpoint the problem line.
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers
K ...just to let you know that i figured out the slection sort for the link list - wasnt as difficult as i thought..so you dont havre to send the code ..thanks for *ing me in that direction ...
Walt ....i wouldnt mind taking another look at the B.sort implementation ...but it frustrated the heck out of me - so i'll leave it alone for now
thanks peeps.