Results 1 to 4 of 4

Thread: Makeing a String Smaller (Commprtion]) -HOW !

  1. #1
    Guest

    Post

    Hi There you vb-member you.
    Well i am been trying to think how can i compress a string into a smaller string in the last 3 hours and i have No ****ing Clue ! i have making it into ascii is only bigger and it is impossible to recombin into the org-string , - Somebody ?

  2. #2
    Guest

    Post

    hey pal, youve been reading "how to make friends and influence people" no-one appreciates swearing.

    anyway...
    Winzip uses a "dictionary" of regularly occurring strings and uses a bookmark as a reference to it like this....

    "AAAAAAABBBBBBBBCCCCCCCCBBBBDDDDDD"

    the dictionary looks like...

    X1 = A
    X2 = BBBB
    X3 = CCCCCCCC
    X4 = DDD
    so the compressed string....
    "7X1 2X2 1X3 1X2 2X4" or something like that, it becomes more apparent in bigger strings.

    thats one way of doing it




    ------------------

    Wossname,
    Email me: [email protected]

  3. #3
    Guest

    Post

    Well i thought about that , And this is not a good system i am sure this is not how its done - and the string i need to compress [it varys] but still i am sure there are not gonna be alot of repeating - Anyone else maby ?

  4. #4
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    I made something like this... it doesn't compress a string it encrypts it but you could probably just use numbers then convert it to a constant 23838328E+.383393 or whatever then convert that to a double or whatever and extract each characteryou'ld have to make for example 65 A to 065 because there are 255 possible

    ------------------
    DiGiTaIErRoR

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