摘要 |
A system for compressing a data stream comprises receiving means for receiving a data stream having a plurality of data symbols; identifying means for identifying a first data phrase as a first repeated phrase, the first data phrase being a combination of a first data term and at least a second data term, if the first data phrase matches a first library phrase, the first library phrase is one of a plurality of library phrases in a phrase library; first replacing means for replacing the first data phrase with a first data phrase identifier associated with the first library phrase to generate a compressed data stream if the first data phrase is identified as the first repeated phrase; first storing means storing the first data phrase as a second library phrase if the first data phrase does not match any of the plurality of library phrases; second replacing means for replacing the first data phrase with a second data phrase identifier associated with the second library phrase to generate a compressed data stream if the first data phrase is not identified as the first repeated phrase and transmitting means for transmitting the compressed data stream while still receiving additional data symbols in the data stream; wherein each of the data phrases includes a fixed number of data terms and each of the data terms is one of a data symbol and a data phrase identifier. |