2 Star 0 Fork 0

CS-IMIS-23/zc20172324

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PriorityQueue.java 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
zc20172324 提交于 7年前 . 书上代码
//package chap12;
///**
// * PriorityQueue implements a priority queue using a heap.
// *
// * @author Lewis and Chase
// * @version 4.0
// */
//public class PriorityQueue<T> extends ArrayHeap<PrioritizedObject<T>>
//{
// /**
// * Creates an empty priority queue.
// */
// public PriorityQueue()
// {
// super();
// }
//
// /**
// * Adds the given element to this PriorityQueue.
// *
// * @param object the element to be added to the priority queue
// * @param priority the integer priority of the element to be added
// */
// public void addElement(T object, int priority)
// {
// PrioritizedObject<T> obj = new PrioritizedObject<T>(object, priority);
// super.addElement(obj);
// }
//
// /**
// * Removes the next highest priority element from this priority
// * queue and returns a reference to it.
// *
// * @return a reference to the next highest priority element in this queue
// */
// public T removeNext()
// {
// PrioritizedObject<T> obj = (PrioritizedObject<T>)super.removeMin();
// return obj.getElement();
// }
//}
//
//
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/zc20172324.git
git@gitee.com:CS-IMIS-23/zc20172324.git
CS-IMIS-23
zc20172324
zc20172324
master

搜索帮助