Lossless and Lossy Compression