Problem set 4: the Caesar Cipher


Problem 4. Multi-level Code-breaking



Yüklə 111,01 Kb.
Pdf görüntüsü
səhifə7/10
tarix17.02.2022
ölçüsü111,01 Kb.
#83821
1   2   3   4   5   6   7   8   9   10
MIT6 00SCS11 ps4

Problem 4. Multi-level Code-breaking 


Your friend has sent you another message, but this one can’t be decrypted by your solution to 

Problem 2 — it must be using a multi-layer shift. 

To keep things from getting too complicated, we will add the restriction that a shift can begin 

only at the start of a word. This means that once you have found the correct shift at one location

it is guaranteed to remain correct at least until the next occurrence of a space character. 

Part a: Pseudocode 

As in Problem 2, Part b, we want you to sketch out a high level step-by-step algorithm for 

solving this problem. HINT: Use recursion. Save your steps in ps4.txt and upload this to your 

workspace. 




Yüklə 111,01 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   10




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə