![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法学习
文章平均质量分 94
很迷的一只小白
这个作者很懒,什么都没留下…
展开
-
油田问题(C)
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th原创 2021-02-03 08:40:55 · 838 阅读 · 0 评论 -
堆排序(最小堆)C++
堆分为大根堆(最大堆)和小根堆(最小堆),堆排序就是二叉堆的升级版,实际上是一棵完全二叉树不同的是这棵二叉树里每个节点保证父节点都小于孩子节点最后进行堆排序,将堆顶最小的节点(第一个)与最后一个节点(最大的节点)进行交换,对剩下的进行调节,令其满足最小堆#include <iostream>#include <cstdlib> using namespa...转载 2018-10-01 15:58:36 · 2675 阅读 · 2 评论