CS336: Intelligent Information Retrieval Lecture 6: Compression Compression Change the representation of a file so that takes less space to store less time to transmit Text…