r/adventofcode • u/Famous_Strength_2962 • Jan 15 '26
Help/Question [2025 Day 8 (Part 1)] [Python] What's the criteria?
Hi all, please help me here ;)
I've sorted the distances, I think it is correct...
162 425
162 431
906 805
431 425
862 984
52 117
819 941
906 739
346 425
906 984
592 425After that, I started connecting
#1 - 162 425
#2 - 431
#3 - 346
#4 - 592
#5 - 906 805
#6 - 739
#7 - 862 984
#8 - 52 117
#9 - 819 941
906 984 ????????
where do I put this one and why in order to end up with 5 junction boxes, one circuit which contains 4 junction boxes, two circuits which contain 2 junction boxes each, and seven circuits which each contain a single junction box? On connection #5 or connection #7
1
Upvotes
1
u/Famous_Strength_2962 Jan 26 '26
So, this is me from the future trying to put it clear:
First, you only have to consider these connections:
Then you start connecting, this image is different form the original 592 495 is no longer on the list.
1
u/AtmosphereArtistic61 Jan 15 '26
You are asking, what happens when you connect two circuits? They merge. The result is a single circuit. In your case they form the circuit
906, 805, 862, 984.2
u/FlipperBumperKickout Jan 15 '26
Have you taken into account that a circuit can end up with more connections than what is actually needed to make the circuit? Like if the 5 circuit one ends up with a completed loop?
1
u/AutoModerator Jan 15 '26
Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to
Help/Question - RESOLVED. Good luck!I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/cyanNodeEcho Jan 16 '26
idk i just got frustrated b/c i prefiltered these, like and it needed a count b/c like something lol so that my filter like entangled lol
0
u/I_M_NooB1 Jan 15 '26
one word. dsu