Is the answer even well-defined? Seems like without spaces, there could be strings that decode to multiple possible (possibly nonsense) “sentences.”
...---...
you can guess it's EEETTTEEE, but the decoding is SOS, that was the plaintext I started with.In other words, SOS is sent exactly the way you wrote it, as if it were one long character:
...---...
It is not sent as three separate letters like this: ... --- ...
To indicate this special treatment, prosigns are normally typeset with a bar over the connected letters, something like this: ___
SOS
(I used underscores above the letters here; if they render as separate underscores, imagine that they all run together.)For a trivial counterexample, consider an alphabet of
.-
..-
...-
(And yes, it isn’t uniquely solvable in the case or Morse code, as shown by the counter example A = ET)A trivial example is the reverse:
_.
_..
_...
Which can be decoded by, at worst, reversing the string first.(Sorry if I've misunderstood your example)