2 ms·
My infinite compression algorithm totally works. It's just a little slow. def compress(input, threshold): decompressor = lambda: 0 while co
by ajuc 6y ago
My infinite compression algorithm totally works. It's just a little slow.
def compress(input, threshold):
decompressor = lambda: 0
while code_size(decompressor) > threshold or input != decompressor():
decompressor = randomize_code()
return decompressor