Ah there is one little thing I missed... *How do you know the text has ended?* 
It is encoded as a bit stream, so it might end in the middle of a byte.

Solution 1: Insert text length somewhere. Kinda shit though, prohibits 
streaming.

Solution 2: Put a special END symbol in the tree. But we have no space left in 
the tree encoding.

Solution 3: Oh... I got it. We always add another byte after the text (thus 
making that part 4) giving us the number of correct bits in the previous byte 
(so it's a value between 0x01 and 0x08).
------------------------------------------
Artificial General Intelligence List: AGI
Permalink: 
https://agi.topicbox.com/groups/agi/Tc2bc76d436054024-M7ddeca9f72dd1b2f35db205d
Delivery options: https://agi.topicbox.com/groups/agi/subscription

Reply via email to