Once you've dumped the heap into a binary file, you can use jhat to analyze the binary heap dump file.
将堆转储至一个二进制文件后,您就可以使用jhat分析二进制堆转储文件。
A standard way to implement a normal binary heap is to use an array and then fill it from left to right with an implicit binary heap (this is the way heapsort is usually implemented).
一种标准的方式来实现一个正常的二进制堆是使用一个数组,然后从左到右填充与隐式二进制堆(这是堆排序的方式通常是实现)。
It maintains the free space in heap as nodes in a Cartesian binary search tree format.
它按照Cartesian二分法检索树格式以节点的形式维护堆中的空闲空间。
However, often heap implementations choose to ensure the heap condition in such a way that the resulting binary tree is complete.
然而,通常选择确保堆堆实现条件的方式生成的二叉树就完成了。
However, often heap implementations choose to ensure the heap condition in such a way that the resulting binary tree is complete.
然而,通常选择确保堆堆实现条件的方式生成的二叉树就完成了。
应用推荐