TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Stephen Leake <[log in to unmask]>
Mon, 18 Dec 2000 11:02:55 -0500
text/plain (25 lines)
Jesse Farmer <[log in to unmask]> writes:

> Hi everyone.
> Maybe I just haven't looked hard enough, but in the few hours that I
> searched, I've been unable to find a good package of sorting
> routines.  Does anyone know of such a package?

You can use my sorted binary trees package to do this. Not guarranteed
to be the most time or space efficient, but it works.

Let me know if the comments need improving :).

There is also a heap sort in the GNAT runtime library; see
GNAT.Heap_Sort_A. has several packages of Ada code; some may have
sorting routines (searching is not extremely efficient there, so I
can't be sure).

-- Stephe