Motherboard Forums


Reply
Thread Tools Display Modes

Re: Skybuck's Universal Code 4 (memory efficient)

 
 





















Skybuck Flying
Guest
Posts: n/a

 
      05-28-2007, 07:48 AM



"Skybuck Flying" <> wrote in message news:...
>
> "Skybuck Flying" <> wrote in message news:...
>>
>> "Skybuck Flying" <> wrote in message
>> news:f3dsdk$p80$...
>>>
>>> "MooseFET" <> wrote in message
>>> news: oups.com...
>>>> On May 27, 8:20 am, "Skybuck Flying" <s...@hotmail.com> wrote:
>>>>> How would you encode a larger example with your system, for example
>>>>> the
>>>>> following data bits:
>>>>>
>>>>> 111010101010100110100101101110011
>>>> 33 Bits by my count.
>>>>
>>>>>
>>>>> Maybe that would clearify your idea a bit
>>>>
>>>> I stopped after 3 bits, so I'll pick up at 4 bits and again.
>>>>
>>>> The first 4 bits of the prefix are already stated as being 1111 so we
>>>> only need to deal with the next 6 bits.

>>
>> from previous post:
>>
>>> > 1100 - 0 plus the following bit as a pair
>>> > 1101 - 1 plus the following bit as a pair
>>> > 1110 - Three bits follow
>>> > 1111 - All other cases

>>
>>>> 00XXXX - The 4 bit value XXXX
>>>> 010XXX - Two more bits follow making a total of 5 bits
>>>> 0110XX - Four more bits follow making 6 bits
>>>> 01110X - Six bits follow making 7 bits
>>>> 011110 - 8 bits follow
>>>> 10NNNN - (9+NNNN) bits follow 9..24
>>>> 110NNN - Two more of N follow then (25+N) bits *
>>>> 1110NN - 4 more bits of N follow then (57+N) bits
>>>> 11110N - 6 more bits of N follow then (121+N) bits
>>>> 111111 - All other cases


Ok, I guess this table doesn't show the whole picture.

This table is supposed to be:

1100 0X
1101 1X
1110 XXX
1111 00XX XX
1111 010X XXXX
1111 0110 XXXX XX
1111 0111 0XXX XXXX
1111 0111 10XX XXXX XX *
1111 10NN NNNN NNNN NNN
1111 110N NNNN
1111 1110 NNNN NN
1111 1111 0NNN NNNN
1111 1111 11 - All other cases

* 10 bits overhead for only 8 bits.

Doesn't seem like your encoding is more efficient.

My encoding needs:

0x1 + 0x2 + 0x4 + 1x8 = 4 bits + 4 for markers = 8 bits overhead.

Total bits for my encoding: 16.
Total bits for your encoding: 18.

Your encoding uses 2 more bits !

Since I use a binary encoding system for the length, the longer the data
bits are the more efficient my encoding system will prove to be.

Binary is exponential after all

The "unary-like" marker bits for the binary length bits will prove to be a
very small overhead =D

Bye,
Bye,
Skybuck.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skybuck's Universal Code 4,Delphi Demonstration Program Skybuck Flying Asus 8 05-28-2007 11:30 PM
Re: Skybuck's Universal Code 4 (memory efficient) Skybuck Flying Asus 0 05-28-2007 08:40 PM
Skybuck's Universal Code 4 (memory efficient) Skybuck Flying Asus 21 05-28-2007 08:34 PM
Re: Skybuck's Universal Code 4 (memory efficient) Skybuck Flying Asus 1 05-28-2007 04:04 PM
P5P800 SE PCI Slots and shared interrupts John Asus 4 02-24-2007 11:38 AM


All times are GMT. The time now is 01:16 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43