ScratchData LogoScratchData
Back to colinmacc_test's profile

Binary Compression

COcolinmacc_test•Created September 6, 2021
Binary Compression
17
11
117 views
View on Scratch

Instructions

Just something. Only works if the input length is a multiple of 5. If it isn't you can pad it, but then you might need to change this to encode the true length of the string somewhere. How it works is it splits the binary into groups of 5 digits, then looks up a list entry using the decimal value of the group + 1 (1-32), then returns that list entry.

Project Details

Project ID567149769
CreatedSeptember 6, 2021
Last ModifiedSeptember 6, 2021
SharedSeptember 6, 2021
Visibilityvisible
CommentsAllowed