home *** CD-ROM | disk | FTP | other *** search
/ Jumbo 2,500 Game Pack / DDVDAV937D1.iso / sharewarefin / CSOLVE12.ZIP / README.TXT < prev    next >
Text File  |  1996-06-07  |  13KB  |  278 lines

  1. CRYPTOSOLVE VERSION 1.21
  2. Copyright 1996 James A. Parsly
  3.  
  4.  
  5. CRYPTOSOLVE is a WINDOWS based cryptogram solving utility. At its
  6. most basic level it allows you to type in a cryptogram and handles
  7. the chore of letter substitution for you. However, the real point
  8. of the program is the underlying expert system that provides hints
  9. and can even make a stab at automatic solution.
  10.  
  11. New features in this version:
  12.  
  13. Several hundred new rules.
  14. Smarter "Paste" Button.  The paste button will attempt place the
  15. author name in the author box. It can also paste cryptograms from 
  16. various websites. Here are some good sites:
  17.  
  18. http://www.cs.tuns.ca/wcp/previous
  19. http://www.netvoyage.net/~tgrupe/crypto.htm
  20. http://www.mindspring.com/users/fmnshare/today.html
  21. http://jota.sm.luth.se/~d94-pln/crypto.html
  22.  
  23. --------------------------------------------------------------------
  24. SYSTEM REQUIREMENTS
  25.  
  26. This program requires Microsoft Windows
  27.  
  28. If you plan to use the Hints at all, I recommend at least a
  29. 486-66. A Pentium is even better.
  30. --------------------------------------------------------------------
  31.  
  32. INSTALLATION:
  33.  
  34. If you downloaded CRYPTOSOLVE, it probably came in the form of 
  35. a .ZIP file, CSOLVE12.ZIP. Use PKUNZIP to Un-ZIP the files onto
  36. a floppy disk. Get into WINDOWS and from the Program Manager
  37. menu select FILE and then RUN.  In the Command Line box enter
  38. A:\SETUP or B:\SETUP and then click OK. This should install
  39. CRYPTOSOLVE and create a group containing the CRYPTOSOLVE icon.
  40.  
  41. FILE LIST:
  42.  
  43. A complete installation of CRYPTOSOLVE includes the following
  44. files:
  45.  
  46. CSOLVE.EXE           
  47. CSOLVE.INI  
  48. VBRUN300.DLL    Required for Visual Basic. Goes in WINDOWS/SYSTEM
  49. THREED.VBX      Required for Visual Basic. Goes in WINDOWS/SYSTEM
  50. PATT.DAT        Pattern database
  51. PATT2.DAT       Rule database
  52. WORDLIST.*      Word counts for various word lengths
  53. README.TXT      This file
  54. REGISTER.TXT    Registration form
  55.  
  56. This is the complete version of CRYPTOSOLVE and is not crippled in
  57. any way.
  58.  
  59. ---------------------------------------------------------------------
  60. REGISTRATION
  61.  
  62. It costs $10 US Dollars to register.  This gives you the right to
  63. complain and make suggestions.  See REGISTER.TXT. My address is
  64. also given at the end of this document.
  65.  
  66. ---------------------------------------------------------------------
  67.  
  68. How CRYPTOSOLVE works (and why it sometimes doesn't)
  69.  
  70. CRYPTOSOLVE's hint system is based on patterns and rules.  It uses
  71. the patterns and rules to identify individual words (or author names).
  72. Each pattern or rule maps to a particular word, so CRYPTOSOLVE cannot
  73. directly identify any word that doesn't already have a pattern or
  74. rule in the database.  To fill in "unknown" words the letters must
  75. be cross-referenced in "known" words.
  76.  
  77. This means that a cryptogram containing a large number of "unknown"
  78. words will be difficult for CRYPTOSOLVE to solve.  Someone suggested
  79. that I type in part of Jabberwocky (a nonsense poem: "TWAS BRILLIG 
  80. AND THE SLITHEY TOVES....") and of course the hint system was
  81. pretty much a complete failure.
  82.  
  83. When you start a new puzzle and don't know any of the solution yet,
  84. there are often many candidates for each word in the puzzle.
  85. CRYPTOSOLVE ranks the candidates based on historical frequency of
  86. occurrance. Suppose the puzzle contained the word "XABZZQ". Two
  87. words that would fit, all other things being equal, are "JOHNNY" and
  88. "REALLY".  CRYPTOSOLVE knows that REALLY is about 6 times as likely
  89. to occur as JOHNNY and so the autosolver is more likely to come up
  90. with X=R than it is to come up with X=J.  If the X=R is wrong and
  91. X=J is right, then the autosolver will fail.
  92.  
  93. I have been training the expert system for about 6 years (1
  94. cryptogram per day) and there are over 8000 rules in the system.
  95. The cryptograms I have been using are quotations, so the rules
  96. reflect word usage in ordinary speech and writing.  
  97.  
  98. Cryptograms that are purposely designed to be difficult by use
  99. of uncommon words are going to give the autosolver problems.
  100.  
  101. Given all that here is how you use the CRYPTOSOLVE hint system:
  102.  
  103. ---------------------------------------------------------------------
  104.  
  105. SOLVING A PUZZLE USING THE HINTS SYSTEM
  106.  
  107. If you are given a starting letter, click the letter tile 
  108. corresponding to the puzzle letter and then type the solution letter.
  109.  
  110. Bring up the HINTS page by clicking the HINTS button.
  111.  
  112. Search for PATTERNS by clicking the PATTERNS button.  PATTERNS are
  113. word or author names that can be recognized because they contain
  114. patterns of repeated letters.  A common pattern would be WXYWZX
  115. which usually is the word PEOPLE.  If any patterns are found a
  116. list will appear. You can single click a candidate to see how it
  117. looks in the puzzle. If a candidate looks good to you, either
  118. double click the candidate or hit the accept button.  
  119.  
  120. If you find acceptable patterns, then try the RULES button
  121. to see if there are any exact matches in the RULES database.
  122. RULES will not work if there are no known letters. Actually you
  123. need to have enough known letters to match a rule in the rule
  124. database, so you usually need more than one known letter.
  125.    
  126. A rule tells CRYPTOSOLVE how to infer unknown letters in a word
  127. based on known letters. For example, if you have the puzzle word
  128. "XYZX" and you know that Y=H and Z=A, then the rule "_HA_=THAT"
  129. tells you that X=T. RULES will not work unless you know one or
  130. more letters in the puzzle, and even if you do there still may be
  131. no matches with the DATABASE.  If matches are found, a list will
  132. appear showing candidates which you can try out and accept by 
  133. clicking and doubleclicking, respectively.  
  134.  
  135. The next step is to try for a statistical solution using the
  136. AUTOSOLVE method.  This works by examining multiple puzzle words.
  137. For each puzzle word examined, all possible solution words from
  138. the rule database are found.  Some candidates are eliminated by
  139. looking at what would happen in cross-referenced words (for example
  140. if the solution would create a cross-referenced word that didn't
  141. have any vowels in it).  Remaining candidates are assigned weights
  142. based on historical frequency of occurrance and on how closely the
  143. rule that produced the candidate was met (Buzz word: fuzzy logic).  
  144. The candidate is then broken down into letters and statistics are
  145. kept on the total weight counts for all possible puzzle letter/
  146. solution letter pairs.  When all of the words have been factored in,
  147. letters that get 80% or more of the total weight for a given
  148. puzzle letter are incorporated into the solution.
  149.  
  150. AUTOSOLVE can then perform another iteration taking into account
  151. any new letters in the solution. You keep running iterations until
  152. no more progress is made.  Rather than proceed automatically
  153. to a new iteration, CRYPTOSOLVE requires you to hit the GO button.
  154. This gives you a chance to SET or EXCLUDE letters before proceeding.
  155. The SET box allows you to enter a puzzle letter/solution letter
  156. pair that you have figured out. The EXCLUDE box is used to inform
  157. CRYPTOSOLVE that a puzzle letter/solution letter is not possible.
  158. This is useful when the autosolver assigns a letter based on a
  159. high probability that is nevertheless incorrect.  You must exclude
  160. the puzzle letter/solution letter pairing to override the
  161. probability and allow assignment of a different letter.
  162.  
  163. The PATTERNS-->RULES-->AUTOSOLVE method doesn't usually require
  164. much input from you, except to click the buttons. I was curious to
  165. see how well the program would do on its own, so I bought a puzzle
  166. book and tried out 40 cryptograms.  Using just the 3 steps,
  167. CRYPTOSOLVE was able to solve 25 out of the 40. I considered a
  168. puzzle solved if I could tell what the solution was, even if one or
  169. two letters weren't filled in. (This happens where there are 2 or
  170. more candidates for a letter and none have enough weight to be
  171. included in the solution; for example you can't decide if _E is
  172. WE, ME, BE, etc. if there are no cross-referenced words to factor
  173. into the decision.)  It actually did better on the first puzzles,
  174. solving 23 out of 30, but the last 10 were more difficult puzzles
  175. that didn't use common words.  On its usual diet of quotations
  176. which are not purposely designed to be difficult, I am sure 
  177. CRYPTOSOLVE does at least as well as the 23/30 figure.
  178.  
  179. I was actually able to solve the remainder of the puzzles (except for
  180. the 40th "CHALLENGER" puzzle which turned out to be mostly
  181. unfamiliar words), just not automatically. How? See below.
  182.  
  183. So what do you do if the AUTOSOLVE method doesn't work? This is where
  184. you come in.  The POSSIBILITIES method allows you to doubleclick a
  185. puzzle word and look at candidates, sorted by probability.  
  186. Once again you are presented with a list and you can single click
  187. a candidate to see how it looks in the puzzle. If you like a
  188. candidate, double click it (or hit the ACCEPT button).  You can
  189. then go back to RULES or AUTOSOLVE and see what you get.
  190.  
  191. The other way that you interact with the program is by entering
  192. new rules and patterns.  As you work puzzles you will come across
  193. new words and author names that contain patterns that will be
  194. recognizable in future puzzles. I usually want at least two
  195. sets of repeated letters before I consider a pattern to be
  196. unique enough to be included in the PATTERN database.  This is 
  197. entirely up to you. Similarly, as you look at partial solutions
  198. you will see opportunities for new inference rules.  The hint
  199. pages all have a ADD NEW RULES button that pops up a form
  200. for entering RULES and PATTERNS.  This is your chance to make
  201. the program smarter, to be the expert behind the expert system,
  202. so USE IT!
  203.  
  204. Patterns are just words and author names. If you think that the name
  205. RONALD REAGAN has enough pattern to be identified in the future, RONALD REAGAN 
  206. is what you enter. You can look at the pattern database. It is stored
  207. as a standard text file called PATT.DAT.
  208.  
  209. Rules are a bit more complicated. There are two distinct formats. The
  210. first type of rule is used when the known letters in a word allow you 
  211. to infer the unknown letters. The left-hand side of the rule shows 
  212. the letters that must be known and uses the underscore character "_"
  213. in positions that are unknown.  The rule then has an equal sign "=" 
  214. and a right-hand side which must be just like the left-hand side, except
  215. that the "_" characters are replaced by the correct letters.  Examples
  216. of this type of rule:
  217.  
  218. _HA_=THAT
  219. CO__ITT__=COMMITTEE
  220. V_C__M=VACUUM
  221.  
  222. The second format of rule is used when there is only one unknown
  223. letter left in a word, but there are multiple letters that would fit.  
  224. The left-hand side of this type of rule gives the known letters and
  225. an "_" character in the position where the unknown letter will go.
  226. The rule then has a "*" character followed by all of the possible
  227. letters. Examples of this type of rule:
  228.  
  229. _F*IO
  230. GOA_*DLT
  231.  
  232. If I ever write another version of CRYPTOSOLVE, I expect that I will
  233. include some additional rule types.  One definite possibility is a rule
  234. type for word endings (*I_G=*ING would be an example).
  235.  
  236. You can look at the RULE database. It is stored in the text file
  237. PATT2.DAT
  238. ------------------------------------------------------------------------------------------
  239. WORD COUNTS
  240.  
  241. When you have completely solved a puzzle, you should click the
  242. WORD COUNT button so that the program will update the frequency of 
  243. occurrances.  This will automatically happen if you try to exit the 
  244. program after solving a puzzle.  You will see a list of all of the 
  245. words in the puzzle. If NEW WORD appears beside a word, this 
  246. word is being seen for the first time.  It is important that you
  247. create RULES or PATTERNS for any new words. AUTOSOLVE gets candidate 
  248. words using the rule database, so if there is no rule for a word, 
  249. AUTOSOLVE will not consider it. The WORD COUNT feature was the last 
  250. major feature added to the original DOS program, so the word counts 
  251. are still a bit low.
  252.  
  253. ------------------------------------------------------------------------------------------
  254. If Wishes were Fishes......
  255.  
  256. I wish that the program were faster. The original DOS version 
  257. which was written in compiled QuickBasic 4.0 is MUCH faster than 
  258. the VISUAL BASIC for Windows code. Didn't have a very good user
  259. user interface, but it did the job.  Of course the machines keep 
  260. getting faster and I hear rumors about there being REAL compiled
  261. code (as opposed to p-code) in a future version of Visual Basic, 
  262. so maybe time will solve all of my problems. Either that or I get
  263. a C Compiler and start writing DLL's (or maybe that new POWERBASIC 
  264. compiler).
  265.  
  266. ------------------------------------------------------------------------------------------
  267. The ABOUT Screen
  268.  
  269. View the ABOUT screen and be amazed!  I am rather proud of it.
  270.  
  271. ------------------------------------------------------------------------------------------
  272. Any Problems? Contact:
  273. James A. Parsly
  274. jparsly@usit.net
  275. 423-966-4131
  276. 624 Summit Lake Court
  277. Knoxville TN 37922
  278.