<

Challenge 9

User Image Log-in
with Discord

Part One:
Get Us Outta Here

You wake up to find the Aurawrought defector standing far too close to your face, staring at you intently. Startled, you nearly leap to the opposite end of your bunk. Clearly, these beings are not familiar with the concepts of privacy or personal space. It proudly announces that it's finished with the map to the Aurawroughts and hands you a piece of paper, your puzzle input. However, instead of containing any obvious coordinates or paths, it has a list of nodes and their connections.

The defector explains that the path to the Aurawroughts must first cross a Nebula Labyrinth, riddled with electromagnetic storms. The node system reveals the paths that avoid these storms, guiding the ship safely outside the Nebula Labyrinth.

You realize you need to take this information to Captain Xarlos on the Bridge, but first, you must make sense of this strange system. Your task is to scour the depths of the Nebula Labyrinth and find the safest path through the storms.

Your paper contains

You can guide Captain Xarlos through the shortest path, but he first would like to know how many units of space must be traversed.
(Each node represents one unit of space.)

For example:

Consider this data 10,31
10:18
12:13,20
13:12,14
14:13,15,22
15:14
18:10,26
20:12,28
22:14,30
26:18,27
27:26,28
28:27,29
29:28,30
30:22,29,31
31:30
You see in the first line that the starting node is 10 and the ending node is 31.
If it helps to visualize this as a 2D maze, it would look like this
########
#10#1213 1415#
#18#20# 22##
#262728 293031#
########

Following the nodes' connections, you can take different paths:

The shortest path through this map is 8 units of space long.

########
#10#12 131415#
#18#20# 22##
#262728 293031#
########

Now, it's time to navigate the actual map through the Nebula Labyrinth.

Here is your data for the starting point, ending point, and nodes: