...for generalized data. for almost sorted data, it's the best algorithm. if you're maintaining a list of sorted data, adding a few items, and re-sorting, this may be the way to go.
~Particle ;Þ
In reply to Re: Re: bubble sort in perl
by particle
in thread bubble sort in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |