Decreases the key value of a heap element by a specified amount. After decrease, element may need to sink down to maintain heap property.
The type of max-heap array.
The max-heap instance.
The element to modify.
Amount to decrease the key by.
true if element was found and modified, false otherwise.
true
false
Decreases the key value of a heap element by a specified amount. After decrease, element may need to sink down to maintain heap property.