Click to See Complete Forum and Search --> : Makeing a String Smaller (Commprtion]) -HOW !
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 ?
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: wossnamex@talk21.com :)
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 ? :)
DiGiTaIErRoR
Jan 21st, 2000, 09:20 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.