文件名称:Min
-
所属分类:
- 标签属性:
- 上传时间: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/
Min/Debug/
Min/Debug/Min.exe
Min/Debug/Min.ilk
Min/Debug/Min.pdb
Min/Min/
Min/Min.sdf
Min/Min.sln
Min/Min.v11.suo
Min/Min/Debug/
Min/Min/Debug/cl.command.1.tlog
Min/Min/Debug/CL.read.1.tlog
Min/Min/Debug/CL.write.1.tlog
Min/Min/Debug/link-cvtres.read.1.tlog
Min/Min/Debug/link-cvtres.write.1.tlog
Min/Min/Debug/link-rc.read.1.tlog
Min/Min/Debug/link-rc.write.1.tlog
Min/Min/Debug/link.command.1.tlog
Min/Min/Debug/link.read.1.tlog
Min/Min/Debug/link.write.1.tlog
Min/Min/Debug/Min.lastbuildstate
Min/Min/Debug/Min.log
Min/Min/Debug/Min.obj
Min/Min/Debug/vc110.idb
Min/Min/Debug/vc110.pdb
Min/Min/Min.cpp
Min/Min/Min.vcxproj
Min/Min/Min.vcxproj.filters
Min/reportof4-3.txt
Min/Debug/
Min/Debug/Min.exe
Min/Debug/Min.ilk
Min/Debug/Min.pdb
Min/Min/
Min/Min.sdf
Min/Min.sln
Min/Min.v11.suo
Min/Min/Debug/
Min/Min/Debug/cl.command.1.tlog
Min/Min/Debug/CL.read.1.tlog
Min/Min/Debug/CL.write.1.tlog
Min/Min/Debug/link-cvtres.read.1.tlog
Min/Min/Debug/link-cvtres.write.1.tlog
Min/Min/Debug/link-rc.read.1.tlog
Min/Min/Debug/link-rc.write.1.tlog
Min/Min/Debug/link.command.1.tlog
Min/Min/Debug/link.read.1.tlog
Min/Min/Debug/link.write.1.tlog
Min/Min/Debug/Min.lastbuildstate
Min/Min/Debug/Min.log
Min/Min/Debug/Min.obj
Min/Min/Debug/vc110.idb
Min/Min/Debug/vc110.pdb
Min/Min/Min.cpp
Min/Min/Min.vcxproj
Min/Min/Min.vcxproj.filters
Min/reportof4-3.txt