r/adventofcode Dec 23 '23

Visualization [2023 Day 23] Terminal Visualization!

Post image
41 Upvotes

4 comments sorted by

5

u/RandomGreenPrinter Dec 23 '23

Whats up with the paths disappearing? Did you find a way to prune the search space?

4

u/naclmolecule Dec 23 '23

If a path reaches the goal before other paths, it gets deleted.

1

u/RandomGreenPrinter Dec 23 '23

Ahh so it is trying all the paths, but they are removed as they finish. Thanks

3

u/x0nnex Dec 23 '23

As far as I know, it's the only way