Results 1 to 7 of 7

Thread: Compression of sequences

  1. #1
    barnabas
    Guest

    Compression of sequences

    Hello,

    I have problem with compressing a sequence of binary digits.

    Eg:. Consider the following sequneces ( there are indefinte number of sequences).

    11001100100101100.... 256 digits
    11000100011000011.... 256 digits

    The problem is that I would like to compress this sequence into something more manageable say 25 digits maximum.

    I tried to get the common patterns out of each sequence thereby reducing the length required...

    Any suggestions...


    Arun

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151

    HEX?

    what form are the binary numbers in now?

    If they are strings, why not convert to hex? Better yet, convert to radix 26, using the letters of the English alphabet. You will divide length by 16 or 26.

    If they are already stored as Long or Integer variables, you probably cannot compress them much. If you have a Zip utility, try compressing a Word Processor document file and an exe file. compare the percent of compression. The exe file is basically binary data.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  3. #3
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357

    Arrow Radix?...

    What's a radix?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    radix is the base in a numbering system, 10 is radix for decimal system, 2 for binary, 16 for hex, 8 for oct
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357

    radix...

    ...oh right. we jus called it base but radix is good.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  6. #6
    DerFarm
    Guest
    Alternative bases can be used effectively, but it's a ***** to
    program anything over Hex. I had to use Radix 45 once, working
    on a Commodore Pet....4K of ram and no hard drive.

  7. #7
    barnabas
    Guest

    RE: compression

    Hello Guv,

    The problem here is that we cannot use alphabets as this compression program has to be used in an eight bit microcontroller and since there is no way of storing an alphabet directly to the memory we cannot use alphabets, the only option is to use Hex but the sequence is still quite large.

    I will give you an idea of the memory structure of the Microcontroller.


    FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF
    (there are 16 such columns , 8x16= 128 bytes; the total space available for storage).

    Each F represents 4 bits .

    Is there any standard method of compressing the sequences, like say using matrices etc.


    Thank you

    Arun

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width