Heuristic Searches
Project description
Heuristic Searches
This module contains functions to perform a* search and ao* search algorithms
Installation
Run the following command to install:
pip install heuristicsearch
Useage
from a_star_search import AStar
adjacency_list = {
'A': [('B', 1), ('C', 3), ('D', 7)],
'B': [('D', 5)],
'C': [('D', 12)]
}
heuristics = {'A':1, 'B':1, 'C':1, 'D':1}
graph1 = AStar(adjacency_list, heuristics)
graph1.apply_a_star(start='A',stop='B')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
heuristicsearch-0.0.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for heuristicsearch-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e783a709911f5a4ee874fdf64f3b51fb317ce196bce56ffe95c083d0f6b191eb |
|
MD5 | fbccd4dc75763df102d578dcbfad6e33 |
|
BLAKE2b-256 | b85371e4cc90b43becb11f39f0ed31d75886378c4ff0b08a825841dd2f6aa3a0 |