- 14
- 0
- 约5.11千字
- 约 26页
- 2017-06-23 发布于河南
- 举报
算法导论 第六章 堆排序
Heap sorting(堆排序) 主要内容 Overview Heap堆 Heap:a data structure which is an array object that can be viewed as a complete binary tree(完全二叉树) Describe storage堆的表示和存储 An array A that represents a heap is an object with two attributes: Length[A]----the number of elements in the arry A (数组A长度) Heap-size[A]----the number of elements in the heap stored within array A (存储在A中堆的元素个数) Heap-size[A] ≤Length[A] 大根堆、小根堆 There are two kinds of binary heaps: Max-heap Min-heap Max-heap----for every node i other than the root, A[PARENT(i)] ≥A[i] Min-heap----for every node i other than the root,
您可能关注的文档
最近下载
- 生物化学检验技术 课件 第六章 生物化学检验的质量控制 .pptx
- 《电气设备用SF6替代气体技术规范》标准立项修订与发展报告.docx VIP
- 产科临床教学查房规范与实操指南.docx VIP
- 美国国家标准学会(ANSI)_静电放电(ESD)协会标准 ANSI_ESD S....doc VIP
- 《虞美人-李煜》课件.ppt VIP
- 中学历史教育研究回顾与展望——检索“中国知网”17种期刊2024年度刊载历史教育论文分析.pdf VIP
- 产科临床教学查房.pptx VIP
- (正式版)T∕CSNAME 039-2021 钢质焊接起重吊耳.pdf VIP
- 2025年苏教版高中一年级生态系统能量流动图表专题试卷及解析.docx VIP
- 2025年苏教版高中三年级生物蛋白质合成后的调控专题试卷及解析.docx VIP
原创力文档

文档评论(0)