EXAMPLE 8 Code and Decode the Result
Recall: , and . So
To decode the encoded sequence, we insert commas after every 0 and after every occurrence of 111 and convert to letters: