Suppose I have the following coding scheme,
- $a \rightarrow 0$
- $b \rightarrow 110$
- $c \rightarrow 10$
- $d \rightarrow 111$
Assuming I combine these into an arbitrary long binary sequence (for instance aaabcdccb). How do I know that I can decode the message in a unique way, thus recovering the message? Is there a way to prove this?
Here is an FSM that will recognize the tokens: