Skip to content

Add BiDirectional AStar #46

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

Merged
merged 1 commit into from
Aug 22, 2017
Merged

Conversation

Tjstretchalot
Copy link
Contributor

I switched to using asserts rather than exceptions for things that should
be impossible, since exceptions should at least be partly caused by the
parameters

  • docs/Pathfinding.rst - Add BiDirectionalAStar. Functions identically to
    onedirectional astar, as the differences are solely in performance
    characteristics

  • pygorithm/pathfinding/astar.py - Minor documentation tweaks for
    consistency and improve performance of reversing the list for one
    directonal astar (avoid shifting elements so much). Fix referencing the
    loop variable 'i' instead of 'found' and remove related TODO

Add BiDirectionalAStar. I think there is some room to reduce the length

  • tests/test_pathing.py - Add the basic test (passing)

I switched to using asserts rather than exceptions for things that should
be impossible, since exceptions should at least be partly caused by the
parameters

* docs/Pathfinding.rst - Add BiDirectionalAStar. Functions identically to
onedirectional astar, as the differences are solely in performance
characteristics

* pygorithm/pathfinding/astar.py - Minor documentation tweaks for
consistency and improve performance of reversing the list for one
directonal astar (avoid shifting elements so much). Fix referencing the
loop variable 'i' instead of 'found' and remove related TODO

Add BiDirectionalAStar. I think there is some room to reduce the length

* tests/test_pathing.py - Add the basic test (passing)
@OmkarPathak OmkarPathak merged commit 89d733e into OmkarPathak:master Aug 22, 2017
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