I want to write a compression algorithm for a specific use case that I have. I have many arrays which are for the most part, very similar. Each value in the array is an integer and is related to the corresponding value in the previous array.
These arrays have a correlation coefficient of around 0.8 and they will be stored together in the same file in a binary format
How do I go about writing an algorithm to losslessly compress these arrays for minimum storage size?