文件名称:1216
介绍说明--下载内容均来自于网络,请自行研究使用
使用最小化堆实现一个整型的优先队列,实现下列功能:
insert x,将优先级值为x的元素入队
find x,找出优先级值大于x的最小的元素,输出其下标。如果有多个元素优先级值相同输出下标最小的那个。
DECREASE i v,将第i个节点的优先级值减少v。(Using a minimum heap to achieve an integer priority queue, the following functions are implemented: Insert x, adding elements of priority x to the team. Find x finds out the smallest element whose priority value is greater than x, and outputs its subscr ipt. If there are multiple elements with the same priority value, the one with the lowest subscr ipt is output. DECREASE I V reduces the priority value of the I node by v.)
insert x,将优先级值为x的元素入队
find x,找出优先级值大于x的最小的元素,输出其下标。如果有多个元素优先级值相同输出下标最小的那个。
DECREASE i v,将第i个节点的优先级值减少v。(Using a minimum heap to achieve an integer priority queue, the following functions are implemented: Insert x, adding elements of priority x to the team. Find x finds out the smallest element whose priority value is greater than x, and outputs its subscr ipt. If there are multiple elements with the same priority value, the one with the lowest subscr ipt is output. DECREASE I V reduces the priority value of the I node by v.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
1216\1216.cbp | 1062 | 2018-11-01 |
1216\1216.layout | 360 | 2018-11-05 |
1216\bin\Debug\1216.exe | 1579039 | 2018-11-05 |
1216\main.cpp | 3120 | 2018-11-05 |
1216\obj\Debug\main.o | 18960 | 2018-11-05 |
1216\bin\Debug | 0 | 2018-11-05 |
1216\obj\Debug | 0 | 2018-11-05 |
1216\bin | 0 | 2018-11-05 |
1216\obj | 0 | 2018-11-05 |
1216 | 0 | 2018-11-05 |