Data compression method and device, electronic equipment and storage medium
The invention relates to a data compression method and device, electronic equipment and a storage medium, and is applied to the technical field of computers.The method comprises the steps that to-be-compressed data is obtained, the to-be-compressed data comprises at least one character, and the at l...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a data compression method and device, electronic equipment and a storage medium, and is applied to the technical field of computers.The method comprises the steps that to-be-compressed data is obtained, the to-be-compressed data comprises at least one character, and the at least one character comprises at least one character type; determining the character frequency of the character of each character type, wherein the character frequency indicates the occurrence frequency and position of the character in the to-be-compressed data; determining a target compression position in the to-be-compressed data based on the character frequency; target compressed data in the to-be-compressed data is compressed, a compression result is obtained, and the target compressed data is the to-be-compressed data obtained before the target compression position.
本申请涉及一种数据压缩方法、装置、电子设备和存储介质,应用于计算机技术领域,其中,方法包括:获取待压缩数据,所述待压缩数据中包括至少一个字符,所述至少一个字符中包括至少一种字符类型;确定每种所述字符类型的所述字符的字符频率,所述字符频率指示所述字符在所述待压缩数据中出现的次数和位置;基于所述字 |
---|