Commit Graph
216 Commits
Author SHA1 Message Date
ktims cceb6f232e Import aoc2024 history into 2024/
git-subtree-dir: 2024
git-subtree-mainline: 6fed03a8e9
git-subtree-split: 7143cfe0fd
2026-12-02 13:13:33 -07:00
ktims 6fed03a8e9 Import aoc2023 history into 2023/
git-subtree-dir: 2023
git-subtree-mainline: 284b85580d
git-subtree-split: 48c96ce7ea
2026-12-02 13:13:21 -07:00
ktims 284b85580d Import aoc2022 history into 2022/
git-subtree-dir: 2022
git-subtree-mainline: addb35fc75
git-subtree-split: e5d89711e2
2026-12-02 13:13:17 -07:00
ktims addb35fc75 Ignore callgrind output, .vscode and agentfiles 2026-12-02 13:13:08 -07:00
ktims 7143cfe0fd utils fixes 2026-12-02 13:09:10 -07:00
ktims bb5f7f52f6 day24: i guess a part 1 solution 2026-12-02 13:08:33 -07:00
ktims c926c945de repo setup 2026-12-02 13:03:57 -07:00
ktims e5d89711e2 cleanup 2026-12-01 14:40:59 -07:00
ktims d1282256fa day5: both parts 2026-12-01 14:39:56 -07:00
ktims dd1adca41e day7: both parts 2026-12-01 13:36:28 -07:00
ktims 4f996e20bc cleanup 2025-12-01 17:16:23 -08:00
ktims a7c32b213f clippies 2025-12-01 17:15:54 -08:00
ktims aed73754c8 cleanup 2025-12-01 17:11:56 -08:00
ktims 1971d5a95c day4: both solutions 2025-12-01 16:55:44 -08:00
ktims b165cfce48 day3: both solutions 2025-12-01 16:24:28 -08:00
ktims 42d13d41b1 day2: both solutions 2025-12-01 14:49:08 -08:00
ktims 331755f1cf convert to aoc-runner and day1 solutions 2025-12-01 13:59:01 -08:00
ktims 77fba87ef6 day25: complete solution sill need to finish day 21 for the last star! 2024-12-24 21:35:05 -08:00
ktims 8b8ed2a323 day24: part 1 solution 2024-12-23 21:37:50 -08:00
ktims 6efb9e0f83 day23: add pivot to bron-kerbosch, use more hashsets for speed 2024-12-23 02:07:49 -08:00
ktims 237ca36381 day23: clippies 2024-12-23 00:57:52 -08:00
ktims d3bade1bdd day23: part 2 - bron kerbosch solution 2024-12-23 00:54:23 -08:00
ktims 50a197856a day23: part 2 working (i think) but too slow 2024-12-23 00:23:36 -08:00
ktims d3ce12693b day23: part 1 solution 2024-12-22 21:48:59 -08:00
ktims d31f9725f5 day22: perf and clippies, down to < 1s 2024-12-22 02:21:24 -08:00
ktims c5857ed449 day22: improvements 2024-12-21 23:49:07 -08:00
ktims 40d5e820bc grid: additional impls of Coord2d 2024-12-21 23:49:06 -08:00
ktims 5d518248a8 day20: clippies and performance 2024-12-21 23:49:06 -08:00
ktims cebdbd1007 day20: part 2 solution (slow) 2024-12-21 23:49:05 -08:00
ktims 32937aaa0e day22: part 2 solution. 38s runtime but works. 2024-12-21 23:49:04 -08:00
ktims c681727fb3 day22: part 1 solution 2024-12-21 23:46:08 -08:00
ktims 02fc154547 grid: use coord2d more consistently 2024-12-21 21:01:16 -08:00
ktims 13f61e3a2b part2: works up to the 4th iteration, then returns too high values
I think the issue is not testing both possible paths for direction keypads, but doing this naively blows up the compute complexity (and I got the wrong answer)
2024-12-21 02:48:39 -08:00
ktims 8958ba9361 day21: part 1 solution 2024-12-20 23:20:21 -08:00
ktims e60f6effa3 day20: part 1 solution 2024-12-20 20:56:14 -08:00
ktims c2e3422544 day19: rayon - ez mode parallelization, speed * 6 2024-12-18 23:09:51 -08:00
ktims 6b6dededc2 day19: clippies 2024-12-18 22:45:10 -08:00
ktims 65d498f168 day19: complete solution 2024-12-18 22:39:32 -08:00
ktims cdb3a7261a day19: pre puzzle boilerplate 2024-12-18 20:56:36 -08:00
ktims dbee7d91b6 day18: clippies 2024-12-18 15:42:23 -08:00
ktims 0fee7c3594 ci: report errors correctly 2024-12-18 15:36:02 -08:00
ktims 824d111b18 ci: don't use '-D warnings' except for clippy run 2024-12-18 15:34:15 -08:00
ktims a1dceb6ff1 day18: perf: swap dijkstra for bfs for ~30% improvement 2024-12-18 15:31:12 -08:00
ktims 3712b32634 grid: row and column iterators 2024-12-18 15:31:07 -08:00
ktims 2a11e17d92 day18: improve brute for for binary search for big gainz
also avoid unnecessary path tracking work
2024-12-18 11:35:22 -08:00
ktims 1c254fff93 Revert "cargo: optimize harder"
This reverts commit 44108c4b35.
2024-12-18 00:53:51 -08:00
ktims 44108c4b35 cargo: optimize harder 2024-12-18 00:41:40 -08:00
ktims b588837624 day18: small optimization - avoid duplicates
not sure if the input contains dupes, but avoid doing a second path
search if the square already contains a byte, seems like a small
performance gain
2024-12-18 00:41:28 -08:00
ktims 9a6ca66059 grid: microoptimizations 2024-12-17 23:52:14 -08:00
ktims 2729799fa2 day18: optimize
* Implement generic path tracing, so part 1 doesn't store and return the full path,
  just the count.
* Improve part2 impl to only run path search if the block fell on our
  last path.
* Start part2 path search from the best path position immediately before
  the placed block.
2024-12-17 23:51:09 -08:00