文件名称:Min
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2015-12-26
- 文件大小:
- 2.55mb
- 下载次数:
- 0次
- 提 供 者:
- 荣**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
构建一个容量为k的大根堆,依次读取int数据,若大根堆已满,则比较读取的元素是否小于堆顶最大元素,是则先将最大元素删除,再将新元素压入。若大根堆未满,则直接将读取的元素
压入大根堆。在将n个元素依次判断比较处理完之后,即得到n个数据中最小的k个数据。将其从堆顶依次弹出,即将最小的k个元素从大到小输出。-Building a capacity of large root heap k sequentially read int data elements if a large root heap is full, then compare whether the read element is less than the maximum stack top, is the largest element first deleted, and then pressed into a new element. If large root heap element is not full, direct read
Pressed into large root heap. In the n elements in order to determine the comparison process after completion, to obtain n data smallest k data. Which in turn is popped the top of the heap, is about the smallest k elements in descending output.
压入大根堆。在将n个元素依次判断比较处理完之后,即得到n个数据中最小的k个数据。将其从堆顶依次弹出,即将最小的k个元素从大到小输出。-Building a capacity of large root heap k sequentially read int data elements if a large root heap is full, then compare whether the read element is less than the maximum stack top, is the largest element first deleted, and then pressed into a new element. If large root heap element is not full, direct read
Pressed into large root heap. In the n elements in order to determine the comparison process after completion, to obtain n data smallest k data. Which in turn is popped the top of the heap, is about the smallest k elements in descending output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Min
...\Debug
...\.....\Min.exe
...\.....\Min.ilk
...\.....\Min.pdb
...\Min
...\Min.sdf
...\Min.sln
...\Min.v11.suo
...\...\Debug
...\...\.....\CL.read.1.tlog
...\...\.....\CL.write.1.tlog
...\...\.....\link-cvtres.read.1.tlog
...\...\.....\link-cvtres.write.1.tlog
...\...\.....\link-rc.read.1.tlog
...\...\.....\link-rc.write.1.tlog
...\...\.....\link.read.1.tlog
...\...\.....\link.write.1.tlog
...\...\.....\Min.lastbuildstate
...\...\.....\Min.log
...\...\.....\Min.obj
...\...\.....\vc110.idb
...\...\.....\vc110.pdb
...\...\Min.cpp
...\...\Min.vcxproj
...\...\Min.vcxproj.filters
...\reportof4-3.txt