The invention provides a
stream intelligence prediction differencing and compression
algorithm, which comprises the following steps: a, determining a
source data stream and a new
data stream; b, determining the most suitable dictionary according to the new
data stream; c, performing matching on the new
data stream based on the most suitable dictionary; d, coding the new data
stream according to a matching result; e, determining a differencing data stream according to a coding result. The invention also provides a stream intelligence prediction differencing and compression unit, which comprises a first determining device, a second determining device, a first
processing unit, a first coding device and a third determining device, wherein the first determining device is used for determining the
source data stream and the new data stream; the second determining device is used for determining the most suitable dictionary according to the new data stream; the first
processing unit is used for performing the matching on the new data stream based on the most suitable dictionary; the first coding device is used for coding the new data stream according to the matching result; the third determining device is used for determining the differencing data stream according to the coding result. Different from a traditional dictionary compression
algorithm adopting one dictionary, the stream intelligence prediction differencing and compression
algorithm provided by the invention is capable of generating multiple dictionaries so as to generate the optimal effect. The stream intelligence prediction differencing and compression algorithm has network adaptivity.