hw8sol - Computer Science 340 Reasoning about Computation...

  • Homework Help
  • PresidentHackerCaribou10582
  • 3
  • 100% (4) 4 out of 4 people found this document helpful

Info icon This preview shows pages 1–2. Sign up to view the full content.

Computer Science 340 Reasoning about Computation Homework 8 Due at the beginning of class on Wednesday, November 21, 2007 Problem 1 The ciphertext below QFL HCVPS PX V ANSWLCEZK NCJVS; PQ XQVCQX QFL BPSZQL RNZ JLQ ZT PS QFL BNCSPSJ VSW WNLX SNQ XQNT ZSQPK RNZ JLQ QN DKVXX was created by using a substitution cipher on the alphabet of 26 letters. Recover the plaintext and show all your steps. (Hint: J decodes to G.) Solution sketch: QFL occurs a lot: say, it’s THE. Since Q goes to T and there’s the word QN, N must be O. In the word PQ, Q stands for T, so P could be I or A. The word PX could be IN, IS, AN, AS, AM, so X must be one of N,S,M. But we have XQVCQX and we know that Q stands for T: the only consonant that fits before and after a T is S, so X goes to S. The two choices of the 3rd word are IS and AS, so P goes to I and V goes to A. The last 3 letters of WNLX being OES, the only choice for W is D. Now, XQVCQX could only be STARTS, meaning C is R, so last four letters of HCVPS are RAIN. Finishing is easy:
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '07
  • CharikarandChazelle

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern