文件名称: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 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.