Hi All
I'm a student, learning C++ and as part of my homework I'm doing
a small program that sorts a small array of data (only 8 elements).
With an array of this size, does it really matter what sort
algorithm I use? Wouldn't the dreaded Bubble sort give similar
performance to other algorithms, (evne if repeated 100 times)?
So far I think I'll use the Selection Sort. But if there is one
algorithm that shines when used on small arrays, please let me know.
C yaz
... Today is the tomorrow you worried about yesterday.
---
---------------
* Origin: Community Access Courtenay, BC (604) 338-4597 (1:3412/1)
|