r/adventofcode • u/daggerdragon • Dec 17 '19
SOLUTION MEGATHREAD -🎄- 2019 Day 17 Solutions -🎄-
--- Day 17: Set and Forget ---
Post your full code solution using /u/topaz2078's paste or other external repo.
- Please do NOT post your full code (unless it is very short)
- If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.
(Full posting rules are HERE if you need a refresher).
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code's Poems for Programmers
Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.
Day 16's winner #1: "O FFT" by /u/ExtremeBreakfast5!
long poem, see it here
Enjoy your Reddit Silver, and good luck with the rest of the Advent of Code!
View all comments
Show parent comment
1
u/levital Dec 17 '19
As someone who's written a PhD thesis related to the Re-Pair Algorithm, this is a rather embarrassing connection not to have made... As far as I can see that would've worked on my input, with some partial decompression based on the size of the represented strings for a given nonterminal (i.e., find three NTs, that can make the entire string and each produce a string of length <= 10).
...I don't have time today, but I think I'll get this to work sometime this week.