请输入您要查询的字词:

 

单词 Heap
释义

heap


Let be a total orderMathworldPlanetmath on some set A. A heap is then a data structure for storing elements in A. A heap is a balanced binary tree, with the property that if y is a descendent of x in the heap, then xy must hold. This property is often referred to as the heap property.

If is , then the root of the heap always gives the smallest element of the heap, and if is , then the root of the heap always gives the largest element of the heap. More generally, the root of the heap is some aA such that ax holds for all x in the heap.

For example, the following heap represents the multiset {1,2,4,4,6,8} for the total order on .

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 5:02:26