Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dijkstra_reach #462

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

danielhuang
Copy link
Contributor

@danielhuang danielhuang commented Oct 10, 2023

There's still some potential bugs; will need to test more.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 10, 2023

CodSpeed Performance Report

Merging #462 will not alter performance

Comparing danielhuang:dijkstra-reach (1406608) with main (3372900)

Summary

✅ 32 untouched benchmarks

@samueltardieu
Copy link
Collaborator

Thanks for this work-in-progress. What problem is it trying to solve that would not be solved using bfs_reach() or dfs_reach()? Do you have any significant problem where this would make a difference?

@danielhuang
Copy link
Contributor Author

danielhuang commented Oct 11, 2023

dijkstra_reach is used in my optimized 2022 day 19 solution, which finishes in 300ms (there's still some improvements to be made, since hashing seems to be the bottleneck here).

@samueltardieu
Copy link
Collaborator

300ms is a great time for this problem!

@samueltardieu
Copy link
Collaborator

I wonder which code could be factored out to avoid a repetition with other dijkstra…() methods

@samueltardieu
Copy link
Collaborator

@danielhuang Did you try to iron out remaining bugs (you said there could be some of them left)?

@danielhuang
Copy link
Contributor Author

Most of the bugs should be gone now; though I haven't done any fuzzing—only pre-written tests.

@samueltardieu
Copy link
Collaborator

Most of the bugs should be gone now; though I haven't done any fuzzing—only pre-written tests.

Ok, can you squash your commits into one with subject "feat: add dijkstra_reach()" and force push? I'll then add some more tests, documentation, and merge it. Thanks!

@samueltardieu
Copy link
Collaborator

@danielhuang Any news? It would be great to integrate your patch before the AoC 2023.

@samueltardieu
Copy link
Collaborator

I've squashed the commits and added some documentation

@samueltardieu samueltardieu added this pull request to the merge queue Nov 29, 2023
Merged via the queue into evenfurther:main with commit d60c026 Nov 29, 2023
13 checks passed
@samueltardieu
Copy link
Collaborator

Integrated in the just released 4.4 version. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants