Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ArrayPriorityQueue skeleton implementation
- *
- * @author YOUR NAME HERE
- * @version DATE HERE
- */
- public class ArrayPriorityQueue<Element extends Comparable<Element>> implements PriorityQueue<Element>
- {
- private Element[] priorityQ;
- public final static int kMaxElements = 10000;
- @SuppressWarnings({"unchecked"})
- public ArrayPriorityQueue()
- {
- priorityQ = (Element[])new Comparable[kMaxElements];
- }
- /** {@inheritDoc} */
- public void clear()
- {
- }
- /** {@inheritDoc} */
- public Element dequeue()
- {
- }
- /** {@inheritDoc} */
- public void enqueue(Element element)
- {
- }
- /** {@inheritDoc} */
- public boolean isEmpty()
- {
- }
- /** {@inheritDoc} */
- public Element peek()
- {
- }
- /** {@inheritDoc} */
- public int size()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement