
Algorithm Alley: "Methods of Solution"
(c) 1993 by Tom Swan. All rights reserved.

Note: You may use any of the files in this file to create
your own compiled programs, which you may distribute free of any
charge or royalty.

Files ending in .TXT are pseudo code algorithms. Files ending in .PAS
are sample implementations of algorithms.

Algorithm #0, SQRROOT.TXT and SQRROOT.PAS, find the square root of a
value using a formula known as the Newton-Raphson technique, and also
introduce the column's format.

Algorithm #1, TOPSORT.TXT and TOPSORT.PAS, sort a partially ordered
data set using a topological sorting algorithm. Create a text file of
dependent data elements in pairs separated by blank lines (see
SAMPLE.DAT and LETTERS.DAT for samples). Feed the data to the program.
Under MS-DOS, for instance, enter a command such as:

    topsort <sample.dat >results.txt

For more information about the files, see my column "Algorithm Alley"
appearing regularly in Dr. Dobb's Journal. Enjoy!

Tom Swan
Compuserve ID 73627,3241

