You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Implements heap data type.
properties:
h- an array in which the data is stored
heapSize- the size of the heap
methods:
Heap- constructor for the Heap class, acepts numeric arrays as an input.
heapSort- method for performing sorting, runtime O(nlogn),although, very, very slow... not to be used for sorting arrays!!!
heapMaximum- returns maximum in the heap heapExtractMax- extracts maximum value from the heap
heapIncreaseKey- increses the key in the postion i
maxKeyInsert- inserts a key in the heap
made by Hanan Kavitz
free for distribution
Cite As
Hanan Kavitz (2026). Heap (https://in.mathworks.com/matlabcentral/fileexchange/34218-heap), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (2.12 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
