We're coving basic sorting in my visual basic course. Since I've covered this stuff before, I finished my project pretty quickly and decided to run a little test. I thought it would be kinda fun to compare a shell sort (not covered in this course) to a bubble sort (reccomended in our course) on a file of 30,000 records.
The shell sort finished in about 6 seconds. The bubble sort (which I know works, I tested it on a file of 5 records) is still chugging along after 20 minutes (I started at 4:47). How long should I wait before I just give up on the bubble sort?
The shell sort finished in about 6 seconds. The bubble sort (which I know works, I tested it on a file of 5 records) is still chugging along after 20 minutes (I started at 4:47). How long should I wait before I just give up on the bubble sort?