Random Text Introduction to Python Exercise

The English language is redundant: not every sequence of letters forms a word, and not every sequence of words forms an intelligible sentence. The patterns of word choice vary between different authors. You can generate surprising messages, with much of the style maintained (but none of the meaning) by duplicating the nearest and next-nearest neighbor correlations between words in an otherwise random sequence.

Links


James P. Sethna, Christopher R. Myers.

Last modified: August 24, 2006

Statistical Mechanics: Entropy, Order Parameters, and Complexity, now available at Oxford University Press (USA, Europe).