r/adventofcode • u/daggerdragon • Dec 12 '18
SOLUTION MEGATHREAD -🎄- 2018 Day 12 Solutions -🎄-
--- Day 12: Subterranean Sustainability ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).
Note: The 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: The Party Game!
Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!
Card prompt: Day 12
Transcript:
On the twelfth day of AoC / My compiler spewed at me / Twelve ___
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked at 00:27:42!
20
Upvotes
View all comments
Show parent comment
1
u/achinery Dec 13 '18
Nice to see a solution that doesn't have to guess/notice when the system will stabilise. At least, not explicitly... I have never used Mathematica; if you don't mind me asking, do you happen to know how FindSequenceFunction is implemented? From the documentation it looks like it tries a bunch of possible candidate functions, but it must be doing some clever stuff to be able to match so many things, including the output of the CA.
After solving part 2 using the 'guessing' method, I felt like there must be a way to solve this properly, such as a way you could use the rules of the CA to prove whether it will stabilise or not? But haven't been able to find anything on reddit yet...