Markov Chain Algorithm

by ridleytgecko
"... an implementation of the Markov chain algorithm, described by Kernighan & Pike in their book The Practice of Programming (Addison-Wesley, 1999). The program generates pseudo-random text based on what words can follow a sequence of n previous words in a base text. For this implementation, we will assume that n is two."
Source: Ierusalimschy, R. (2016). Programming in Lua, Fourth Edition. Lua.Org.

The base text in this project is taken from 'fractalthorns', a work created by @berylrose2270 on an external website.

Created March 27, 2025

Last updated March 27, 2025

Published March 27, 2025