Patent ID: 11881873
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Field: Basic communication processes (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A method for Huffman correction and encoding, comprising:
obtaining a target data block in a target file;
constructing a Huffman tree by using the target data block;
determining whether a depth of the Huffman tree exceeds a preset value; and
when the depth of the Huffman tree does not exceed the preset value, by using the Huffman tree, generating a first code table and encoding the target data block; or
when the depth of the Huffman tree exceeds the preset value, by using a standby code table, encoding the target data block;
wherein the standby code table is a code table of an encoded data block in the target file.