Last active
January 12, 2020 20:59
-
-
Save mabj/d29114eb54196fca54fe54bc358f4fc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = [] | |
for entry in log_entries: | |
c = checksum(entry) | |
data.append(c) | |
map = {} | |
lrs = True | |
while lrs: | |
lrs = calculate_lrs(data) | |
while lrs: | |
lrs = calculate_lrs(lrs) | |
data, map = replace_lrs(data, map, lrs) | |
data = delete_repeated(data) | |
data = transform_back(data, map) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment