Compression programs use algorithmscomplex mathematical formulasto shrink files. In the first step in the process, the algorithm examines the file to be compressed and looks for repeating patterns of data.