The invention relates to the technical field of
data compression, in particular to a ZSTD compression
algorithm optimization method based on joint coding and ternary
decomposition, and the method comprises the following steps: S1, building a
joint frequency table based on the joint distribution of the literal length and the matching length of a previous section, setting a
frequency deviation criterion, and dynamically adjusting a low-frequency combination proportion; s2, decomposing the offset value structure into a leading segment, a trailing segment and a
middle segment, performing bit width-entropy ratio analysis on the
middle segment, and selecting a symbol index or bit
stream coding; and S3, entropy
discriminant coding is performed on the joint symbol and the offset symbol respectively, and a structure position is mapped synchronously to generate a structured compressed output
stream. According to the method, collaborative optimization of frequency self-adaption, redundancy minimization and structured mapping is realized through joint symbol dynamic modeling and offset ternary structure entropy
discriminant coding, so that the ZSTD compression efficiency and the coding stability are remarkably improved.