search-core
Shared cost, heuristic, goal and budget traits for search and planning crates, with exact no_std cost types
cargo add search-core Who it is for
- Authors of search and planning crates who want their algorithms to accept the same heuristics, goal tests and budgets as the other crates of the ecosystem, instead of defining yet another
Heuristictrait. - Users of those crates who write a domain heuristic (a grid distance, a pattern database, a relaxed-plan estimate) or a goal test once and pass it to every algorithm that takes the shared trait for that cost type, such as the A* family of heuristic-search or the MDP planners of stochastic-search (which use
f64costs). - Anyone who needs exact path costs, e.g. prices or durations with a fixed number of decimal places, or lexicographic costs such as "fewest steps, then fewest conflicts".
- If you are looking for an actual search algorithm rather than the traits, pick heuristic-search for A* and its relatives, multiobjective-search for Pareto fronts, mapf-search for multi-agent pathfinding or stochastic-search for MDPs and POMDPs.
Part of the planning and search crates; see also this crate's overview page.