Skip to content

Bug Fix #5

@semenshestakov

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

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