DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: B T

⟦371161b22⟧ TextFile

    Length: 688 (0x2b0)
    Types: TextFile
    Names: »B«

Derivation

└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
    └─⟦5cb1d1d7f⟧ »DATA« 
        └─⟦3b1ee7bd8⟧ 
            └─⟦this⟧ 

TextFile

procedure Sort_Generic (First, Last : Index) is
    J : Integer := Index'Pos (First);
    Jg : Integer;
    Gap : Integer;
begin
    Gap := Index'Pos (Last) - Index'Pos (First);

    while Gap > 0 loop
        for I in Index'Val (Gap) + First .. Last loop
            J := Index'Pos (I) - Gap;

            while J >= Index'Pos (First) loop
                Jg := J + Gap;

                if Index'Val (Jg) < Index'Val (J) then
                    Exchange (Index'Val (J), Index'Val (Jg));
                else
                    exit;
                end if;

                J := J - Gap;
            end loop;
        end loop;

        Gap := Gap / 2;
    end loop;
end Sort_Generic;