Example programs

To give you the largest range of example programs we have gathered together as many original and modern examples programs as possible, including some which we have written ourselves.

Original programs

OXO : Game of Naughts and crosses written by A.S. Douglas, 1952

Squares : computes the square of the first 100 integers and the difference between consecutive values. Written by Maurice Wilkes in 1949 and used to demonstrate the EDSAC on 22nd June 1949.

Primes : Original prime number program written by David Wheeler in early 1949.

There are also a large number of original library routines which perform useful functions, such as formatted character output or mathematical operations.

Modern programs (external)

The following programs were written in recent years and are provided with permission.

[Source: Martin Campbell-Kelly, EdsacPC, (c) 1998, www.dcs.warwick.ac.uk/~edsac. Reproduced with permission.]

Arithmetic : Tests arithmetic operations.

Conway : "Game of Life", Ian Gillman 1998.

Cubes : Calculates cubes.

Mandelbrot : Mandelbrot fractal viewer with zoom. Jonathan Hunt, January 1998.

PrettyP : Pretty Print by Hannah Solman. Prints the program inserted after the PrettyP code.

Sieve : Sieve of Eratosthenes by Paul Waldron.

TPK : Implementation of the TPK algorithm. Written by Martin Campbell-Kelly.

Modern programs by group india

The programs which group India have written are the following:

HelloWorld : The most basic of all programs...

Bubble Sort : Simple sorting algorithm which sorts a list of 16 random (but predefined) numbers graphically by displaying them as bit patterns in long tank 0.

Insertion Sort : Same as above, but uses insertion sort algorithm.

Mazelabel : Uses backtracking to find a way out of a maze.

Start : Not to be taken too seriously...