Till KTH:s startsida Till KTH:s startsida

Ändringar mellan två versioner

Här visas ändringar i "Morse" mellan 2016-02-09 11:25 av Johan Montelius och 2016-02-09 11:38 av Johan Montelius.

Visa < föregående | nästa > ändring.

Morse

There are several standards for Morse codes and we will here use a slightly extended version since we also want to code some special character. The Morse code uses, as you probably know, long and short(often pronounced di and da) to encode characters. You might therefore think that is identical to Huffman codes but there is a difference.

You task is to decode the following messages:


* ".- .-.. .-.. ..-- -.-- --- ..- .-. ..-- -... .- ... . ..-- .- .-. . ..-- -... . .-.. --- -. --. ..-- - --- ..-- ..- ... "
* ".... - - .--. ... ---... .----- .----- .-- .-- .-- .-.-.- -.-- --- ..- - ..- -... . .-.-.- -.-. --- -- .----- .-- .- - -.-. .... ..--.. ...- .----. -.. .--.-- ..... .---- .-- ....- .-- ----. .--.-- ..... --... --. .--.-- ..... ---.. -.-. .--.-- ..... .---- "
To spare you the trouble of entering the Morse codes in a table, you are given them in both the form of a decoding tree and a list of codes that we will use to encode messages.


* morse.txt