Python Forum
A deciphering problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A deciphering problem
#19
Hi @DPaul ,
I like your solution. It took me a while to understand the algorithm but it is simple and efficient!
You just assume the first character is a space, and from that assumption you decypher the whole line. If the user rejects the result, you assume the second character to be a space and so on. This way you find the solution after all letters of the first word have been tried. Nice! I learned from that.

Now I am trying to understand the solution of Yoriz. His program looks very neat but some comment about the algorithm would have been helpful. He believes the code is self-explanatory as good code should be. The names of the classes (CipherData, CipherLine, CeaserCipher) indeed give a good impression of what it is all about, but it does not immediately make clear to me how the whole algorithm works. But never mind, I want to learn and hope to have it understood by tomorrow.
Reply


Messages In This Thread
A deciphering problem - by Truman - Aug-14-2021, 08:35 PM
RE: A deciphering problem - by ibreeden - Aug-15-2021, 07:31 AM
RE: A deciphering problem - by DPaul - Aug-16-2021, 07:19 AM
RE: A deciphering problem - by ibreeden - Aug-16-2021, 05:43 PM
RE: A deciphering problem - by Yoriz - Aug-16-2021, 07:25 PM
RE: A deciphering problem - by Truman - Aug-16-2021, 07:53 PM
RE: A deciphering problem - by Yoriz - Aug-16-2021, 08:02 PM
RE: A deciphering problem - by DPaul - Aug-17-2021, 06:19 AM
RE: A deciphering problem - by jamesaarr - Aug-18-2021, 08:12 AM
RE: A deciphering problem - by ibreeden - Aug-17-2021, 09:08 AM
RE: A deciphering problem - by DPaul - Aug-17-2021, 09:47 AM
RE: A deciphering problem - by ibreeden - Aug-17-2021, 10:22 AM
RE: A deciphering problem - by ibreeden - Aug-18-2021, 02:11 PM
RE: A deciphering problem - by Yoriz - Aug-18-2021, 05:12 PM
RE: A deciphering problem - by DPaul - Aug-19-2021, 02:47 PM
RE: A deciphering problem - by Truman - Aug-21-2021, 03:28 PM
RE: A deciphering problem - by DPaul - Aug-22-2021, 09:16 AM
RE: A deciphering problem - by Yoriz - Aug-22-2021, 11:53 AM
RE: A deciphering problem - by ibreeden - Aug-23-2021, 09:27 AM
RE: A deciphering problem - by DPaul - Aug-23-2021, 04:00 PM
RE: A deciphering problem - by Yoriz - Aug-23-2021, 04:18 PM
RE: A deciphering problem - by ibreeden - Aug-23-2021, 05:03 PM
RE: A deciphering problem - by DPaul - Aug-23-2021, 05:24 PM
RE: A deciphering problem - by Yoriz - Aug-23-2021, 06:05 PM
RE: A deciphering problem - by DPaul - Aug-24-2021, 07:07 AM
RE: A deciphering problem - by ibreeden - Aug-24-2021, 02:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020