day 16 - advent of code 2024 in rust

  Рет қаралды 982

chris biscardi

chris biscardi

Күн бұрын

Пікірлер: 5
@carterthaxton
@carterthaxton 29 күн бұрын
FWIW, I'm still watching! Thanks for doing this series.
@gbegerow
@gbegerow 28 күн бұрын
Btw.A* without heuristic is jus Dijkstra.
@carterthaxton
@carterthaxton 28 күн бұрын
Yup, exactly. Pathfinding has a dijkstra_partial function, which could have also been used here to obtain all of the shortest paths. It accepts a stop function, which you can use to stop once you reach a cost greater than the minimum, instead of stopping as soon as you find the exit.
@aderakin5395
@aderakin5395 29 күн бұрын
Pathfinding seems nice to use. I was using petgraph, but building the graph was a little annoying, so I implemented Dijkstra manually. For part 2, we can also use the result from the Dijkstra run to fill back all possible positions on the minimum cost path by retracing the cost.
@chrisbiscardi
@chrisbiscardi 29 күн бұрын
pathfinding is more directly applicable for advent of code I think, but all of the production usage I've seen in services, etc is using petgraph so its nice to get to know it too since aoc can be a good way to get an introduction.
day 17 part 1 - advent of code 2024
48:35
chris biscardi
Рет қаралды 852
day 20 - advent of code 2024
28:09
chris biscardi
Рет қаралды 571
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Comprehending Proc Macros
47:41
Logan Smith
Рет қаралды 25 М.
Rust Functions Are Weird (But Be Glad)
19:52
Logan Smith
Рет қаралды 146 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 206 М.
Advent of Code 2024 - Day 16 - Reindeer Maze
13:19
Daniel Persson
Рет қаралды 271
day 18   advent of code 2024
38:28
chris biscardi
Рет қаралды 593
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН