c++ - Data Compression Algorithms -
i wondering if has list of data compression algorithms. know nothing data compression , hoping learn more different algorithms , see ones newest , have yet developed on lot of asics.
i'm hoping implement data compression asic independent of type of data coming in (audio,video,images,etc.)
if question open ended, please let me know , i'll revise. thank you
there ton of compression algorithms out there. need here lossless compression algorithm. lossless compression algorithm compresses data such can decompressed achieve given before compression. opposite lossy compression algorithm. lossy compression can remove data file. png images use lossless compression while jpeg images can , use lossy compression.
some of known compression algorithms include:
zip archives use combination of huffman coding , lz77 give fast compression , decompression times and reasonably compression ratios.
lz77 pretty generalized form of rle , yield better results.
huffman allows repeating bytes represent least number of bits. imagine text file looked this:
aaaaaaaabbbbbcccdd
a typical implementation of huffman result in following map:
bits character 0 10 b 110 c 1110 d
so file compressed this:
00000000 10101010 10110110 11011101 11000000 ^^^^^ padding bits required
18 bytes go down 5. of course, table must included in file. algorithm works better more data :p
alex allain has a nice article on huffman compression algorithm in case wiki doesn't suffice.
feel free ask more information. topic pretty darn wide.
Comments
Post a Comment