🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.cobol
Article #163

Re: help Looking for some code to do a Bubble sort in Cobol/Fortran

#163
From: Jeff York
Date: Fri, 26 Mar 1999 00:00
31 lines
1979 bytes
"Jay Siegel" <ka2csh@nospam.nowhere> wrote:

>"space" == "spacesspaces" writes:
>
>space> help       Looking for some code to do a "Bubble" sort in
>space> Cobol/Fortran
>space> 
>space> 
>space> have a need to sort some internal tables, multikey.
>space> 
>space> 
>space> thanks in advance
>space> ed
>space> .
>
>    Bubble sort?  I'd recommend at least a Shell sort algorythm,
>    while the Fast sort algorythm is even faster.  The Bubble sort
>    algorythm is one of the slowest algorythms for sorting.
>
Except,  of course,  in the case where the data is already in
sequence..    I've seen sorts in the past where the first pass is a
bubble,  just to cope with that possibility..    :-)

--
Jeff.         Ironbridge,  Shrops,  U.K.
jeff@jakfield.xu-netx.com  (remove the x..x round u-net for return address)

...   Some days you're the pigeon..
         And some days you're the statue..

 
Technical Details
Message-ID: <36fbd570.64531942@news.u-net.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <eQ3QQm4d#GA.333@upnetnews02.moswest.msn.net> <Q1.D1.412IAo9yMtq4soqs4.NR@nospam.nowhere>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d15b,e9c70a874c287770
X-Google-Attributes: gid10d15b,public
X-Google-Thread: 10b578,e9c70a874c287770
X-Google-Attributes: gid10b578,public
X-Google-Thread: 10585b,e9c70a874c287770
X-Google-Attributes: gid10585b,public
From: jeff@jakfield.xu-netx.com (Jeff York)
Subject: Re: help       Looking for some code to do a Bubble sort in Cobol/Fortran
Date: 1999/03/26
Message-ID: <36fbd570.64531942@news.u-net.com>
X-Deja-AN: 459436518
Content-Transfer-Encoding: 7bit
References: <eQ3QQm4d#GA.333@upnetnews02.moswest.msn.net> <Q1.D1.412IAo9yMtq4soqs4.NR@nospam.nowhere>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@u-net.net
X-Trace: newsr2.u-net.net 922473990 195.102.196.226 (Fri, 26 Mar 1999 18:46:30 GMT)
X-Real-Host: wnxsvryq.h-arg.pbz
Organization: (Posted via) U-NET Internet Ltd.
MIME-Version: 1.0
Reply-To: jeff@jakfield.xu-netx.com
NNTP-Posting-Date: Fri, 26 Mar 1999 18:46:30 GMT
Newsgroups: comp.lang.cobol,fj.comp.lang.cobol,fj.lang.cobol