r/adventofcode • • Dec 10 '16
Visualization [2016 Day 10][Python/DOT] Graph of Day 10
[deleted] — view deleted post
11
Upvotes
r/adventofcode • • Dec 10 '16
[deleted] — view deleted post
3
u/p_tseng Dec 10 '16
Here's mine. http://imgur.com/a/kf5B8
2
u/3urny Dec 10 '16 edited Dec 10 '16
You can really tell how the puzzle is constructed from this.
I'd guess you can draw this like a square (rect?) with all high pointers going left-right and all low pointers going top-bottom. All outputs will end up on the bottom. Plus you'll have inputs inserted at random places.
Edit: I have a 21x10 grid of bots plus 21 outputs.
1
u/Twisol Dec 10 '16 edited Dec 10 '16
I'm confused about why some of the interior nodes have three incoming values (like bot71, with an extra one from input176). Also, at least one "input" node (input146) has two outgoing edges. What do these features indicate?
EDIT: Actually, I can kind of guess why some nodes have three incoming edges. I'd guess the "fabric" of bots is constructed first, and then certain bots are fed input immediately (with the caveat that one of their upstream edges has to be guaranteed never to trigger). Still not sure how one input value fed into multiple bots -- does your input file have duplicate values?
Also, I don't see any bot that receives two inputs. Am I missing something?
1
u/kdeberk Dec 10 '16
The code could be wrong, I'm getting different output with this:
0
u/[deleted] Dec 10 '16
[deleted] — view deleted comment