"Bother," said Pooh to David Noon about Qsort-Ing A Struct.
DN>I think teachers should teach insertion sort first, as it is simpler
DN>to code than bubble sort, as well as being faster. [I posted some
DN>sample code in this echo a couple of days ago.]
Hmmm....I learned Bubble first I believe, then Insertion, and finally
Quick I think.....although, it was a Basic class not a C class. But, I
knew more than the teacher anyway.....easy "A" if nothing else....
DN>likely use insertion sort instead of bubble sort. It isn't ideal, but
DN>it would be a discernable improvement over bubble sorting ad nauseum.
I don't do many sorts these days.....have no idea why.....
DN>Still, the inmates of the C_PlusPlus echo are getting actual source
DN>code for the better sort algorithms, most of it written by me. Some
DN>of it even works!
Only some of it?
þ CMPQwk 1.42 1960 þ Mirage Net Oxymoron: enough hard drive space
--- MirageNet HQ!
---------------
* Origin: InnerSpace Mail Systems, Inc. (1:275/104)
|