summaryrefslogtreecommitdiff
path: root/makefile
AgeCommit message (Collapse)Author
2022-12-29Solve puzzle 25 part 1Adam Spragg
2022-12-28Solve puzzle 24 part 1Adam Spragg
2022-12-28Solve puzzle 23 part 1Adam Spragg
2022-12-22Solve puzzle 22 part 1Adam Spragg
2022-12-21Solve puzzle 21 part 1Adam Spragg
2022-12-20Solve puzzle 20 part 1Adam Spragg
2022-12-20First attempt at puzzle 19 part 1 (buggy)Adam Spragg
It produces *a* result for each blueprint, but not the best result. I feel like that's a hard problem. The number of decisions about what to build when over 24 iterations explodes so much that you can't brute-force the optimal geode count. Either there's a way of pruning possibilities that I've not thought of, or there's a pretty good heuristic you can get from the blueprint about the proportions of how many of each type of material you want to be producing, that you can pick what to build and get a geode count that doesn't deviate from optimal in only 24 iterations. One other possibility is transforming this puzzle into a SAT format and letting a SAT solver attack it, with its ability to prune decision trees effectively. But I don't have any actual experience with those, and I'm not sure I have time to figure that out for AoC. https://en.wikipedia.org/wiki/SAT_solver
2022-12-19Solve puzzle 18 part 1Adam Spragg
2022-12-18Solve puzzle 17 part 1Adam Spragg
2022-12-17Solve puzzle 16 part 1Adam Spragg
That was a tough one. Still takes 2.5s on my hardware. Should be able to multithread the permuation search at some point, if I want to.
2022-12-15Solve puzzle 15 part 1Adam Spragg
2022-12-14Solve puzzle 14 part 1Adam Spragg
2022-12-13First attempt at puzzle 13 part 1 (buggy)Adam Spragg
Gets correct answer for test input, but wrong answer (5711) for main input. The problem is, I don't know where it's going wrong, and the inputs are complicated, so tracking down the source of the problem is going to be a major pain. Wish I hadn't put this off for most of the day, and had more time to look at it now.
2022-12-12Solve puzzle 12 part 1Adam Spragg
2022-12-11Solve puzzle 11 part 1Adam Spragg
2022-12-10Solve puzzle 10 part 1Adam Spragg
2022-12-09First attempt at puzzle 9 part 1 (buggy)Adam Spragg
Apparently the answer it gets for the full input (5736) is wrong. The answer for the test input (13) is right though. Added a bunch of debugging logic, to try and see *where* it's going wrong, but I can't see it so far. This one is interesting.
2022-12-08Solve puzzle 8 part 1Adam Spragg
2022-12-07Solve puzzle 7 part 1Adam Spragg
2022-12-06Solve puzzle 6 part 1Adam Spragg
2022-12-06Create the bin/ directory if it doesn't existAdam Spragg
2022-12-05Add support for CrateMover9001, to solve part 2Adam Spragg
2022-12-05Complete puzzle 5aAdam Spragg
2022-12-04Advent of code 2022 problems 1-4Adam Spragg