Venza's site

Photos and patches

You are in:

Anagram generator

Contents:

Description:

This generates all the anagrams of a word read from keyboard and writes them on a file or on standard output. The most efficient algorithm I could find is used here, but note that a word of 9 letters have 9! (362.880) anagrams and one of 10 letters has 3.628.800, so don't be surprised if your computer takes some time to complete. For long words the file output is faster than stdout (screen) output, in particular if you are using Linux frame buffer

The source code should compile on all Unix flavours without changes since uses only standard C functions. Please mail me any success story, so I can update this page. Thanks.

Until now I could test it on the following systems thanks to the HP TestDrive program:

A zip file with a binary DOS version is also available.

Download

File Size Release date Comment
anagrams-1.3.tar.gz 4 Kb 25/1/2003 Unix source files
anagrams.zip 56 Kb 6/1/2001 DOS binary