This file defines the library for HEAP data types and algorithms thereof.
This is an implementation of a standard minimum binary heap using a resizable VECTOR.
| Heap.asm | This file defines the library for HEAP data types and algorithms thereof. |
| Functions | |
| HeapDword_add | Adds a dword to a HEAP |
| HeapDword_removeMin | Removes the minimum from a HEAP |
| HeapDword_heapify | Adjusts a HEAP downward starting from the specified index |
Adjusts a HEAP downward starting from the specified index
[ebx][esi] is the current node, [ebx][esi*2][4] is the left child, and [ebx][esi*2][8] is the right child.
NOTE: This procedure modifies esi. NOTE: This procedure is not to be called outside this file.
Not Implemented
| ebx | address of the array for a HEAP |
| esi | relative address into the array (i.e. in bytes) |
| ecx | size of the array (in bytes) |