mlpy.search.informed.AStar

class mlpy.search.informed.AStar(task)[source]

Bases: mlpy.search.ISearch

A* algorithm.

This class implements the A* algorithm

Parameters:

task : SearchTask

The search task to perform

Attributes

mid The module’s unique identifier.

Methods

get_path() Return the optimal path from the start to the goal node.
get_results() Display the search results visually.
load(filename) Load the state of the module from file.
save(filename) Save the current state of the module to file.
save_path(path, filename) Save the path to file.
search() Perform the search.