Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrrobi/prioq
A custom build library to use Priority Queue in A* Search Algorithm
https://github.com/mrrobi/prioq
ai artificial-intelligence artificial-intelligence-algorithms informed-search library py python python-library python3
Last synced: about 2 months ago
JSON representation
A custom build library to use Priority Queue in A* Search Algorithm
- Host: GitHub
- URL: https://github.com/mrrobi/prioq
- Owner: Mrrobi
- License: mit
- Created: 2020-02-13T02:55:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T10:36:44.000Z (almost 5 years ago)
- Last Synced: 2024-11-16T13:22:59.805Z (about 2 months ago)
- Topics: ai, artificial-intelligence, artificial-intelligence-algorithms, informed-search, library, py, python, python-library, python3
- Language: Python
- Homepage: https://pypi.org/project/prioQbyrobi/
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Priority Queue For A* Search
Anyone of you can use this package to handle the priority Queue part of your A* Search code.
[PyPi Link](https://pypi.org/project/prioQbyrobi/)## using process
### First need to add the library```python
pip install prioQbyrobi
```### Then you need to import the A* Search specific queue from the library
```python
from prioQbyrobi import astar as QminQ = Q.PriorityQueue() #Creating an object of PriorityQueue class of the library
minQ.insert(yournodeObj) #inserting your node object into the Queue
minQ.delete() # popping your node object from the priority queue```
## N.B: You must need to declare a variable name "total_cost" the priority is prioritized based on this