Is Morse code without spaces uniquely decipherable?

Question Detail: 

Are all Morse code strings uniquely decipherable? Without the spaces,

......-...-..---.-----.-..-..-.. 

could be Hello World but perhaps the first letter is a 5 -- in fact it looks very unlikely an arbitrary sequence of dots and dashes should have a unique translation.

One might possibly use the Kraft inequality but that only applies to prefix codes.

Morse code with spaces is prefix code in which messages can always be uniquely decoded. Once we remove the spaces this is no longer true.


In the case I am right, and all Morse code message can't be uniquely decoded, is there a way to list all the possible messages? Here are some related exercise I found on codegolf.SE

Asked By : john mangual
Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/34067

Answered By : celtschk

The following are both plausible messages, but have a completely different meaning:

SOS HELP      = ...---...  .... . .-.. .--.        => ...---.........-...--. I AM HIS DATE = ..  .- --  .... .. ...  -.. .- - . => ...---.........-...--. 

No comments

Powered by Blogger.