Skip to content

Instantly share code, notes, and snippets.

@mabj
Last active January 12, 2020 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabj/d29114eb54196fca54fe54bc358f4fc6 to your computer and use it in GitHub Desktop.
Save mabj/d29114eb54196fca54fe54bc358f4fc6 to your computer and use it in GitHub Desktop.
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