Advent of Code 2023 day 21
12/21/2023, 5:00 AMJonathan Kolberg
12/21/2023, 5:26 AMJonathan Kolberg
12/21/2023, 5:29 AMTomasz Linkowski
12/21/2023, 5:48 AMTomasz Linkowski
12/21/2023, 5:49 AMdaugian
12/21/2023, 7:33 AM26501365 steps… (Just thinking out loud)daugian
12/21/2023, 7:43 AMdaugian
12/21/2023, 7:43 AMdaugian
12/21/2023, 7:48 AMPaul Woitaschek
12/21/2023, 7:49 AMPaul Woitaschek
12/21/2023, 7:50 AMdaugian
12/21/2023, 7:52 AMPaul Woitaschek
12/21/2023, 7:52 AMdaugian
12/21/2023, 7:52 AMdaugian
12/21/2023, 7:53 AMbj0
12/21/2023, 7:54 AMPaul Woitaschek
12/21/2023, 7:56 AMdaugian
12/21/2023, 7:56 AMPaul Woitaschek
12/21/2023, 7:57 AMdaugian
12/21/2023, 7:58 AMdaugian
12/21/2023, 8:01 AMWerner Altewischer
12/21/2023, 8:06 AMdaugian
12/21/2023, 8:10 AMdaugian
12/21/2023, 8:10 AMWerner Altewischer
12/21/2023, 8:11 AMdaugian
12/21/2023, 8:12 AMdaugian
12/21/2023, 8:12 AMdaugian
12/21/2023, 8:14 AM26501365 steps)daugian
12/21/2023, 8:16 AM# east/west.daugian
12/21/2023, 8:18 AMdaugian
12/21/2023, 8:18 AMdaugian
12/21/2023, 8:19 AMdaugian
12/21/2023, 8:21 AMdaugian
12/21/2023, 8:22 AMdaugian
12/21/2023, 8:22 AMdaugian
12/21/2023, 8:22 AMdaugian
12/21/2023, 8:23 AMMichael de Kaste
12/21/2023, 8:51 AMMichael de Kaste
12/21/2023, 8:51 AMdaugian
12/21/2023, 9:06 AMTomasz Linkowski
12/21/2023, 9:29 AMelizarov
12/21/2023, 10:06 AMdaugian
12/21/2023, 10:10 AMdaugian
12/21/2023, 10:11 AMelizarov
12/21/2023, 10:12 AMelizarov
12/21/2023, 10:17 AMMichael de Kaste
12/21/2023, 10:30 AMTomasz Linkowski
12/21/2023, 10:30 AMMichael de Kaste
12/21/2023, 10:31 AMdaugian
12/21/2023, 11:42 AMdaugian
12/21/2023, 11:46 AMevgenim
12/21/2023, 1:57 PMMax Thiele
12/21/2023, 3:02 PMMichael de Kaste
12/21/2023, 6:48 PMCharles Flynn
12/21/2023, 10:24 PMbj0
12/21/2023, 10:35 PMritesh
12/21/2023, 11:44 PMephemient
12/22/2023, 12:36 AMephemient
12/22/2023, 12:37 AMephemient
12/22/2023, 12:49 AMelizarov
12/22/2023, 5:53 AMephemient
12/22/2023, 8:11 AM# around the entire perimeter (`require`d by my code):
• that forces all the horizontal and vertical edges extending away from the origin to have strictly linearly increasing distances from S, fully determined by the corners of the origin tile, e.g.
#.#..#.#..#.# #.#76#.#67#.#
............. 98765...56789
..... ............. 87654...45678
.#.#. #.#..#.#..#.# #.#..#.#..#.#
..S.. => ......S...... => ......S......
.#.#. #.#..#.#..#.# #.#..#.#..#.#
..... ............. 87654...45678
............. 98765...56789
#.#..#.#..#.# #.#76#.#67#.#
• which in turn forces the distances in the tiles in each quadrant to be strictly determined by their offsets
• the tiles along the X and Y axes are not so convenient, but eventually their contents also converge to being a linear increase
• if I know that a particular plot in a particular tile is at distance d, and the same plot in the next tile is at distance d+x, then d+2x, and so on, I can calculate how many tiles will contain this plot on a walk of distance N (easier with the additional assumptions that the tiles are square and have odd side-length)ephemient
12/22/2023, 8:38 AMephemient
12/22/2023, 12:45 PMdaugian
12/22/2023, 4:50 PMNeil Banman
12/22/2023, 11:47 PMNeil Banman
12/22/2023, 11:55 PMephemient
12/23/2023, 12:01 AMbj0
12/23/2023, 3:56 AMephemient
12/23/2023, 4:17 AMNeil Banman
12/23/2023, 5:18 AMThat solution is pretty neat, but the simplest one i've seen so far is just doing a polynomial fit to a quadratic equation with points on the boundariesSimplest maybe in the sense of most direct or most elegant, but I don't understand it, and this certainly doesn't help me.