An Exact A* Method for Solving Letter Substitution Ciphers. Corlett, E. Master's thesis, Department of Computer Science, University of Toronto, 2011. abstract bibtex Letter-substitution ciphers encode a document from a known or hypothesized language into an unknown writing system or an unknown encoding of a known writing system. The process of solving these ciphers is a problem that can occur in a number of practical applications, such as in the problem of determining the encodings of electronic documents in which the language is known, but the encoding standard is not. It has also been used in OCR applications.
In this paper, we introduce a novel method for deciphering letter-substitution ciphers. We do this by formulating a variant of the Viterbi algorithm for use as an A* heuristic over partial solutions of a given cipher. This heuristic can then be used as a guide in an A* search for the correct solution. We give an overview of the classical Viterbi and A* search algorithms, go on to describe of our proposed algorithm, and prove its correctness.
We then test our algorithm on a selection of ciphers formed from Wikipedia articles, and show that our algorithm has the potential to be a viable, practical method for efficiently solving decipherment problems. We also find, however, that it does have a number of shortcomings, most notably a high variation in running time between similar ciphers. In response to this, we describe potential sources of information to offset this variability and use this information to improve our original algorithm.
We test this improved algorithm on both the original ciphers and a selection of newly collected ciphers and find an average improvement in time and an across-the-board improvement in variability. We conclude that we have successfully addressed the issue of high variability found in our original algorithm. The improved algorithm proves to be highly effective in the task of solving letter-substitution decipherment problems.
@MastersThesis{ corlett,
author = {Eric Corlett},
title = {{An Exact A* Method for Solving Letter Substitution
Ciphers}},
year = {2011},
school = {Department of Computer Science, University of Toronto},
abstract = {<p>Letter-substitution ciphers encode a document from a
known or hypothesized language into an unknown writing
system or an unknown encoding of a known writing system.
The process of solving these ciphers is a problem that can
occur in a number of practical applications, such as in the
problem of determining the encodings of electronic
documents in which the language is known, but the encoding
standard is not. It has also been used in OCR applications.
<P> In this paper, we introduce a novel method for
deciphering letter-substitution ciphers. We do this by
formulating a variant of the Viterbi algorithm for use as
an A* heuristic over partial solutions of a given cipher.
This heuristic can then be used as a guide in an A* search
for the correct solution. We give an overview of the
classical Viterbi and A* search algorithms, go on to
describe of our proposed algorithm, and prove its
correctness. <P> We then test our algorithm on a selection
of ciphers formed from Wikipedia articles, and show that
our algorithm has the potential to be a viable, practical
method for efficiently solving decipherment problems. We
also find, however, that it does have a number of
shortcomings, most notably a high variation in running time
between similar ciphers. In response to this, we describe
potential sources of information to offset this variability
and use this information to improve our original algorithm.
<P> We test this improved algorithm on both the original
ciphers and a selection of newly collected ciphers and find
an average improvement in time and an across-the-board
improvement in variability. We conclude that we have
successfully addressed the issue of high variability found
in our original algorithm. The improved algorithm proves to
be highly effective in the task of solving
letter-substitution decipherment problems. </p> },
download = {http://ftp.cs.toronto.edu/pub/gh/Corlett-MSc-2011.pdf}
}
Downloads: 0
{"_id":{"_str":"53d57a48f414ae191e0003ac"},"__v":0,"authorIDs":[],"author_short":["Corlett, E."],"bibbaseid":"corlett-anexactamethodforsolvinglettersubstitutionciphers-2011","bibdata":{"bibtype":"mastersthesis","type":"mastersthesis","author":[{"firstnames":["Eric"],"propositions":[],"lastnames":["Corlett"],"suffixes":[]}],"title":"An Exact A* Method for Solving Letter Substitution Ciphers","year":"2011","school":"Department of Computer Science, University of Toronto","abstract":"<p>Letter-substitution ciphers encode a document from a known or hypothesized language into an unknown writing system or an unknown encoding of a known writing system. The process of solving these ciphers is a problem that can occur in a number of practical applications, such as in the problem of determining the encodings of electronic documents in which the language is known, but the encoding standard is not. It has also been used in OCR applications. <P> In this paper, we introduce a novel method for deciphering letter-substitution ciphers. We do this by formulating a variant of the Viterbi algorithm for use as an A* heuristic over partial solutions of a given cipher. This heuristic can then be used as a guide in an A* search for the correct solution. We give an overview of the classical Viterbi and A* search algorithms, go on to describe of our proposed algorithm, and prove its correctness. <P> We then test our algorithm on a selection of ciphers formed from Wikipedia articles, and show that our algorithm has the potential to be a viable, practical method for efficiently solving decipherment problems. We also find, however, that it does have a number of shortcomings, most notably a high variation in running time between similar ciphers. In response to this, we describe potential sources of information to offset this variability and use this information to improve our original algorithm. <P> We test this improved algorithm on both the original ciphers and a selection of newly collected ciphers and find an average improvement in time and an across-the-board improvement in variability. We conclude that we have successfully addressed the issue of high variability found in our original algorithm. The improved algorithm proves to be highly effective in the task of solving letter-substitution decipherment problems. </p> ","download":"http://ftp.cs.toronto.edu/pub/gh/Corlett-MSc-2011.pdf","bibtex":"@MastersThesis{\t corlett,\n author\t= {Eric Corlett},\n title\t\t= {{An Exact A* Method for Solving Letter Substitution\n\t\t Ciphers}},\n year\t\t= {2011},\n school\t= {Department of Computer Science, University of Toronto},\n abstract\t= {<p>Letter-substitution ciphers encode a document from a\n\t\t known or hypothesized language into an unknown writing\n\t\t system or an unknown encoding of a known writing system.\n\t\t The process of solving these ciphers is a problem that can\n\t\t occur in a number of practical applications, such as in the\n\t\t problem of determining the encodings of electronic\n\t\t documents in which the language is known, but the encoding\n\t\t standard is not. It has also been used in OCR applications.\n\t\t <P> In this paper, we introduce a novel method for\n\t\t deciphering letter-substitution ciphers. We do this by\n\t\t formulating a variant of the Viterbi algorithm for use as\n\t\t an A* heuristic over partial solutions of a given cipher.\n\t\t This heuristic can then be used as a guide in an A* search\n\t\t for the correct solution. We give an overview of the\n\t\t classical Viterbi and A* search algorithms, go on to\n\t\t describe of our proposed algorithm, and prove its\n\t\t correctness. <P> We then test our algorithm on a selection\n\t\t of ciphers formed from Wikipedia articles, and show that\n\t\t our algorithm has the potential to be a viable, practical\n\t\t method for efficiently solving decipherment problems. We\n\t\t also find, however, that it does have a number of\n\t\t shortcomings, most notably a high variation in running time\n\t\t between similar ciphers. In response to this, we describe\n\t\t potential sources of information to offset this variability\n\t\t and use this information to improve our original algorithm.\n\t\t <P> We test this improved algorithm on both the original\n\t\t ciphers and a selection of newly collected ciphers and find\n\t\t an average improvement in time and an across-the-board\n\t\t improvement in variability. We conclude that we have\n\t\t successfully addressed the issue of high variability found\n\t\t in our original algorithm. The improved algorithm proves to\n\t\t be highly effective in the task of solving\n\t\t letter-substitution decipherment problems. </p> },\n download\t= {http://ftp.cs.toronto.edu/pub/gh/Corlett-MSc-2011.pdf}\n}\n\n","author_short":["Corlett, E."],"key":"corlett","id":"corlett","bibbaseid":"corlett-anexactamethodforsolvinglettersubstitutionciphers-2011","role":"author","urls":{},"metadata":{"authorlinks":{}}},"bibtype":"mastersthesis","biburl":"www.cs.toronto.edu/~fritz/tmp/compling.bib","creationDate":"2014-07-27T22:16:40.648Z","downloads":0,"keywords":[],"search_terms":["exact","method","solving","letter","substitution","ciphers","corlett"],"title":"An Exact A* Method for Solving Letter Substitution Ciphers","year":2011,"dataSources":["n8jB5BJxaeSmH6mtR","6b6A9kbkw4CsEGnRX"]}