An open API service indexing awesome lists of open source software.

https://github.com/dankolesnikov/maxheappriorityqueue

Java implementation of Max Heap Priority Queue
https://github.com/dankolesnikov/maxheappriorityqueue

heap java max-heap max-heap-priority-queue priority-queue

Last synced: 2 months ago
JSON representation

Java implementation of Max Heap Priority Queue

Awesome Lists containing this project

README

        

# Max Heap Priority Queue
> Java implementation of Max Heap Priority Queue.

![](header.png)

# Description
This is an array representation of priority queue abstract data type using heap data structure. Keep in mind, my implementation starts at index 1 and ignores index 0 of the array. The program Waiting room mimics an emergency hospital room where patients are prioritized based on the priority number assigned by the user.

Feel free to reach out to me if you have any questions or spot a mistake in the code!

## Usage

Terminal:

Open the folder containing jars and run:

```sh
java -jar WaitingRoom.jar
```
or
```sh
java -jar MaxHeapPriorityQueue.jar
```
## Meta

Danil Kolesnikov – [email protected]

Distributed under the MIT license.