Can the data compression algorithm be patented?

Of course.

Data compression method, now Google wants to apply for a patent for its ANS video compression method, which attracted the dissatisfaction of the original author, and the battlefield expanded from Europe to the United States.

The invention relates to a data compression system and method, which are used to improve the compression rate of LZW compression algorithm.