
算法学习
文章平均质量分 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 · 928 阅读 · 0 评论 -
堆排序(最小堆)C++
堆分为大根堆(最大堆)和小根堆(最小堆),堆排序就是二叉堆的升级版,实际上是一棵完全二叉树 不同的是这棵二叉树里每个节点保证父节点都小于孩子节点 最后进行堆排序,将堆顶最小的节点(第一个)与最后一个节点(最大的节点)进行交换,对剩下的进行调节,令其满足最小堆 #include <iostream> #include <cstdlib> using namespa...转载 2018-10-01 15:58:36 · 2768 阅读 · 2 评论