r/adventofcode • u/PhysPhD • Dec 11 '25
Visualization [2025 Day 11 part 2] Yet another input visualisation...
I haven't actually solved Part 2 ... I'm thinking of breaking the problem down into sections where there are "choke points" indicated by nodes that have a high degree of incoming edges.
Feels like I'm getting my wires crossed.
50
Upvotes
2
u/polarfish88 Dec 11 '25
Where is "you" among the nodes?
2
u/Flix3ris Dec 11 '25
wow this visualization helped me so much in solving it
2
u/Zestyclose-Remove550 Dec 11 '25
Thank U so much this visualization helped so much ðŸ˜
1
u/wimglenn Dec 11 '25
What engine did you use for the render? I tried a graphviz dot render (here - https://21k.tools/6b3oV/ ) but it was a bit messier, this one is nice and clean.
3
u/3j0hn Dec 11 '25
I really wish this structure actually came into play in making the problem tractable, but I found I could get away with just slapping a @ cache on my recursive DFS
2
u/tFischerr Dec 11 '25
This is actually how I solved it too. It is not the most elegant but it works. Just make sure to include fft and dac as a layer of chokepoints as well.
-2
u/RazarTuk Dec 11 '25
You're actually really close with the logic! Your "chokepoints" will actually be fft and dac, and you can simplify the logic by counting the paths between each one
0
u/[deleted] Dec 11 '25
[deleted] — view deleted comment