TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: ALEX WALKER
date: 1997-11-26 01:12:00
subject: Sorting small arrays?

     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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.