6 kyu

Code-breaking by Letter Frequency

Description
Loading description...
Ciphers
Puzzles
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    This kata has no right to be approved. 5 tests with fixed input and random subsitution mapping (which is pointless here since we're looking at the relative frequencies only). Frequency analysis alone doesn't cut it so it's literally applying more guesswork or working out the answer offline. And the expected result depends on contextual, external information of the plaintext not provided in the code, and would mostly require Google searches.

    Basically, this is not a code challenge, this is really just an elementary cipher puzzle. Who approved this? It should be sent back to beta, probably unpublished as well (to prevent other users re-approving this).

  • jabel123 Avatar

    What's the mean of the parameter n?

    • dinglemouse Avatar

      There are a small number of speeches (5) to solve for this kata.

      They are uniquely identified by the number n = 1,2,3,4,5.

      (I'll add this info to the Kata description)

  • dinglemouse Avatar

    @Elfein7Night - Thanks for approving my old Kata :-)

  • zvekovoleg Avatar

    Looks very cool. Ready to solve the riddle.

    • dinglemouse Avatar

      Good Luck. You can do it!

    • zvekovoleg Avatar

      Thank you, i enjoyed solving your kata! It was difficukt to translate thoughts into a programming language. Especially a long time i was looking for how implement the storage of rating of letters, in order to decipher it later. I need to study other solution.

  • Horizen Avatar

    any python traslation yet ?

  • blu.knite Avatar

    I was sceptical before starting this Kata, since I could tell from the description that the this wasn't a case of code it right, and you're done.

    But after attempting it, I wanna say it was pretty fun to do. So thanks!

    • dinglemouse Avatar

      @blu.knite, Yes, this Kata was a deliberate break away from the usual pattern. You still need to write useful code, but it is only to help to reveal the answer.

      I'm glad you liked it.

  • ZED.CWT Avatar

    This comment has been hidden.

    • dinglemouse Avatar

      This comment has been hidden.

    • ZED.CWT Avatar

      Well.. the major point is, IMO, this kind of kata should involve more things ralated to programming, more exactly, a function that can decode the message automatically without manually help. Which requires users to prepare a common word dictionary themselves, and ofc one can not guarantee that it would perform 100% correct, so just expecting it to return a map which, let's say, allowing 2 or 3 mistakes, because homo sapiens can understand even there are flaws. Then we can add random tests to tell if users are doing things right....

      Anyway, I'm ok if you believe it's ok to be easy for English speakers.. ... ... Talking about English, how about adding German, French and others so that challengers can ONLY rely on frequency analysis in at least one language.

    • dinglemouse Avatar

      This comment has been hidden.

    • ZED.CWT Avatar

      I think naming the orator is enough to be sure they did it right

      Yeah, but actually you dont need frequency analysis to reveal the truth...

      // I'm actually suggesting you (or someone else) to make another kata which required you to decode messages on the fly o_O

      Suggestion marked resolved by ZED.CWT 7 years ago