Decreases the key value of a heap element by a specified amount. After decrease, element may need to bubble up to maintain heap property.
The type of min-heap array.
The min-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 bubble up to maintain heap property.