tobold.org

correct • elegant • free

△ Comp.lang.c △

◅ Key Sort

Source code for a recursive function - Tower of Hanoi ▻

Bubble Sort Question

In article <3vh5qt$cqo@newsbf02.news.aol.com>, NCW1234 <ncw1234@aol.com> wrote:
>Please Help!!!   I'm trying to do a bubble sort using the following

Don't.  If you must write your own sort routine, insertion sort is both
a more efficient and a more obvious algorithm.

But why not use the standard library routine, qsort()?

Tim.
--
Tim Goodwin        | "It's always a mistake to assume that the legal
Public IP Exchange | system behaves rationally." -- Robin Fairbairns

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.c
Subject: Re: Bubble Sort Question
Date: 31 Jul 1995 17:27:06 +0100
Organization: PIPEX, 216 Science Park, Cambridge, England
Message-ID: <3vj08q$mv7@pipe.pipex.net>
References: <3vh5qt$cqo@newsbf02.news.aol.com>

△ Comp.lang.c △

◅ Key Sort

Source code for a recursive function - Tower of Hanoi ▻