How to reduce a bigger string in smaller string in C++? Probably by hashing?

前端 未结 3 1856
广开言路
广开言路 2021-01-16 15:13

I want to compress a bigger string into a smaller string in C++. What are the different ways to do this in C++? The requirement is that output should also be a string.

3条回答
  •  [愿得一人]
    2021-01-16 15:35

    As unaperson said, Google is your friend: Data Compression Algorithms.

    Here are a few off the top of my head:
    RLE -- Run Length encoded
    Huffman
    Lepel-Ziv

提交回复
热议问题