compressing a text file



HI guys,

I am new to the field of data compression. I want to write an
algorithm to compress
the text file. One way I thought of replacing the frequently occuring
words with a smaller
symbol. Say, for example if "the" is repeated in the text file 1000
times I would replace
"the" with a new symbol "@" at all the 1000 places.
But there is a possibility that the new symbol "@" is already present
at some places
in the text file. So, I may mistook it as "the". Can anyone suggest me
how to solve
this problem ?

Thanx for any help/hints in advance ...

.



Relevant Pages

  • Re: compressing a text file
    ... I am new to the field of data compression. ... algorithm to compress ... One way I thought of replacing the frequently occuring ... I may mistook it as "the". ...
    (comp.compression)
  • Re: (No Subject)
    ... > we need to send data the GPS data to the base station, ... > data to be compressed is 70%.can u provide the algorithm ... It's impossible to guarantee a certain percentage of data compression ...
    (Debian-User)
  • Re: (No Subject)
    ... On Tue, 2004-03-30 at 15:00, Manjula Kuntennkar wrote: ... > we are looking for the algorithm of data compression, ... > data to be compressed is 70%.can u provide the algorithm ...
    (Debian-User)
  • (No Subject)
    ... we are looking for the algorithm of data compression, ... we need to send data the GPS data to the base station, ... data to be compressed is 70%.can u provide the algorithm ...
    (Debian-User)
  • (No Subject)
    ... we are looking for the algorithm of data compression, ... we need to send data the GPS data to the base station, ... data to be compressed is 70%.can u provide the algorithm ...
    (Debian-User)