PHP | Ds\PriorityQueue Functions Complete Reference

PriorityQueue is similar to a Queue data structure. The elements of priority queue are pushes into the queue with a given priority. The highest priority element will always been present at the front of the queue. The priority queue is implemented using the max heap.

Requirements: PHP 7 is required for both extension and the compatibility polyfill.

Installation: The easiest way to install data structure by using the PECL extension.



pecl install ds

The complete list of Ds\PriorityQueue functions are given below:

   



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.