JavaScript implementation of Markov Chain Monte Carlo cryptogram decoder

05 Oct 2015

I have been working on a JavaScript version of the Markov Chain Monte Carlo cryptogram decoder from the last post. The JavaScript version shows you the permutations that the program is trying, so that you can watch the Monte Carlo approach in action. You can also mess around with it in real time, changing the “temperature”, randomizing the permutation, or changing the ciphertext. You can find the code on GitHub.

As in the demo of the Python program from that post, this program has been “trained” on War and Peace. Click the Go button to begin!

Ciphertext

Temperature: 3.0

Log-Likelihood

Output

Things you can try:

Some questions to ponder:

It seems that there are many interesting questions and that the analogy with statistical physics should be pursued further!