Volodya wrote:
> Have you tried to give it enough words to represent a full key?

Yup, it can represent any amount of data as poetry without using any
extra memory - try feeding it a very large command line argument.

Of course, at the moment it's just representing random data. Where it
currently calls rand() to generate array indices it should actually be
reading data from stdin, and there should be a companion program that
reads poetry from stdin, uses a hashtable to recover the array indices
of the words, and prints the original data on stdout. I've done
something similar in C before so I know it works in principle, I just
need to get round to finishing this version.

Cheers,
Michael

Reply via email to