Skip to content

A* should tie-break on lower h-values #806

@Dietr1ch

Description

@Dietr1ch

Ranking with min (f, h) instead of min f tends to do fewer expansions.

The idea is that among the many search nodes with best f-value, the ones further away (higher g, lower h values) are the ones that will move the fringe closer to a goal.

Having the same f-values on many nodes is common, although it's not easy to describe exactly when there's a lot of ties in a given search problem.


https://github.com/petgraph/petgraph/blob/master/src/algo/astar.rs#L137

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-crateArea: Petgraph crate functionalityC-feature-acceptedCategory: A feature request that has been accepted pending implementationC-performanceCategory: A change motivated by improving speed, memory usage or compile times

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions