Skip to content

Bug Fix #5

Description

@semenshestakov

Problem

I noticed that on large graphs, where there are no obstacles, the algorithm checks many more points than necessary

Source

calculate Heuristic was considered relative to the indexes, and "g" relative to the length (int), which for HV = 10 (1.0), and for the diagonal 14 (square(2.0))

fix

in calculateHeuristic:
...
this.h *= 10

Сurrent version: We explore too many routes

Screenshot 2024-09-19 at 23 39 10

with correction N1:

Screenshot 2024-09-20 at 11 02 37

with correction N2:

Screenshot 2024-09-20 at 11 03 43

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions