X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=hillclimbing-results%2Fhillclimbing-experiments.ipynb;h=b44c281ca3c3481cb750ed0336731f66d17af7f2;hb=d080c51dcd9715148adb73f3cb07bff072a75f43;hp=6426dfc3192dd6c38643d5e0ca127589ae9f4c0a;hpb=39c4ae8d56e4399d431cc3f0c782784f1d197eab;p=cipher-tools.git diff --git a/hillclimbing-results/hillclimbing-experiments.ipynb b/hillclimbing-results/hillclimbing-experiments.ipynb index 6426dfc..b44c281 100644 --- a/hillclimbing-results/hillclimbing-experiments.ipynb +++ b/hillclimbing-results/hillclimbing-experiments.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -52,7 +52,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -61,7 +61,7 @@ "'etoainhsrdlumwycfgpbvkxjqz'" ] }, - "execution_count": 3, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -73,7 +73,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -82,19 +82,59 @@ "'yearningforrespiteth'" ] }, - "execution_count": 4, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "pt = sanitise(open('2017/8b.plaintext').read())\n", + "pt = sanitise(open('../2017/8b.plaintext').read())\n", "pt[:20]" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "-5449.621442375638" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "Pletters(pt)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "-14681.308607565503" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "Ptrigrams(pt)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -249,7 +289,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "cipher.log enigma.log\r\n" + "cipher.log enigma.log\n" ] } ],