r/AskComputerScience • • Sep 23 '25

Lossless Compression Algorithm

[removed]

0 Upvotes

33 comments sorted by

View all comments

Show parent comment

3

u/nuclear_splines Ph.D Data Science Sep 23 '25

These questions highlight why you're not qualified to assess whether your compression algorithm works. Your choice of programming language is irrelevant - you can implement the same algorithm in any Turing-complete language and get identical output, none "work best." Likewise, "avoiding converting bases" is nonsensical; data is the same regardless of what base you choose to visualize it in.

A comparison between your algorithm and others depends on understanding how your algorithm works. Does it use block compression, or stream compression, using what kind of encoding scheme and window size? A comparison of the compression size between algorithms for a single input is almost meaningless - you want to look at distributions of compression sizes for many inputs to argue under what conditions your algorithm outperforms others and under what conditions it doesn't.