34. Cryptography 1
You have an alphabet of letters, . Two languages, and , use and have probability distributions
where and and
You are provided a text that you know is in one of the two languages, each language having the same probability of having generated it, although you do not understand either language. You observe the text, one letter at a time.
Design an algorithm which, after observing letters, decides whether the text was generated by or . The algorithm should maximise the probability of correct identification.
Submit
Sign in to submit.