Solved

Text Compression

Posted on 2000-04-09
4
198 Views
Last Modified: 2010-04-16
Hi can some one please tell me were I may find some information on how text   Compression works and or may be some tutors on how to make your own little program for Compression text that all i wamt to now about just text Hope some one can help me out thanks.
 see you all
0
Comment
Question by:dreamvb
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
guyss earned 35 total points
ID: 2699910
well,
there are all kinds of compression methods.

most commercial compressors on the market today use two kinds one after the other..
the first is is based on recurring characters:

for example the string aaaababaaaaa
will become 4abab5a
for text files this will take whole lines of spaces and convert them to just two characters,

after this method is applied,
we are left with another file,
that may not be completely text.

now we start finding sequences of
characters that occur in the file,
and assign them binary sequences
for example:

a home is a home is a home is nice

home:3 times
a :3 times
is: 3 times
nice 1 times

we have 4 sequences in all.
so each can be represented by 2 bits so:

home: 00 a: 01 is: 10 nice 11
the new string is: 01001001001001000111
which is 20 bits less than 3 characters.
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 2701219
Try the following for compression routines

http://www.tu-chemnitz.de/~nomssi/paszlib.html

There are other compression routines for pascal around.
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 2701235
0
 
LVL 4

Author Comment

by:dreamvb
ID: 2702105
ok Thanks for the help only is there any code out there that maybe i can see how to do something like that for my selft
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Determine Drive Types 2 473
TZConnection connected in separate thread 2 996
Listen keywords are been pressed 3 332
Delphi XE4 ADORecordset - trouble setting the active connection 2 832
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now