Solved

Text Compression

Posted on 2000-04-09
4
197 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
Comment Utility
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 47

Expert Comment

by:dbrunton
Comment Utility
Try the following for compression routines

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

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

Expert Comment

by:dbrunton
Comment Utility
0
 
LVL 4

Author Comment

by:dreamvb
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

7 Experts available now in Live!

Get 1:1 Help Now