Skip to main content

A package for priority queue to make A* Search

Project description

Priority Queue For A* Search

Anyone of you can use this package to handle the priority Queue part of your A* Search code. Github Open Source

using process

First need to add the library

pip install prioQbyrobi

Then you need to import the A* Search specific queue from the library

import prioQbyrobi as Q

minQ = 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

##Existing methods

  • insert() - insert node object.
  • delete() - pop min element and return it.
  • isEmpty() - return true if queue is empty.
  • size() - it returns length of the queue.

N.B: You must need to declare a variable name "total_cost" the priority is prioritized based on this

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

prioQbyrobi-2.0.6.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

prioQbyrobi-2.0.6-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file prioQbyrobi-2.0.6.tar.gz.

File metadata

  • Download URL: prioQbyrobi-2.0.6.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

File hashes

Hashes for prioQbyrobi-2.0.6.tar.gz
Algorithm Hash digest
SHA256 665176529f683bfdf559e4334a9b6267a186fcaf0ec3852de9bf02e3f6dce895
MD5 f73bcd14bc987901ddf5528f7f2263ed
BLAKE2b-256 4db2391eff51b29d799a4223924710fda71b239290cb29871a9e0cbcb4bcf64c

See more details on using hashes here.

File details

Details for the file prioQbyrobi-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: prioQbyrobi-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

File hashes

Hashes for prioQbyrobi-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 09fabbd92ce13fed6f94288a38d30f2e962c5858b5150cf148deccae3cd26c6c
MD5 56bd073a9c867bb8cbeb8e0b39d1f5d3
BLAKE2b-256 bf9c246cc65193ab040056f6b913c547f4c1fa7c6a497b0f70d4f8fc1492cbde

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page