Re: Bubblesort and Output
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Sun, 2 Oct 2005 04:19:59 -0500
"Mike Williams" <Mike@xxxxxxxxxxxxxxxxx> wrote
> > I tried a bubblesort algorithim, but I'm sort of stuck. How do I
> > display the array after sorting it? How do I output it in sorted order?
>
> You're probably gonna get lets of replies telling you a Bubble Sort is just
> about the slowest sort you can do, and that there are alternative sorting
> methods that are very much faster.
I would advise you qualify that with the statement 'on data that may be found
in any order'.
On data that is already almost sorted, the bubble sort is one of the fastest
available to do the job.... It really depends on how often the data is to be
placed in sorted order. You are correct if its a one-time sort of jumbled
data, but if its a list that goes through iterations of adding/editing a few then
sort, adding/editing a few more then sort, etc.; the bubble sort could work well.
(fast, easy to code and understand, et. al)
LFS
.
- Follow-Ups:
- Re: Bubblesort and Output
- From: Mike Williams
- Re: Bubblesort and Output
- References:
- Re: Bubblesort and Output
- From: Mike Williams
- Re: Bubblesort and Output
- Prev by Date: Re: Is there a way to execute a string?
- Next by Date: Music in vb6
- Previous by thread: Re: Bubblesort and Output
- Next by thread: Re: Bubblesort and Output
- Index(es):
Relevant Pages
|