Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bhrgunatha
on Dec 13, 2022
|
parent
|
context
|
favorite
| on:
Solving Advent of Code with jq
You would hope so. Saw many people on r/adventofcode using dijkstra or even A* when every path step is just 1. I went with bfs because I'm pretty sure using a priority queue or heuristic function is going to slow those down.
vjerancrnjak
on Dec 13, 2022
[–]
For the input sizes in aoc, the slowdown shouldn't be measurable.
Taking input size into account, you do not even need a queue, just loops.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: