Posted by Pete Schoenhoff on August 03, 1999 at 13:15:32:
In Reply to: Counting... posted by Sleepless Snowman on July 31, 1999 at 21:56:34:
: Is it just me, or am I counting the wrong thing...
: So far, my results for the insertion sorts do
: not resemble closely to that of Hussein's
: results...rather the are more closely to
: that of the BubbleSort and Selection Sort...
: anyone getting the same results??
-I realized yesterday that I am getting similar
results. It dawned on me *why* while I was
driving to the exam today. It's a conceptual
error, which would nearly double your comparisons,
and it's a pretty easy mistake to make (I made it)
so I would bet that you're having the same problem.
If it's OK with Mr Suleman, I'll post the solution
(not code), but I want to make sure I wouldn't be
voilating the honor code first. Is it OK, Hussein?
---Pete.