Hi Ram! A quick question . Why do we need compression?
See Here's why Radha:
Compression is needed when a smaller amount of data should be used Eg: Sending an image or taking less space on a disk
Huffman coding
Lossless
Lossy
There are two types of compression: Lossy and Lossless
Lossy:
Lossy is a type of compression where it compresses data files however it loses some data in the process making it less accurate
This type of compression is best for media like videos and pictures such as internet streaming
This type of compression is best for files that need to be accurate like work documents or important messages
Lossless compression is where it compresses data files without losing any data. Unfortunately every file cannot be compressed this way but those that can are more accurate than lossy compressed filed
Lossless:
Huffman coding is a lossless data compression algorithm where a variable length code is assigned to different characters with the most frequent characters being the smallest codes and the least frequent characters being the largest codes.
Thank you Ram! I finally understood.
Sukurta daugiau nei 30 milijonų siužetinių lentelių