Coordinate compression is a technique to map a large set of points to a smaller range by removing gaps and/or redundant information. By…