Permutations

Unfortunately, your browser does not support Java.
A Java applet is the central focus of this page.
You're encouraged to try again using a Java-aware browser.

Permutations Applet

This applet generates all possible permutations of a specified size.

Type in the size in at the top, and then hit the "Permute" button".

The permutations are displayed in Lexicographic (alphabetic) order.

The algorithm employed is from E. W. Dijkstra, A Discipline of Programming, Prentice-Hall, 1976, p.71.

The source code is available here:

A version of this applet using Sun's Java plug-in is available here.

Index | Links

tim@tt1.org | http://alife.co.uk/